您尚未登录。

楼主 #1 2019-07-18 09:29:49

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

为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到?

make[1]: Entering directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/tools/uic'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/tools/uic'
cd src/corelib/ && make -f Makefile
make[1]: Entering directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib'
/home/pqfeng/qt-everywhere-opensource-src-4.8.6/bin/qmake -spec ../../mkspecs/arm-linux-gnueabihf -o Makefile corelib.pro
arm-linux-gnueabihf-g++ -c -pipe -O2 -O2 -march=armv7-a -lts -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_ARCH_ARM -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/arm-linux-gnueabihf -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -I/usr/local/tslib/include -o .obj/release-shared-emb-arm/qabstractanimation.o animation/qabstractanimation.cpp
make[1]: arm-linux-gnueabihf-g++:命令未找到
Makefile:6555: recipe for target '.obj/release-shared-emb-arm/qabstractanimation.o' failed

make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 127
make[1]: Leaving directory '/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib'
Makefile:198: recipe for target 'sub-corelib-make_default-ordered' failed
make: *** [sub-corelib-make_default-ordered] Error 2
pqfeng@ubuntu:~/qt-everywhere-opensource-src-4.8.6$ arm-linux-gnueabihf-g++ -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-g++
COLLECT_LTO_WRAPPER=/opt/arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.2/lto-wrapper
Target: arm-linux-gnueabihf

Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.9-2014.09/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-plugin --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb --disable-multilib --with-float=hard
Thread model: posix
gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)

离线

#2 2019-07-18 09:40:05

迪卡
会员
所在地: 河北
注册时间: 2018-11-02
已发帖子: 916
积分: 903
个人网站

Re: 为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到?

这个......没研究过.....,帮顶

离线

楼主 #3 2019-07-18 09:52:37

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

Re: 为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到?

没办法,我用了绝对路径就OK了。。。。。也是日了狗。

离线

#4 2019-07-18 09:55:04

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到?

你是不是用了 sudo make ?





离线

楼主 #5 2019-07-19 14:57:54

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

Re: 为什么明明有arm-linux-gnueabihf-g++ 工具,却又报找不到?

是的,用的是Sudo make,因为要创建文件嘛。不过我在sudo 上调用arm-linux-gnueabihf-g++没有问题啊。

离线

页脚

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

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