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

为当前最终发行版之前的所有版本提供支持
回复
头像
XavOeYi
帖子: 46
注册时间: 2007-01-06 23:04
送出感谢: 0
接收感谢: 0
联系:

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

#1

帖子 XavOeYi » 2007-03-07 12:47

在edgy下LumaQQ 2006 M2 for Linux x86 NO JRE,无法使用快捷键,想自己编译,又不会,所以请教!

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

我是菜鸟,想问问怎么编译
谢谢
慢慢来,一步一个脚印
deepin
围脖:http://weibo.com/XavOeYi
ibearz
帖子: 80
注册时间: 2007-03-03 15:50
送出感谢: 0
接收感谢: 0

#2

帖子 ibearz » 2007-03-07 15:06

./configrue
make
make install

具体看help
头像
XavOeYi
帖子: 46
注册时间: 2007-01-06 23:04
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 XavOeYi » 2007-03-07 23:49

无法./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
慢慢来,一步一个脚印
deepin
围脖:http://weibo.com/XavOeYi
stormcome
帖子: 1
注册时间: 2007-03-12 12:30
送出感谢: 0
接收感谢: 0

#4

帖子 stormcome » 2007-03-12 12:43

因为他的Makefile里面指定了
JAVA_HOME=/usr/java/jdk1.5.0_04
如果你装的JDK路径跟他的不一样的话就编译不了了

自己修改Makefile,把JAVA_HOME修改成你电脑上的路径就可以正常编译了
比如我的就是JAVA_HOME=/opt/sun-jdk-1.5.0.10
头像
XavOeYi
帖子: 46
注册时间: 2007-01-06 23:04
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 XavOeYi » 2007-03-17 16:06

谢谢,试试!
慢慢来,一步一个脚印
deepin
围脖:http://weibo.com/XavOeYi
头像
sevk
帖子: 2059
注册时间: 2007-05-08 16:26
系统: arch
来自: 火星内核某分子内某原子核内
送出感谢: 19 次
接收感谢: 6 次
联系:

#6

帖子 sevk » 2007-06-10 16:27

我也找不到jni.h,我装的是jdk6.
locate 也没有jni.h这个文件。
怎么办?
笔记本 :
F208S : gentoo
A460P i3G D6 : UBUNTU + WIN7
UN43D1 : UBUNTU + WIN7
1000人超级QQ群 LINUX + WIN : 31465544 或 18210387
回复

回到 “老旧版本支持”