主题 : 求助有关ubuntu8.10编译友善之臂x86-qtopia出错的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 6743
精华: 0
发帖: 3
金钱: 30 两
威望: 30 点
综合积分: 6 分
注册时间: 2009-06-15
最后登录: 2009-08-12
楼主  发表于: 2009-06-15 22:05

 求助有关ubuntu8.10编译友善之臂x86-qtopia出错的问题

管理提醒: 本帖被 arm9home 从 Linux技术交流专区 移动到本区(2009-09-10)
按照手册已经成功的安装好了交叉编译环境:
root@yumingchen-laptop:~# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)

听说gcc的版本不能太高所以重新装了gcc3.4.6(不知这个版本高不高- -!):
root@yumingchen-laptop:~# gcc -v
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,f77 --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --with-tune=pentium4 i486-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-8ubuntu2)

不知道以上有没有问题。
本想虚拟机装个Fedora 9.0(太大了一时半会下不下来)而且ubuntu用的还比较习惯,就很想能在ubuntu下编译成功。
目前我还是个初学者当前的目标就是能够将开发环境架设好(编译好x86-qtopia&arm-qtopia)。目前还对ubuntu配置环境变量、路径不太了解 所以编译x86-qtopia报错 不知道是什么原因造成的,以下是编译x86-qtopia是error 的整理:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
* Please investigate the problem by looking at the error messages in the
kernel/qt_x11_p.h:66:22: error: X11/Xlib.h: No such file or directory
kernel/qt_x11_p.h:71:23: error: X11/Xutil.h: No such file or directory
kernel/qt_x11_p.h:72:21: error: X11/Xos.h: No such file or directory
kernel/qt_x11_p.h:73:23: error: X11/Xatom.h: No such file or directory
* Please investigate the problem by looking at the error messages in the
gcc  -c -pipe -O2 -Wall -W -fPIC -I/home/yumingchen/work/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/3rdparty/zlib -I/home/yumingchen/work/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/3rdparty/libpng -I/usr/X11R6/include  -I3rdparty/kernel -I3rdparty/tools -o tmp/release-shared-linux-generic-g++-no-keypad/3rdparty/libpng/pngerror.o 3rdparty/libpng/pngerror.c
kernel/qjpegio.cpp:60:21: error: jpeglib.h: No such file or directory
kernel/qjpegio.cpp:67: error: expected class-name before ‘{’ token
kernel/qjpegio.cpp:76: error: variable or field ‘my_error_exit’ declared void
kernel/qjpegio.cpp:76: error: ‘j_common_ptr’ was not declared in this scope
kernel/qjpegio.cpp:92: error: expected class-name before ‘{’ token
kernel/qjpegio.cpp:95: error: ‘JOCTET’ does not name a type
kernel/qjpegio.cpp:106: error: invalid use of incomplete type ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:105: error: forward declaration of ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:106: error: invalid use of incomplete type ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:105: error: forward declaration of ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:112: error: invalid use of incomplete type ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:105: error: forward declaration of ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:130: error: ‘jpeg_read_scanlines’ was not declared in this scope
kernel/qjpegio.cpp:137: error: invalid use of incomplete type ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:105: error: forward declaration of ‘struct jpeg_decompress_struct’
kernel/qjpegio.cpp:162: error: variable or field ‘qt_init_source’ declared void
kernel/qjpegio.cpp:162: error: ‘j_decompress_ptr’ was not declared in this scope
kernel/qjpegio.cpp:167: error: ‘boolean’ does not name a type
kernel/qjpegio.cpp:190: error: variable or field ‘qt_skip_input_data’ declared void
kernel/qjpegio.cpp:190: error: ‘j_decompress_ptr’ was not declared in this scope
kernel/qjpegio.cpp:190: error: expected primary-expression before ‘long’
* Please search the make output for any error messages.
* Please search the make output for any error messages.
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
* Please investigate the problem by looking at the error messages in the
kernel/qt_x11_p.h:66:22: error: X11/Xlib.h: No such file or directory
kernel/qt_x11_p.h:71:23: error: X11/Xutil.h: No such file or directory
kernel/qt_x11_p.h:72:21: error: X11/Xos.h: No such file or directory
kernel/qt_x11_p.h:73:23: error: X11/Xatom.h: No such file or directory
* Please investigate the problem by looking at the error messages in the
konq/konq-embed/kdesrc/kjs/error_object.h
konq/konq-embed/kdesrc/kjs/error_object.cpp
There is an installation error in jpeg support. You seem to have only one
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
checking for libz... configure: error: not found. Check your installation and look into config.log

希望各位前辈高人能给予指点 小弟在这里现谢谢了
级别: 新手上路
UID: 6743
精华: 0
发帖: 3
金钱: 30 两
威望: 30 点
综合积分: 6 分
注册时间: 2009-06-15
最后登录: 2009-08-12
1楼  发表于: 2009-06-15 22:15
友善之臂的x86-qtopia&arm-qtopia应该有完整的库什么的,所以我想找不到文件是不是路径没有配置好阿,不知道该重哪下手
还有就是听别人说还要配置环境变量什么的 我就更是云里雾里了 还请各位前辈高人指点指点,哪怕是告诉我去恶补哪部分的知识也好阿
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-06-15 22:45
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

这是因为Ubuntu 8.10上会严格检查open()函数的参数。open()在第二个参数中包含O_CREAT时,必须提供第三个mode参数。详细的语法格式参考man 2 open命令的输出;
kernel/qt_x11_p.h:66:22: error: X11/Xlib.h: No such file or directory
...

缺少X11开发所需头文件。Ubuntu上缺少这种文件有一个万能解决办法:
$sudo apt-get update
$sudo dpkg -S <file> (Searches for <file> in package database, telling you which packages have that file in them.)
$sudo apt-get install <package which provides file you need>
"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."
级别: 新手上路
UID: 6743
精华: 0
发帖: 3
金钱: 30 两
威望: 30 点
综合积分: 6 分
注册时间: 2009-06-15
最后登录: 2009-08-12
3楼  发表于: 2009-06-17 10:42
版主真敬业 这么晚了都还在,谢谢你了
实在是弄不通了
换了fedora9一路顺风的安好了
级别: 新手上路
UID: 83335
精华: 0
发帖: 27
金钱: 140 两
威望: 28 点
综合积分: 54 分
注册时间: 2012-12-05
最后登录: 2019-04-28
4楼  发表于: 2012-12-05 16:56
大哥,我跟你遇到了同样的问题。不过用的是VMWARE7+FEDORA9.我想问下你换了fedora9就好了?你用的

那个版本,可否详细谈。我qq346667025.There is an installation error in jpeg support. You

seem to have only one
of either the headers _or_ the libraries installed. You may need to either
provide correct --with-extra-... options, or the development package of
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
Disabling JPEG support.
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (library qte) not found. Please check

your installation!
checking for libz... configure: error: not found. Check your installation and look into

config.log