Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

CXX Compiler error : arm-linux-androideabi-g++ -- broken



  • I am not able to setup QT-Android project

    toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++"

    is not able to compile a simple test program.

    It fails with the following output:

    Change Dir: /tmp/QtCreator-6YdN8z/qtc-cmake-XXJsDmA0/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_9e445/fast"
    /usr/bin/make -f CMakeFiles/cmTC_9e445.dir/build.make CMakeFiles/cmTC_9e445.dir/build
    make[1]: Entering directory '/tmp/QtCreator-6YdN8z/qtc-cmake-XXJsDmA0/CMakeFiles/CMakeTmp'
    Building CXX object CMakeFiles/cmTC_9e445.dir/testCXXCompiler.cxx.o
    

    collect2: error: ld returned 1 exit status
    CMakeFiles/cmTC_9e445.dir/build.make:97: recipe for target 'cmTC_9e445' failed
    make[1]: *** [cmTC_9e445] Error 1
    make[1]: Leaving directory '/tmp/QtCreator-6YdN8z/qtc-cmake-XXJsDmA0/CMakeFiles/CMakeTmp'
    Makefile:126: recipe for target 'cmTC_9e445/fast' failed
    make: *** [cmTC_9e445/fast] Error 2

    CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
    CMakeLists.txt:4 (project)


  • Lifetime Qt Champion

    @avi_4 Hi!
    Which Qt version did you install?
    Which NDK version did you install?
    Is your Android Kit properly configured in QtCreator?


Log in to reply