当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 编译失败.求助..
帖子发表于 : 2010-06-23 6:26 

注册: 2009-11-30 7:46
帖子: 513
送出感谢: 0 次
接收感谢: 0 次
代码:
winegcc  `pkg-config --cflags x11 dl 2> /dev/null || echo "-I/usr/X11R6/include -I/usr/local/include"` `pkg-config --libs x11 dl 2> /dev/null || echo "-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst"` ahkx.c -o ahkx.exe
In file included from ahkx.c:19:
wineheaders.h:3:26: error: wine/library.h: No such file or directory
wineheaders.h:4:21: error: windows.h: No such file or directory
In file included from ahkx.c:19:
wineheaders.h: In function ‘WineLoadLibrary’:
wineheaders.h:8: warning: return makes pointer from integer without a cast
wineheaders.h: In function ‘WineGetProcAddress’:
wineheaders.h:16: warning: return makes pointer from integer without a cast
In file included from ahkx.c:20:
xheaders.h:3:19: error: X11/X.h: No such file or directory
xheaders.h:4:22: error: X11/Xlib.h: No such file or directory
xheaders.h:5:27: error: X11/Intrinsic.h: No such file or directory
xheaders.h:6:28: error: X11/StringDefs.h: No such file or directory
xheaders.h:7:23: error: X11/Xutil.h: No such file or directory
xheaders.h:8:23: error: X11/Shell.h: No such file or directory
In file included from ahkx.c:21:
xkeyhook.c: At top level:
xkeyhook.c:8: error: expected ‘)’ before ‘*’ token
xkeyhook.c:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
xkeyhook.c:13: error: expected ‘)’ before ‘root’
xkeyhook.c:48: error: expected ‘)’ before ‘*’ token
ahkx.c: In function ‘xkey’:
ahkx.c:57: error: ‘XEvent’ undeclared (first use in this function)
ahkx.c:57: error: (Each undeclared identifier is reported only once
ahkx.c:57: error: for each function it appears in.)
ahkx.c:57: error: expected ‘;’ before ‘xev’
ahkx.c:65: error: ‘d’ undeclared (first use in this function)
ahkx.c:72: error: ‘KeyPressMask’ undeclared (first use in this function)
ahkx.c:77: error: ‘xev’ undeclared (first use in this function)
ahkx.c:79: warning: assignment makes pointer from integer without a cast
winegcc: i486-linux-gnu-gcc failed
make: *** [ahkx.exe] Error 2

src:
git://github.com/tinku99/ahkx.git
网页:
http://github.com/tinku99/ahkx


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 编译失败.求助..
帖子发表于 : 2010-06-23 13:05 
头像

注册: 2007-09-09 15:41
帖子: 218
地址: Beijing
送出感谢: 0 次
接收感谢: 1
代码:
sudo apt-get install libx11-dev

maybe


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 编译失败.求助..
帖子发表于 : 2010-06-23 16:19 

注册: 2009-11-30 7:46
帖子: 513
送出感谢: 0 次
接收感谢: 0 次
今天安了libx11-dev.貌似那个错误?

代码:
winegcc  `pkg-config --cflags x11 dl 2> /dev/null || echo "-I/usr/X11R6/include -I/usr/local/include"` `pkg-config --libs x11 dl 2> /dev/null || echo "-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst"` ahkx.c -o ahkx.exe
In file included from ahkx.c:19:
wineheaders.h:3:26: error: wine/library.h: No such file or directory
wineheaders.h:4:21: error: windows.h: No such file or directory
In file included from ahkx.c:19:
wineheaders.h: In function ‘WineLoadLibrary’:
wineheaders.h:8: warning: return makes pointer from integer without a cast
wineheaders.h: In function ‘WineGetProcAddress’:
wineheaders.h:16: warning: return makes pointer from integer without a cast
In file included from ahkx.c:20:
xheaders.h:5:27: error: X11/Intrinsic.h: No such file or directory
xheaders.h:6:28: error: X11/StringDefs.h: No such file or directory
xheaders.h:8:23: error: X11/Shell.h: No such file or directory
In file included from ahkx.c:21:
xkeyhook.c: In function ‘snoop_all_windows’:
xkeyhook.c:23: error: ‘FALSE’ undeclared (first use in this function)
xkeyhook.c:23: error: (Each undeclared identifier is reported only once
xkeyhook.c:23: error: for each function it appears in.)
winegcc: i486-linux-gnu-gcc failed
make: *** [ahkx.exe] Error 2


又看了下install貌似是需要以下:
xdotool wine-dev libx11-dev libxt-dev
测试中...


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 编译失败.求助..
帖子发表于 : 2010-06-23 16:36 

注册: 2009-11-30 7:46
帖子: 513
送出感谢: 0 次
接收感谢: 0 次
不行啊.还是编译不出来.求编译方法或编译后的程序.


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 编译失败.求助..
帖子发表于 : 2010-06-23 18:26 
头像

注册: 2007-09-29 3:09
帖子: 5777
送出感谢: 0 次
接收感谢: 5
教学版看apt-file的用法,装上报缺的头文件所在的包...


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译