Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Project ERROR: Cannot run target compiler
Qt 6.11 is out! See what's new in the release blog

Project ERROR: Cannot run target compiler

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • amir.sanaatA Offline
    amir.sanaatA Offline
    amir.sanaat
    wrote on last edited by
    #1

    hey experts.
    i come across with a problem with running the program for getting apk output.
    the error, which i have faced was apeare in "General message" and was like this:

    Project ERROR: Cannot run target compiler 'D:\androidSDK\android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++'. Output:
    ===================
    Using built-in specs.
    COLLECT_GCC=D:\androidSDK\android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++
    arm-linux-androideabi-g++: error: unrecognized command line option '-fstack-protector-strong'
    Target: arm-linux-androideabi
    Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.8/configure --prefix=/tmp/ndk-andrewhsieh/gcc/prefix --target=arm-linux-androideabi --host=x86_64-pc-mingw32msvc --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/gcc/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/gcc/temp-install --with-mpc=/tmp/ndk-andrewhsieh/gcc/temp-install --with-cloog=/tmp/ndk-andrewhsieh/gcc/temp-install --with-isl=/tmp/ndk-andrewhsieh/gcc/temp-install --with-ppl=/tmp/ndk-andrewhsieh/gcc/temp-install --disable-ppl-version-check --disable-cloog-version-check --disable-isl-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/gcc/prefix --with-sysroot=/tmp/ndk-andrewhsieh/gcc/prefix/sysroot --with-binutils-version=2.24 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.8 --with-gdb-version=7.6 --with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/windows-x86_64/bin/python-config.sh --with-gxx-include-dir=/tmp/ndk-andrewhsieh/gcc/prefix/include/c++/4.8 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --enable-plugins --enable-libgomp --disable-libsanitizer --enable-gold --enable-graphite=yes --with-cloog-version=0.18.0 --with-isl-version=0.11.1 --enable-eh-frame-hdr-for-static --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default
    Thread model: posix
    gcc version 4.8 (GCC) 
    ===================
    Maybe you forgot to setup the environment?
    Error while parsing file C:\Users\sanaat\untitled5\untitled5.pro. Giving up.
    

    anyone have any idea for solving it??

    K 1 Reply Last reply
    0
    • amir.sanaatA amir.sanaat

      hey experts.
      i come across with a problem with running the program for getting apk output.
      the error, which i have faced was apeare in "General message" and was like this:

      Project ERROR: Cannot run target compiler 'D:\androidSDK\android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++'. Output:
      ===================
      Using built-in specs.
      COLLECT_GCC=D:\androidSDK\android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++
      arm-linux-androideabi-g++: error: unrecognized command line option '-fstack-protector-strong'
      Target: arm-linux-androideabi
      Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.8/configure --prefix=/tmp/ndk-andrewhsieh/gcc/prefix --target=arm-linux-androideabi --host=x86_64-pc-mingw32msvc --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/gcc/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/gcc/temp-install --with-mpc=/tmp/ndk-andrewhsieh/gcc/temp-install --with-cloog=/tmp/ndk-andrewhsieh/gcc/temp-install --with-isl=/tmp/ndk-andrewhsieh/gcc/temp-install --with-ppl=/tmp/ndk-andrewhsieh/gcc/temp-install --disable-ppl-version-check --disable-cloog-version-check --disable-isl-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/gcc/prefix --with-sysroot=/tmp/ndk-andrewhsieh/gcc/prefix/sysroot --with-binutils-version=2.24 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.8 --with-gdb-version=7.6 --with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/windows-x86_64/bin/python-config.sh --with-gxx-include-dir=/tmp/ndk-andrewhsieh/gcc/prefix/include/c++/4.8 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --enable-plugins --enable-libgomp --disable-libsanitizer --enable-gold --enable-graphite=yes --with-cloog-version=0.18.0 --with-isl-version=0.11.1 --enable-eh-frame-hdr-for-static --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default
      Thread model: posix
      gcc version 4.8 (GCC) 
      ===================
      Maybe you forgot to setup the environment?
      Error while parsing file C:\Users\sanaat\untitled5\untitled5.pro. Giving up.
      

      anyone have any idea for solving it??

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @amir.sanaat

      How did you set up your toolchain for android compilation?
      Did it run before?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • amir.sanaatA Offline
        amir.sanaatA Offline
        amir.sanaat
        wrote on last edited by
        #3

        hi @koahnig thanks for your reply.
        to tell you the truth i'm not profesional in qt and i didnt get your question.
        may i ask you to clarify ?

        aha_1980A 1 Reply Last reply
        0
        • amir.sanaatA amir.sanaat

          hi @koahnig thanks for your reply.
          to tell you the truth i'm not profesional in qt and i didnt get your question.
          may i ask you to clarify ?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #4

          Hi @amir.sanaat

          Have you already followed http://doc.qt.io/qt-5/androidgs.html and http://doc.qt.io/qtcreator/creator-developing-android.html ?

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved