查看: 7360|回复: 17

[GUI问题] 3531QT移植

[复制链接]
发表于 2014-11-13 19:46:24 | 显示全部楼层 |阅读模式
参考网友
http://blog.csdn.net/pzhsunxu/article/details/11151203
方式,

下载的QT源码主在/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3
这个下面
前面操作是OK的
make后

报错:
sourcewidget.cpp: In constructor 'SourceWidget::SourceWidget(QWidget*)':
sourcewidget.cpp:56: error: invalid use of incomplete type 'struct QSvgWidget'
sourcewidget.h:49: error: forward declaration of 'struct QSvgWidget'
sourcewidget.cpp:57: error: invalid use of incomplete type 'struct QSvgWidget'
sourcewidget.h:49: error: forward declaration of 'struct QSvgWidget'
sourcewidget.cpp:58: error: no matching function for call to 'QScrollArea::setWidget(QSvgWidget*&)'
../../../include/QtGui/qscrollarea.h:68: note: candidates are: void QScrollArea::setWidget(QWidget*)
sourcewidget.cpp: In member function 'void SourceWidget::createData(const QString&)':
sourcewidget.cpp:84: error: invalid use of incomplete type 'struct QSvgWidget'
sourcewidget.h:49: error: forward declaration of 'struct QSvgWidget'
sourcewidget.cpp:87: error: invalid use of incomplete type 'struct QSvgWidget'
sourcewidget.h:49: error: forward declaration of 'struct QSvgWidget'
make[3]: *** [.obj/release-shared-emb-arm/sourcewidget.o] Error 1
make[3]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/examples/draganddrop/delayedencoding'
make[2]: *** [sub-delayedencoding-make_default] Error 2
make[2]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/examples/draganddrop'
make[1]: *** [sub-draganddrop-make_default] Error 2
make[1]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/examples'
make: *** [sub-examples-make_default-ordered] Error 2

 楼主| 发表于 2014-11-13 19:47:36 | 显示全部楼层
