+ -
当前位置:首页 → 问答吧 → 移植qtopia的问题

移植qtopia的问题

时间:2010-08-20

来源:互联网

今天学习移植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
    然后在重定向文件中查看详细信息,输出如下:
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/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/mkspecs/linux-g++ -I. -I/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/dqt/include -I../../../include -I/home/sydnash/嵌入式相关工具/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/嵌入式相关工具/qtopia/qtopia-free-2.2.0/dqt/lib -L/usr/X11R6/lib -L/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/lib -L/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qt2/lib -lqt-mt -lXext -lX11 -lm -lpthread
make[6]: Leaving directory `/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[5]: Leaving directory `/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[4]: Leaving directory `/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/src'
make[3]: Leaving directory `/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/src'
make[2]: Leaving directory `/home/sydnash/嵌入式相关工具/qtopia/qtopia-free-2.2.0/qtopia/src'
make[1]: Leaving directory `/home/sydnash/嵌入式相关工具/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这个库。

作者: sydnash   发布时间: 2010-08-20

有知道的朋友请不吝指教,谢谢,我很疑惑,不知道是不是我的configure有问题,请大家帮忙看看啊。

作者: sydnash   发布时间: 2010-08-20