Unsolved Project ERROR: Cannot run target compiler
-
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??
-
How did you set up your toolchain for android compilation?
Did it run before? -
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 ? -
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