- 論壇徽章:
- 0
|
今天學(xué)習(xí)移植qtopia,使用的qtopia2.2.0,交叉編譯器為arm-linux-gcc/g++3.4.5-glibc-2.3.6版本,pc用的是4.4.4,開始對程序做了一些必要得修改 ,更正了編譯錯誤,然后在連接的時候出問題了。
錯誤如下:
/usr/bin/ld: cannot find -lqt-mt
collect2: ld 返回 1
make[6]: *** [../../../bin/qdawggen] 錯誤 1
make[5]: *** [all] 錯誤 2
make[4]: *** [sub-tools-qdawggen] 錯誤 2
make[3]: *** [sub-src-components_pro] 錯誤 2
make[2]: *** [all] 錯誤 2
make[1]: *** [all] 錯誤 2
然后在重定向文件中查看詳細(xì)信息,輸出如下:
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQTOPIA_TARGET=\"qdawggen\" -DQTOPIA_TRTARGET=\"qdawggen\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/mkspecs/linux-g++ -I. -I/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/dqt/include -I../../../include -I/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/dqt/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/qmemoryfile_unix.o ../../libraries/qtopia/qmemoryfile_unix.cpp
test -d ../../../bin/ || mkdir -p ../../../bin/
g++ -o ../../../bin/qdawggen .obj/release-shared/main.o .obj/release-shared/qdawg.o .obj/release-shared/qmemoryfile.o .obj/release-shared/global.o .obj/release-shared/qmemoryfile_unix.o -L/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/dqt/lib -L/usr/X11R6/lib -L/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/lib -L/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qt2/lib -lqt-mt -lXext -lX11 -lm -lpthread
make[6]: Leaving directory `/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[5]: Leaving directory `/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[4]: Leaving directory `/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/src'
make[3]: Leaving directory `/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/src'
make[2]: Leaving directory `/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia/src'
make[1]: Leaving directory `/home/sydnash/嵌入式相關(guān)工具/qtopia/qtopia-free-2.2.0/qtopia'
朋友們有遇到這種情況的或者知道的,請幫忙分析分析。
我用的 ./configure -qte '-embedded -no-xft -xplatform linux-arm-g++ -qconfig qpe -depths 16,32 -no-qvfb -system-jpeg -gif' -qpe '-xplatform linux-arm-g++ -edition pda -displaysize 320x240' -qt2 '-no-xft' -dqt '-no-xft'
配置。 謝謝大家啊,很急。
在我的qtopia/dqt/lib下沒有生成libqt-mt.so這個庫。 |
|