make[1]: arm-linux-g++: Command not found for install qt4.8 with gcc4.9.3
Unsolved
Mobile and Embedded
-
Hi. I add PATH and also change the qmake file in this directory: /mkspec/qws/arm-klinux-gnueabi
But after configure command I enter sudo make but it display these errors:root@ubuntu:/opt/qt-everywhere-opensource-src-4.8.6# sudo make cd src/tools/bootstrap/ && make -f Makefile make[1]: Entering directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/bootstrap' make[1]: Nothing to be done for 'first'. make[1]: Leaving directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/bootstrap' cd src/tools/moc/ && make -f Makefile make[1]: Entering directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/moc' make[1]: Nothing to be done for 'first'. make[1]: Leaving directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/moc' cd src/tools/rcc/ && make -f Makefile make[1]: Entering directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/rcc' make[1]: Nothing to be done for 'first'. make[1]: Leaving directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/rcc' cd src/tools/uic/ && make -f Makefile make[1]: Entering directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/uic' make[1]: Nothing to be done for 'first'. make[1]: Leaving directory '/opt/qt-everywhere-opensource-src-4.8.6/src/tools/uic' cd src/corelib/ && make -f Makefile make[1]: Entering directory '/opt/qt-everywhere-opensource-src-4.8.6/src/corelib' arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQLIBRARYINFO_EPOCROOT -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared -Iglobal -I../../tools/shared -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared -o .obj/release-shared/qabstractanimation.o animation/qabstractanimation.cpp make[1]: arm-linux-g++: Command not found Makefile:7033: recipe for target '.obj/release-shared/qabstractanimation.o' failed make[1]: *** [.obj/release-shared/qabstractanimation.o] Error 127 make[1]: Leaving directory '/opt/qt-everywhere-opensource-src-4.8.6/src/corelib' Makefile:201: recipe for target 'sub-corelib-make_default-ordered' failed make: *** [sub-corelib-make_default-ordered] Error 2 root@ubuntu:/opt/qt-everywhere-opensource-src-4.8.6
my qt creator has qml version 5.3, but I need qml in version 4 for my embed device, So I decide to install qt-every-where-4.8.6, but my arm-linux-gcc is this:
root@ubuntu:/opt/qt-everywhere-opensource-src-4.8.6# arm-linux-gcc -v Using built-in specs. COLLECT_GCC=arm-linux-gcc COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolchain/4.9.3/libexec/gcc/arm-cortexa9-linux-gnueabihf/4.9.3/lto-wrapper Target: arm-cortexa9-linux-gnueabihf Configured with: /work/toolchain/build/src/gcc-4.9.3/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=arm-cortexa9-linux-gnueabihf --prefix=/opt/FriendlyARM/toolchain/4.9.3 --with-sysroot=/opt/FriendlyARM/toolchain/4.9.3/arm-cortexa9-linux-gnueabihf/sys-root --enable-languages=c,c++ --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard --with-pkgversion=ctng-1.21.0-229g-FA --with-bugurl=http://www.friendlyarm.com/ --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --with-gmp=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-mpfr=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-mpc=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-isl=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-cloog=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-libelf=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --enable-lto --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-threads=posix --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-gold --disable-multilib --with-local-prefix=/opt/FriendlyARM/toolchain/4.9.3/arm-cortexa9-linux-gnueabihf/sys-root --enable-long-long Thread model: posix gcc version 4.9.3 (ctng-1.21.0-229g-FA) //========================================================= root@ubuntu:/opt/qt-everywhere-opensource-src-4.8.6# arm-linux-g++ -v Using built-in specs. COLLECT_GCC=arm-linux-g++ COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolchain/4.9.3/libexec/gcc/arm-cortexa9-linux-gnueabihf/4.9.3/lto-wrapper Target: arm-cortexa9-linux-gnueabihf Configured with: /work/toolchain/build/src/gcc-4.9.3/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=arm-cortexa9-linux-gnueabihf --prefix=/opt/FriendlyARM/toolchain/4.9.3 --with-sysroot=/opt/FriendlyARM/toolchain/4.9.3/arm-cortexa9-linux-gnueabihf/sys-root --enable-languages=c,c++ --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard --with-pkgversion=ctng-1.21.0-229g-FA --with-bugurl=http://www.friendlyarm.com/ --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --with-gmp=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-mpfr=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-mpc=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-isl=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-cloog=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --with-libelf=/work/toolchain/build/arm-cortexa9-linux-gnueabihf/buildtools --enable-lto --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-threads=posix --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-gold --disable-multilib --with-local-prefix=/opt/FriendlyARM/toolchain/4.9.3/arm-cortexa9-linux-gnueabihf/sys-root --enable-long-long Thread model: posix gcc version 4.9.3 (ctng-1.21.0-229g-FA)
and in installation proccess ,make command has this error:
make[1]: arm-linux-g++: Command not found Makefile:7033: recipe for target '.obj/release-shared/qabstractanimation.o' failed make[1]: *** [.obj/release-shared/qabstractanimation.o] Error 127
How can I solve the problem?
-
Hi,
You seem to only have the C cross-compiler installed not the C++.
Also, you should really consider stopping developing as root. That's pretty dangerous.