Takin

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin  发布于  2014-11-13 19:46:24
采纳率 0%
41个问答
10996

3531QT移植

 

参考网友 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

我来回答
回答17个
时间排序
认可量排序

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-13 19:47:36
认可0
本帖最后由 ebaina 于 2014-11-14 08:41 编辑

[code]上面链接内容如下:
移植QT4.5.3到海斯平台 HI3512 Hi3515 Hi3520 等



PC主机做如下操作:

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也没有用;

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

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

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

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

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

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

gmake

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

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

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

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

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

如果运行过程中提示“QFontEngineQPF failed”字样,把src/gui/text/qfontdatabase_qws.cpp打开做一下空写操作,然后重新上面所有步骤再编译一遍即可,原因未明。[/code]

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-14 09:03:26
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9075&ptid=4189]xjl_hi 发表于 2014-11-13 19:47[/url]
[/quote]

早上再测试时,
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)

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-14 09:08:55
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9078&ptid=4189]xjl_hi 发表于 2014-11-14 09:03[/url]
早上再测试时,
make花一个多小时没报错了
make install
[/quote]

说明---
报第一个错误后,我删除了解压后的文件,重做所有步骤,
后make没有报错,
当执行make install时报楼上的错

richardwu

0个粉丝

7

问答

0

专栏

1

资料

richardwu 2014-11-14 11:40:26
认可0
要不要把qt源码删掉,重新解压缩一份再试试?

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-14 15:38:39
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9086&ptid=4189]richardwu 发表于 2014-11-14 11:40[/url]
要不要把qt源码删掉,重新解压缩一份再试试?[/quote]

又重做了一次,
原是
--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上?

bhua

0个粉丝

10

问答

0

专栏

2

资料

bhua 2014-11-16 16:18:28
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9092&ptid=4189]xjl_hi 发表于 2014-11-14 15:38[/url]
又重做了一次,
原是
--prefix=/home/chl/temp/qt/Trolltech/qtHisi
[/quote]

挂载nfs文件系统不是可以解决这个问题么?  挂载了nfs之后chroot将nfs作为开发板的根目录

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 11:29:58
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9127&ptid=4189]bhua 发表于 2014-11-16 16:18[/url]
挂载nfs文件系统不是可以解决这个问题么?  挂载了nfs之后chroot将nfs作为开发板的根目录[/quote]

前两天耽搁了下

挂载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使用率过高?
具体问题还不清楚,在网上找别人遇到的情况,貌是解决办法不适用,
哪位见到过不?

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 14:14:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9318&ptid=4189]xjl_hi 发表于 2014-11-18 11:29[/url]
前两天耽搁了下

挂载nfs了,
[/quote]

# 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

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 14:24:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9321&ptid=4189]xjl_hi 发表于 2014-11-18 14:14[/url]
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root             ...[/quote]

删除mnt目录下的一些文件

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 14:25:03
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9322&ptid=4189]xjl_hi 发表于 2014-11-18 14:24[/url]
删除mnt目录下的一些文件[/quote]

# 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

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 14:43:24
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9323&ptid=4189]xjl_hi 发表于 2014-11-18 14:25[/url]
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root             ...[/quote]


执行./chip -qws
报如下:
./chip: error while loading ared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 15:00:28
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9324&ptid=4189]xjl_hi 发表于 2014-11-18 14:43[/url]
执行./chip -qws
报如下:
./chip: error while loading ared libraries: libstdc++.so.6: cannot op ...[/quote]

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

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

这步骤时,lib是哪个路径下的?
没有确认好

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-18 15:57:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9325&ptid=4189]xjl_hi 发表于 2014-11-18 15:00[/url]
从海思发布的SDK包里面rootfs-FULL_REL下搜索libstdc++.so.6 libstdc++.so.6.0.3并复制到/lib下;

交 ...[/quote]

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

后出现:

# ./chip -qws
QFontDatabase: Cannot find font directory /mnt/sd/qt/lib/fonts - is Qt installed correctly?
Aborted

maxiaozhi

0个粉丝

19

问答

0

专栏

0

资料

maxiaozhi 2014-11-19 11:08:01
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9331&ptid=4189]xjl_hi 发表于 2014-11-18 15:57[/url]
从SDK的LIB中找到上面文件 放到NFS中,

后出现:
[/quote]

神人啊,很详细:lol我正好也打算做QT

Takin

1个粉丝

41

问答

0

专栏

0

资料

Takin 2014-11-20 10:14:57
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9345&ptid=4189]maxiaozhi 发表于 2014-11-19 11:08[/url]
神人啊,很详细我正好也打算做QT[/quote]

结贴了,
搞了很久了,早上有进展了,
网上别人说的大都不全,
但多参考几个不同人的还是能做出来,
一周以来看很多篇别人的总结,自己做了5、6次不同的偿试

2628

0个粉丝

8

问答

0

专栏

1

资料

2628 2014-12-04 15:33:13
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=9509&ptid=4189]xjl_hi 发表于 2014-11-20 10:14[/url]
结贴了,
搞了很久了,早上有进展了,
网上别人说的大都不全,
[/quote]

我的qt移植过去后,没有显示。看了很多帖子,还是不觉明历……
楼主能否总结一下,都要注意一些什么?

hero

0个粉丝

1

问答

0

专栏

0

资料

hero 2019-02-20 17:41:42
认可0
nice:victory::victory::victory::victory:
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区