
我曾經使用 SDK 為我的 E-ink PocketBook 製作程序http://pbsdk.vlasovsoft.net/在 32 位元 Ubuntu 12.04 上,效果很好。最近我去了14.04 64位。
我使用gcc
模擬器-m32
編譯選項來解決這個問題。我花了一整天的時間與ld
編譯器進行鬥爭並讓其工作。最後,我的程式似乎可以編譯,但是當我運行它們時,它們只是崩潰了segmentation fault (core dumped)
。後來我發現程式在任何螢幕繪圖功能上都會崩潰。模擬器產生的視窗尺寸為 600x800,而我的筆記型電腦顯示器使用 1366x768。在 Ubuntu 12.04 上沒問題,但這裡似乎有問題。如果我告訴模擬器將視窗旋轉 90 度,它就不會崩潰。我連接了另一個尺寸為 1600x1200 的顯示器,它沒有崩潰。我該怎麼辦?
Xfce 一切都運作良好。
如果你註解FullUpdate()
行它就不會崩潰。
#include "inkview.h"
int main_handler(int type, int par1, int par2)
{
ClearScreen(); //Doesn't draw to screen, only buffer
FullUpdate(); //Draws to screen
return 0;
}
int main(int argc, char **argv)
{
InkViewMain(main_handler);
return 0;
}
輸出:
Gtk-Message: Failed to load module "overlay-scrollbar"
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
** Message: Command 501 selected
Segmentation fault (core dumped)
也許它與overlay-scrollbar
?