qt creator在debug是出现如下错误,在release时却没报错,求解
Running build steps for project hundun...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/opt/qt4/HunDun/hundun-build-desktop'
arm-linux-g++ -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.8.5-arm/lib -o hundun main.o mainwindow.o moc_mainwindow.o -
L/usr/local/Trolltech/QtEmbedded-4.8.5-arm/lib -lQtGui -L/usr/local/Trolltech/QtEmbedded-4.8.5-arm/lib -lQtNetwork -lQtCore -lpthread
make: Leaving directory `
/opt/qt4/HunDun/hundun-build-desktop'
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: main.o: Relocations in generic ELF (EM: 3)
main.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [hundun] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project hundun (target: Desktop)
When executing build step 'Make'
/etc/bashrc中环境变量如下:
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.8.5-arm
export PATH=$QTDIR/bin:$PATH
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
#
export MANPATH=$QTDIR/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH