分页: 1 / 1

[讨论]LumaQQ的快捷键怎么自己编译

发表于 : 2007-03-07 12:47
XavOeYi
在edgy下LumaQQ 2006 M2 for Linux x86 NO JRE,无法使用快捷键,想自己编译,又不会,所以请教!

根据主页提示:
如果热键在你的机器上不能使用,下载热键源代码尝试自己编译,然后将编译出的libkeybinder.so拷贝到安装目录的swt目录下面覆盖旧文件。
下载了http://lumaqq.linuxsir.org/download/...nux_hotkey.zip 这个快捷键源码

我是菜鸟,想问问怎么编译
谢谢

发表于 : 2007-03-07 15:06
ibearz
./configrue
make
make install

具体看help

发表于 : 2007-03-07 23:49
XavOeYi
无法./configrue ,没有这个文件。
如果直接make,结果如下:
xavoeyi@ubuntu:~/temp/hot$ make
gcc -fPIC -shared eggaccelerators.h eggaccelerators.c tomboykeybinder.h tomboykeybinder.c edu_tsinghua_lumaqq_hotkey_KeyBinder.h edu_tsinghua_lumaqq_hotkey_KeyBinder.c -o libkeybinder.so -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/java/jdk1.5.0_04/include/linux -I/usr/java/jdk1.5.0_04/include
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:2:17: error: jni.h: No such file or directory
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jboolean’
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:1:17: error: jni.h: No such file or directory
In file included from edu_tsinghua_lumaqq_hotkey_KeyBinder.c:4:
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jboolean’
edu_tsinghua_lumaqq_hotkey_KeyBinder.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘java_obj’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c: In function ‘handler’:
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:10: error: ‘jclass’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:10: error: (Each undeclared identifier is reported only once
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:10: error: for each function it appears in.)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:10: error: expected ‘;’ before ‘cls’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:11: error: ‘jmethodID’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:11: error: expected ‘;’ before ‘mid’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:12: error: ‘mid’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:16: error: ‘jstring’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:16: error: expected ‘;’ before ‘str’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:17: error: ‘java_env’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:17: error: ‘java_obj’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:17: error: ‘str’ undeclared (first use in this function)
edu_tsinghua_lumaqq_hotkey_KeyBinder.c: At top level:
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jboolean’
edu_tsinghua_lumaqq_hotkey_KeyBinder.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
make: *** [libkeybinder.so] 错误 1

发表于 : 2007-03-12 12:43
stormcome
因为他的Makefile里面指定了
JAVA_HOME=/usr/java/jdk1.5.0_04
如果你装的JDK路径跟他的不一样的话就编译不了了

自己修改Makefile,把JAVA_HOME修改成你电脑上的路径就可以正常编译了
比如我的就是JAVA_HOME=/opt/sun-jdk-1.5.0.10

发表于 : 2007-03-17 16:06
XavOeYi
谢谢,试试!

发表于 : 2007-06-10 16:27
sevk
我也找不到jni.h,我装的是jdk6.
locate 也没有jni.h这个文件。
怎么办?