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. App cannot be built using Qt 5.13 (Android)
Forum Updated to NodeBB v4.3 + New Features

App cannot be built using Qt 5.13 (Android)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 428 Views
  • 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.
  • D Offline
    D Offline
    Devoo
    wrote on last edited by Devoo
    #1

    Hey,
    Few hours ago, I was able to build an app using Qt 5.13.1 with NDK 19.2.5345600 for Android.
    Unfortunately when trying to use Qt 5.15 I had to mess up my previous settings.

    Logs:

    Running E:\Program Files\CMake\bin\cmake.exe "-GCodeBlocks - NMake Makefiles" M:/project in C:\Users\Awaria\AppData\Local\Temp\QtCreator-vgZVSG\qtc-cmake-hoJLpBCZ.
    -- The C compiler identification is Clang 8.0.2
    -- The CXX compiler identification is Clang 8.0.2
    -- Check for working C compiler: E:/IT/Android/SDK/ndk/19.2.5345600/toolchains/llvm/prebuilt/windows/bin/clang.exe
    -- Check for working C compiler: E:/IT/Android/SDK/ndk/19.2.5345600/toolchains/llvm/prebuilt/windows/bin/clang.exe -- broken
    CMake Error at E:/Program Files/CMake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
      The C compiler
    
        "E:/IT/Android/SDK/ndk/19.2.5345600/toolchains/llvm/prebuilt/windows/bin/clang.exe"
    
      is not able to compile a simple test program.
    
      It fails with the following output:
    
        Change Dir: C:/Users/Awaria/AppData/Local/Temp/QtCreator-vgZVSG/qtc-cmake-hoJLpBCZ/CMakeFiles/CMakeTmp
        
        Run Build Command(s):nmake /nologo cmTC_b39b9\fast && 	"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\nmake.exe" -f CMakeFiles\cmTC_b39b9.dir\build.make /nologo -L                  CMakeFiles\cmTC_b39b9.dir\build
        Building C object CMakeFiles/cmTC_b39b9.dir/testCCompiler.c.obj
        	E:\IT\Android\SDK\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows\bin\clang.exe    -o CMakeFiles\cmTC_b39b9.dir\testCCompiler.c.obj   -c C:\Users\Awaria\AppData\Local\Temp\QtCreator-vgZVSG\qtc-cmake-hoJLpBCZ\CMakeFiles\CMakeTmp\testCCompiler.c
        Linking C executable cmTC_b39b9.exe
        	"E:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_b39b9.dir/objects.a
        	E:\IT\Android\SDK\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows\bin\llvm-ar.exe cr CMakeFiles\cmTC_b39b9.dir/objects.a @CMakeFiles\cmTC_b39b9.dir\objects1.rsp
        	E:\IT\Android\SDK\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows\bin\clang.exe      -Wl,--whole-archive CMakeFiles\cmTC_b39b9.dir/objects.a -Wl,--no-whole-archive  -o cmTC_b39b9.exe -Wl,--out-implib,libcmTC_b39b9.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_b39b9.dir\linklibs.rsp
        clang.exe: error: unable to execute command: program not executable
        clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)
        NMAKE : fatal error U1077: äE:\IT\Android\SDK\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows\bin\clang.exeö: kod powrotu ä0x1ö
        Stop.
        NMAKE : fatal error U1077: ä"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\nmake.exe"ö: kod powrotu ä0x2ö
        Stop.
        
        
    
      
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:2 (PROJECT)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Awaria/AppData/Local/Temp/QtCreator-vgZVSG/qtc-cmake-hoJLpBCZ/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Awaria/AppData/Local/Temp/QtCreator-vgZVSG/qtc-cmake-hoJLpBCZ/CMakeFiles/CMakeError.log".
    CMake process exited with exit code 1.
    Elapsed time: 00:01.
    

    I updated some SDK tools and installed NDK 20 and 21.
    My OS: Windows 10

    alt text
    alt text

    Environment variables (Path):
    alt text
    alt text

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jarek B
      wrote on last edited by Jarek B
      #2

      I had very simillar issue, but with ninja generator.
      You can try to compile simple program using detected compiler (just main returning 0) with -v argument to see what is wrong, but I think it will be problem with missing linker (which is wrongly reported as unable to execute command: program not executable). On my other machine there were no such issue, so I don't know what is causing that. You might try to add path to ld from your environment - in my case it was C:\Qt\Tools\mingw730_64\bin

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Devoo
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • D Offline
          D Offline
          Devoo
          wrote on last edited by Devoo
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • D Offline
            D Offline
            Devoo
            wrote on last edited by Devoo
            #5

            I couldn't fix it for hours ...
            I downgraded the version of QtCreator TO 4.10 and errors were shown...
            Solution here: https://forum.qt.io/topic/117303/qtcreator-doesn-t-find-standard-headers/3

            1 Reply Last reply
            0

            • Login

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