按照手册已经成功的安装好了交叉编译环境:
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
希望各位前辈高人能给予指点 小弟在这里现谢谢了
