我用的交叉编译工具是armv4l-unknown-linux-gcc/g++
在编译QT/E的时候我把qte下configs目录下的linux-arm-g++相关的四个文件修改里边的编译器为armv4l-unknown-linux-gcc/g++,编译QT/E的配置为:
./configure -xplatform linux-arm-g++ -qconfig qpe -qvfb -thread -system-jpeg -gif -depths 4,8,16,32
make
编译没有错误.
编译QTOPIA时,我同样把QTOPIA下configs目录下的inux-arm-g++相关的五个文件修改里边的编译器为armv4l- unknown-linux-gcc/g++,把tmake目录下lib/qws/的linux-arm-g++下的tmake.conf文件的arm- linux-内容修改成为armv4l-unknown-linux-同时设定TMAKEPATH
编译qtopia
./configure -xplatform linux-arm-g++
make
出现这样一个错误,各位帮忙看一下吧:
armv4l-unknown-linux-gcc -c -pipe -O2 -Wall -W -fPIC -DQTOPIA_APP_INTERFACE -DFAST -DSASR -DWAV49 -I.moc/linux-arm-g++/ -I/usr/local/qt2/arm-qtopia/qtopia/include -o .obj/linux-arm-g++//gsm_option.o gsm_option.c
armv4l-unknown-linux-gcc -c -pipe -O2 -Wall -W -fPIC -DQTOPIA_APP_INTERFACE -DFAST -DSASR -DWAV49 -I.moc/linux-arm-g++/ -I/usr/local/qt2/arm-qtopia/qtopia/include -o .obj/linux-arm-g++//long_term.o long_term.c
long_term.c: In function `Gsm_Long_Term_Predictor':
long_term.c:867: warning: unused parameter `S'
{standard input}: Assembler messages:
{standard input}:574: Error: Can not represent OFFSET_IMM8 relocation in this object file format (1)
{standard input}:650: Error: Can not represent OFFSET_IMM8 relocation in this object file format (1)
make[1]: *** [.obj/linux-arm-g++//long_term.o] Error 1
make[1]: Leaving directory `/usr/local/qt2/arm-qtopia/qtopia/src/3rdparty/libraries/gsm'
make: *** [3rdparty/libraries/gsm] Error 2