add compiler to Qt creator, but said "no compiler can produce code for this version"



  • I have ubuntu X64, and install qt creator with this command: "sudo apt-get install qtcreator" it is a bout 160MG. befor install it I export arm-linux-gcc 4.9.3.

    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)
    

    then I install qt4.8.6 with this command:

    ./configure -embedded armv7l -prefix /opt/Qt4.8 -xplatform qws/linux-arm-g++ -no-webkit 
    

    and make and make install are successfully. when I open qt creator and set the qt version with this qmake(/opt/Qt4.8/bin/qmake) but show this error" No compiler can produce code for this Qt version. Please one or more compiler"

    could you help me.
    thanx in advance



  • I found the answer: I should create my GCC and set it to my Qt version

    The problem wasn't the missing Qt version but the missing tool chain.

    In Tools → Options → Tool Chains add GCC and set your gcc path as the Compiler path.
    https://askubuntu.com/questions/85970/qt-creator-wont-recognize-any-qt-version


Log in to reply