由 肉腳路人 » 週六 12月 17, 2011 3:35 pm
後來我又嘗試把configure裡面的GTK test都砍光,讓它只選用QT4的imm,然後改了要輸進去config.mak的變數:
echo "CC=/opt/solarisstudio12.3/bin/cc" > config.mak
echo "CCX=$CC -x c" >> config.mak
echo "CXX=/opt/solarisstudio12.3/bin/CC" >> config.mak
echo "CCLD=$CC" >> config.mak
echo "MAKE=/usr/sfw/bin/gmake" >> config.mak
echo "datadir=/opt/hime" >> config.mak
echo "QT4_IM=Y" >> config.mak
echo "QT4_IM_DIR=/usr/local/QT4/plugins/inputmethods" >> config.mak
手動指定了一些確定在系統中的變數,現在config.mak是產生了。但是os-dep.h那邊好像有問題,
現在是先把gdk跟glib.h移出來,移到最上方確保有被include到:
#include <glib-2.0/glib.h>
#include <gtk-2.0/gdk/gdkx.h>
但還是有問題,make時還是顯示一堆的.h找不到,我目前很頭痛這個部份:
In file included from os-dep.h:17,
from hime.h:22,
from hime.cpp:18:
/usr/include/glib-2.0/glib.h:32:26: glib/galloca.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:33:25: glib/garray.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:34:30: glib/gasyncqueue.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:35:26: glib/gatomic.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:36:29: glib/gbacktrace.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:37:26: glib/gbase64.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:38:27: glib/gbitlock.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:39:32: glib/gbookmarkfile.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:40:25: glib/gcache.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:41:28: glib/gchecksum.h: 無該檔案或目錄
/usr/include/glib-2.0/glib.h:42:30: glib/gcompletion.h: 無該檔案或目錄
...
In file included from os-dep.h:18,
from hime.h:22,
from hime.cpp:18:
/usr/include/gtk-2.0/gdk/gdkx.h:30:28: gdk/gdkprivate.h: 無該檔案或目錄
In file included from os-dep.h:18,
from hime.h:22,
from hime.cpp:18:
/usr/include/gtk-2.0/gdk/gdkx.h:41: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:42: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:43: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:43: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:44: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:44: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:45: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:46: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:47: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:48: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:49: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:50: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:51: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:52: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:53: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:54: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:55: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:56: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:57: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:59: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:61: error: syntax error before '*' token
/usr/include/gtk-2.0/gdk/gdkx.h:66: error: syntax error before "gdk_x11_get_default_screen"
...
錯誤太多了,我好像要先處理完,讓所有.h檔都被找到才有辦法進行下一步。glib/gtk那邊我是按造
系統正確位置而修改的,但還是沒有效果。