我想在linux里用arm版的QT编译程序hello.cpp,环境变量PATH和lib路径均已添加好完毕[root@localhosttest2]#lshello.cpp[root@localhosttest2]#whichqmake/media/sdb/qt_arm_4.6.2/bin...
我想在linux里用arm版的QT 编译程序hello.cpp ,环境变量PATH 和 lib 路径均已添加好完毕
[root@localhost test2]# ls
hello.cpp
[root@localhost test2]# which qmake
/media/sdb/qt_arm_4.6.2/bin/qmake
[root@localhost test2]# qmake -project
QFileInfo::absolutePath: Constructed with empty filename
[root@localhost test2]# qmake
[root@localhost test2]# make
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/media/sdb/qt_arm_4.6.2/mkspecs/qws/linux-arm-g++ -I. -I/media/sdb/qt_arm_4.6.2/include/QtCore -I/media/sdb/qt_arm_4.6.2/include/QtNetwork -I/media/sdb/qt_arm_4.6.2/include/QtGui -I/media/sdb/qt_arm_4.6.2/include -I. -I. -o hello.o hello.cpp
arm-linux-g++ -Wl,-O1 -Wl,-rpath,/media/sdb/qt_arm_4.6.2/lib -o test2 hello.o -L/media/sdb/qt_arm_4.6.2/lib -lQtGui -L/usr/local/arm/tslib/build/lib/ -L/media/sdb/qt_arm_4.6.2/lib -lQtNetwork -lQtCore -lpthread
/home/usr/local/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: warning: libts-0.0.so.0, needed by /media/sdb/qt_arm_4.6.2/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/home/usr/local/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: warning: libz.so.1, needed by /media/sdb/qt_arm_4.6.2/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/media/sdb/qt_arm_4.6.2/lib/libQtCore.so: undefined reference to `uncompress'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `deflate'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `inflate'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `ts_close'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `ts_config'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `inflateInit_'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `deflateInit_'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `ts_read'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `ts_read_raw'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `ts_open'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `crc32'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `deflateInit2_'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `inflateReset'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `deflateReset'
/media/sdb/qt_arm_4.6.2/lib/libQtCore.so: undefined reference to `compress2'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `ts_fd'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `compress'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `inflateEnd'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `inflateInit2_'
/media/sdb/qt_arm_4.6.2/lib/libQtGui.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make: *** [test2] Error 1
[root@localhost test2]# 如能解答感激涕0
展开