本帖最后由 ebaina 于 2014-11-14 08:41 编辑
  1. 上面链接内容如下:
  2. 移植QT4.5.3到海斯平台 HI3512 Hi3515 Hi3520 等



  3. PC主机做如下操作:

  4. 1.下载qt-embedded-linux-opensource-src-4.5.3.tar.gz,网上很多文章都还有下载qt-x11-opensource-src-4.5.3.tar.gz和tslib-1.4.tar.gz,如果你有自己的arm板的话,qt-x11完全可以不用,因为我的硬件上没有触摸屏,所以tslib也没有用;

  5. 2.把qt-embedded-linux-opensource-src-4.5.3.tar.gz拷贝到/home/chl/temp/qt/(工作目录,视自己情况而定,但交叉编译后arm的文件系统下最好也在同样名称的目录下,否则可能会运行出错,原因未仔细分析);
  6. tar xvzf qt-embedded-linux-opensource-src-4.5.3.tar.gz

  7. cd qt-embedded-linux-opensource-src-4.5.3

  8. vim mkspecs/qws/linux-arm-g++/qmake.conf,把所有的arm-linux-**改为arm-hismall-linux-**

  9. ./configure --prefix=/home/chl/temp/qt/Trolltech/qtHisi -no-pch -xplatform qws/linux-arm-g++ -arch arm -embedded arm -no-freetype -qt-mouse-pc

  10. vim examples/examples.pro,删除行
  11. contains(QT_CONFIG, webkit): SUBDIRS += webkit
  12. 否则编译example webkit时会报错

  13. vim demos/demos.pro,删除两行
  14. contains(QT_CONFIG, webkit):contains(QT_CONFIG, svg):SUBDIRS += demos_browser
  15. demos_browser.subdir = browser
  16. 否则编译demo browser会出错

  17. gmake

  18. gmake install,则会在/home/chl/temp/qt/Trolltech/qtHisi下安装交叉编译好的arm上的程序;

  19. cp -rfa /home/chl/temp/qt/Trolltech/qtHisi/* /home/chl/hisi/rootfs3520/QtEmbedded-4.5.3-arm
  20. 其中home/chl/hisi/rootfs3520为export出来的nfs文件夹,供调试用;

  21. ARM启动后做如下操作:

  22. 从海思发布的SDK包里面rootfs-FULL_REL下搜索libstdc++.so.6 libstdc++.so.6.0.3并复制到/lib下;

  23. 交叉工具链的安装目录搜索libgcc_s.so libgcc_s.so.1并复制到/lib下;

  24. mount -t nfs -o nolock HOSTIP:/home/chl/hisi/rootfs3520 /mnt

  25. mkdir -p /home/chl/temp/qt/Trolltech

  26. ln -s /mnt/QtEmbedded-4.5.3-arm /home/chl/temp/qt/Trolltech/qtHisi

  27. export QTDIR=/home/chl/temp/qt/Trolltech/qtHisi
  28. export PATH=$QTDIR/bin:$PATH
  29. export TSLIB_CONSOLEDEVICE=none
  30. export LD_LIBRARY_PATH=$T_ROOT/lib:$QTDIR/lib
  31. export QT_QWS_FONTDIR=/mnt/sd/qt/lib/fonts
  32. 以上四句为环境变量声明,网上很多文章中都还有声明QWS_MOUSE_PROTO、TSLIB_FBDEVICE等,建议不要声明这些变量,因为qt会自动匹配相关的鼠标设备和framebuffer设备,有时候声明了反而会影响鼠标的正常工作,我的framebuffer和鼠标设备符分别为/dev/fb0和/dev/mice,QT可以自动识别,确保起见,不是这两个名称的宁可用ln -s做一下软链接,也不要随便去设置环境变量;

  33. 此时,就可以测试运行一下了,首先运行一下海思SDK中mpp/sample下的hifb测试程序,把framebuffer 0打开,再运行qt的各个example和demo,如:
  34. cd /mnt
  35. ./api_sample_hifb &
  36. 保证此时可以在显示器上看到测试画面,保证VGA芯片驱动及framebuffer驱动加载运行正确,然后,
  37. cd /home/chl/temp/qt/Trolltech/qtHisi/demos/chip/
  38. ./chip -qws
  39. 即可在显示器上看到QT的测试画面效果;

  40. 如果运行过程中提示“QFontEngineQPF failed”字样,把src/gui/text/qfontdatabase_qws.cpp打开做一下空写操作,然后重新上面所有步骤再编译一遍即可,原因未明。
复制代码
 楼主| 发表于 2014-11-14 09:03:26 | 显示全部楼层

早上再测试时,
make花一个多小时没报错了
make install
报了一个错

如下
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/embeddedsvgviewer.pro' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/embeddedsvgviewer.pro' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/shapes.svg /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/shapes.svg' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/shapes.svg' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/spheres.svg /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/spheres.svg' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/spheres.svg' are the same file
make[3]: [install_sources] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/files /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/files' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer/files' are the same file
make[3]: [install_sources] Error 1 (ignored)
make[3]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embeddedsvgviewer'
cd fluidlauncher/ && make -f Makefile install
make[3]: Entering directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher'
/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/bin/qmake -spec ../../../mkspecs/qws/linux-arm-g++ -unix -o Makefile fluidlauncher.pro
make[3]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher'
make[3]: Entering directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher'
install -m 755 -p "fluidlauncher" "/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher"
install: `fluidlauncher' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher' are the same file
make[3]: [install_target] Error 1 (ignored)
arm-hisiv200-linux-strip "/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher"
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/demoapplication.cpp /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/demoapplication.cpp' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/demoapplication.cpp' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.cpp /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.cpp' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.cpp' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/main.cpp /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/main.cpp' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/main.cpp' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/pictureflow.cpp /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/pictureflow.cpp' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/pictureflow.cpp' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slideshow.cpp /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slideshow.cpp' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slideshow.cpp' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/demoapplication.h /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/demoapplication.h' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/demoapplication.h' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.h /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.h' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.h' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/pictureflow.h /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/pictureflow.h' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/pictureflow.h' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slideshow.h /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slideshow.h' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slideshow.h' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.pro /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.pro' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/fluidlauncher.pro' are the same file
make[3]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/config.xml /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/config.xml' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/config.xml' are the same file
make[3]: [install_sources] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/screenshots /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/screenshots' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/screenshots' are the same file
make[3]: [install_sources] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slides /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slides' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher/slides' are the same file
make[3]: [install_sources] Error 1 (ignored)
make[3]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/fluidlauncher'
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embedded.pro /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embedded.pro' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded/embedded.pro' are the same file
make[2]: [install_sources] Error 1 (ignored)
make[2]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/embedded'
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/README /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/README' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/README' are the same file
make[1]: [install_sources] Error 1 (ignored)
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/demos.pro /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/demos.pro' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos/demos.pro' are the same file
make[1]: [install_sources] Error 1 (ignored)
make[1]: Leaving directory `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/demos'
install -m 755 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/bin/qmake /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/bin/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/bin/qmake' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/bin/qmake' are the same file
make: [install_qmake] Error 1 (ignored)
rm -f /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/default; ln -sf qws/linux-arm-g++ /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/default
install -m 644 -p /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/qconfig.pri /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
install: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/qconfig.pri' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/qconfig.pri' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-g++ /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-g++' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-g++' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-g++-64 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-g++-64' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-g++-64' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-xlc /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-xlc' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-xlc' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-xlc-64 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-xlc-64' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/aix-xlc-64' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/common /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/common' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/common' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/cygwin-g++ /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/cygwin-g++' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/cygwin-g++' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/darwin-g++ /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/darwin-g++' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/darwin-g++' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/default /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/default' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/default' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/features /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/features' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/features' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++ /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++34 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++34' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++34' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++40 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++40' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-g++40' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-icc /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-icc' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/freebsd-icc' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc-64 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc-64' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc-64' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc-o64 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc-o64' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-acc-o64' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-g++ /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-g++' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-g++' are the same file
make: [install_mkspecs] Error 1 (ignored)
cp -f -r /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-g++-64 /code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/
cp: `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-g++-64' and `/code/qt-481-sample/qt-embedded-linux-opensource-src-4.5.3/mkspecs/hpux-g++-64' are the same file
make: [install_mkspecs] Error 1 (ignored)

 楼主| 发表于 2014-11-14 09:08:55 | 显示全部楼层
xjl_hi 发表于 2014-11-14 09:03
早上再测试时,
make花一个多小时没报错了
make install

说明---
报第一个错误后,我删除了解压后的文件,重做所有步骤,
后make没有报错,
当执行make install时报楼上的错
发表于 2014-11-14 11:40:26 | 显示全部楼层
要不要把qt源码删掉,重新解压缩一份再试试?
 楼主| 发表于 2014-11-14 15:38:39 | 显示全部楼层
richardwu 发表于 2014-11-14 11:40
要不要把qt源码删掉,重新解压缩一份再试试?

又重做了一次,
原是
--prefix=/home/chl/temp/qt/Trolltech/qtHisi
这个路径不能与QT源码的路径一样,
又有新问题:

ARM启动后做如下操作:

从海思发布的SDK包里面rootfs-FULL_REL下搜索libstdc++.so.6 libstdc++.so.6.0.3并复制到/lib下;

交叉工具链的安装目录搜索libgcc_s.so libgcc_s.so.1并复制到/lib下;

mount -t nfs -o nolock HOSTIP:/home/chl/hisi/rootfs3520 /mnt

mkdir -p /home/chl/temp/qt/Trolltech

ln -s /mnt/QtEmbedded-4.5.3-arm /home/chl/temp/qt/Trolltech/qtHisi


上面步骤的lib是开发板上的lib,貌是空间不足,是复制到PC上?
发表于 2014-11-16 16:18:28 | 显示全部楼层
xjl_hi 发表于 2014-11-14 15:38
又重做了一次,
原是
--prefix=/home/chl/temp/qt/Trolltech/qtHisi

挂载nfs文件系统不是可以解决这个问题么?  挂载了nfs之后chroot将nfs作为开发板的根目录
 楼主| 发表于 2014-11-18 11:29:58 | 显示全部楼层
bhua 发表于 2014-11-16 16:18
挂载nfs文件系统不是可以解决这个问题么?  挂载了nfs之后chroot将nfs作为开发板的根目录

前两天耽搁了下

挂载nfs了,
做到步骤 mkdir -p /home/chl/temp/qt/Trolltech

报了错
mkdir: can't create directory '/home/chl/': No space left on device

然后
# df
Filesystem           1K-bcks      Used Available Use% Mounted on
/dev/root                11264     10928       336  97% /
tmpfs                    29088         4     29084   0% /dev
/dev/mtdblock3          131072     60336     70736  46% /nand
192.168.1.48:/home/chl/hisi/rootfs3520/
                      67972736  23258624  41254656  36% /mnt

貌是/dev/root使用率过高?
具体问题还不清楚,在网上找别人遇到的情况,貌是解决办法不适用,
哪位见到过不?
 楼主| 发表于 2014-11-18 14:14:29 | 显示全部楼层
xjl_hi 发表于 2014-11-18 11:29
前两天耽搁了下

挂载nfs了,

# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                11.0M     10.7M    336.0K  97% /
tmpfs                    28.4M      4.0K     28.4M   0% /dev
/dev/mtdblock3          128.0M     58.9M     69.1M  46% /nand
# df -i
Filesystem              Inodes      Used Available Use% Mounted on
/dev/root                    0         0         0   0% /
tmpfs                     7272       324      6948   4% /dev
/dev/mtdblock3               0         0         0   0% /nand
 楼主| 发表于 2014-11-18 14:24:29 | 显示全部楼层
xjl_hi 发表于 2014-11-18 14:14
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root             ...

删除mnt目录下的一些文件
 楼主| 发表于 2014-11-18 14:25:03 | 显示全部楼层
xjl_hi 发表于 2014-11-18 14:24
删除mnt目录下的一些文件

# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                11.0M      9.6M      1.4M  87% /
tmpfs                    28.4M      4.0K     28.4M   0% /dev
/dev/mtdblock3          128.0M     17.2M    110.8M  13% /nand
 楼主| 发表于 2014-11-18 14:43:24 | 显示全部楼层
xjl_hi 发表于 2014-11-18 14:25
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root             ...


执行./chip -qws
报如下:
./chip: error while loading ared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 楼主| 发表于 2014-11-18 15:00:28 | 显示全部楼层
xjl_hi 发表于 2014-11-18 14:43
执行./chip -qws
报如下:
./chip: error while loading ared libraries: libstdc++.so.6: cannot op ...

从海思发布的SDK包里面rootfs-FULL_REL下搜索libstdc++.so.6 libstdc++.so.6.0.3并复制到/lib下;

交叉工具链的安装目录搜索libgcc_s.so libgcc_s.so.1并复制到/lib下;

这步骤时,lib是哪个路径下的?
没有确认好
 楼主| 发表于 2014-11-18 15:57:29 | 显示全部楼层
xjl_hi 发表于 2014-11-18 15:00
从海思发布的SDK包里面rootfs-FULL_REL下搜索libstdc++.so.6 libstdc++.so.6.0.3并复制到/lib下;

交 ...

从SDK的LIB中找到上面文件 放到NFS中,

后出现:

# ./chip -qws
QFontDatabase: Cannot find font directory /mnt/sd/qt/lib/fonts - is Qt installed correctly?
Aborted
发表于 2014-11-19 11:08:01 | 显示全部楼层
xjl_hi 发表于 2014-11-18 15:57
从SDK的LIB中找到上面文件 放到NFS中,

后出现:

神人啊,很详细我正好也打算做QT
您需要登录后才可以回帖 登录 | 注册

本版积分规则

© 2008-2017 当前位置 易百纳技术社区论坛 返回 易百纳技术社区 ( 苏ICP备14036084 )   Powered by Discuz! X3.1
快速回复 返回顶部 返回列表