主题 : x86-qtopia编译的问题,查了下没有太多人遇到的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 63703
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2012-02-23
最后登录: 2012-05-31
楼主  发表于: 2012-04-23 16:14

 x86-qtopia编译的问题,查了下没有太多人遇到的问题

已经尝试各种编译途径,但是不想换成fed的,一直用ubuntu的,现在编译遇到了问题,也用./build_all 2>&||tee build.log 生成build.log了,现粘上来大家帮忙看下,还有我的gcc/g++都换成3.4.6的了,库也是该装的就装了,废话不多说了,都帮忙看看吧 build.log.tar.gz (113 K) 下载次数:2    build.log.tar.gz (113 K) 下载次数:2
级别: 新手上路
UID: 63703
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2012-02-23
最后登录: 2012-05-31
1楼  发表于: 2012-04-24 09:59
             没人能看下么
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2012-04-24 12:12
这是第一个编译错误, 看起来是因为找不到asm/errno.h导致的。在Ubuntu上,这个文件通常是包含在linux-libc-dev这个package里,可以通过"sudo apt-get install linux-libc-dev"安装。

make[1]: 正在进入目录 `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/moc'
g++  -c -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include -Wno-unused -Wno-parentheses -pipe -O2 -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_BUILDING_MOC -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
In file included from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from ../tools/qfiledefs_p.h:68,
                 from moc.y:67:
/usr/include/linux/errno.h:4:23: asm/errno.h: 没有那个文件或目录
y.tab.c: In function `int yyparse()':
y.tab.c:3175: warning: label `yyerrlab' defined but not used
mocgen.cpp: At global scope:
mocgen.cpp:4: warning: 'yyrcsid' defined but not used
make[1]: *** [mocgen.o] 错误 1
make[1]:正在离开目录 `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/moc'
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."