您尚未登录。

楼主 #1 2019-07-17 20:14:24

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++

pqfeng@ubuntu:~/qt-everywhere-opensource-src-4.8.6$ sudo ./configure -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM
[sudo] pqfeng 的密码:

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

You have already accepted the terms of the  license.

Creating qmake. Please wait...
g++ -c -o unixmake2.o -pipe -m64 -DQMAKE_OPENSOURCE_EDITION -O2 -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/include -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/include/QtCore -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib/global -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib/xml -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/mkspecs/qws/linux-x86_64-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED  generators/unix/unixmake2.cpp
^Cmake: *** wait: 没有子进程。 停止。
make: *** 正在等待未完成的任务....
make: *** wait: 没有子进程。 停止。

我明明配置了嵌入式编译环境,运行时却是g++,在这个配置完成后,make也是g++编译出的PC版。不知道为什么。附:我在mkspace 下有arm-linux-gnueabihf目录。

离线

#2 2019-07-17 20:29:00

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,242
积分: 9197

Re: 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++

./configure --host=arm-linux ....

看是不是这个问题





离线

楼主 #3 2019-07-18 09:04:39

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++

sudo ./configure --host=arm-linux -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM
[sudo] pqfeng 的密码:
--host=arm-linux: invalid command-line switch


没有这个参数选项。。。。。

离线

#4 2019-07-18 09:23:03

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,242
积分: 9197

Re: 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++

我认为一楼的正常, 因为可能在生成一些本地的工具。

你让他执行完就好了, 然后再 make





离线

楼主 #5 2019-07-19 14:59:10

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请教一下,为什么configure运行是用的是g++ 而不是arm-linux-gnueabihf-g++

是的,可能那个是正常的,可能是先用g++生成文件,然后再用交叉编译生成执行程序。看了运行数据显示好像正常的

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn