Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24798

Unable to compile project after launching Qt Creator with CMakeLists.txt file as argument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • Qt Creator 4.14.0-beta1
    • All Other Issues

    Description

      If Creator is launched from command line with:

      qtcreator.exe -noload UpdateInfo ..\Examples\Qt-6.0.0\widgets\widgets\wiggly\wiggly.pro

      it will launch Creator and open the wiggly project, which builds and runs fine.

      But if same is done for CMakeLists.txt file

      qtcreator.exe -noload UpdateInfo ..\Examples\Qt-6.0.0\widgets\widgets\wiggly\CMakeLists.txt

      Creator opens but the project 'configuration' (or how it's called) fails, and the project can not be compiled.

      2020-10-19T08:14:54 Clang Code Model: Error: The clangbackend executable "C:\Users\joaijala\RTA\qt5\Tools\Preview\Qt Creator 4.14.0-beta1\bin\clangbackend.exe" could not be started (timeout after 10000ms).
      Running C:\Utils\CMake\Tools\CMake_64\bin\cmake.exe -S C:/Users/joaijala/RTA/qt5/Examples/Qt-6.0.0/widgets/widgets/wiggly -B C:/Users/joaijala/AppData/Local/Temp/QtCreator-COKOZB/qtc-cmake-QiLrZkEu -GNinja "-DCMAKE_BUILD_TYPE:String=Debug" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Users/joaijala/RTA/qt5/6.0.0/android_arm64_v8a/bin/qmake.bat" "-DCMAKE_PREFIX_PATH:STRING=C:/Users/joaijala/RTA/qt5/6.0.0/android_arm64_v8a" "-DCMAKE_C_COMPILER:STRING=C:/Utils/Android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" "-DCMAKE_CXX_COMPILER:STRING=C:/Utils/Android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe" "-DANDROID_NATIVE_API_LEVEL:STRING=16" "-DANDROID_NDK:PATH=C:/Utils/Android/sdk/ndk/21.1.6352462" "-DCMAKE_TOOLCHAIN_FILE:PATH=C:/Utils/Android/sdk/ndk/21.1.6352462/build/cmake/android.toolchain.cmake" "-DANDROID_ABI:STRING=arm64-v8a" "-DANDROID_STL:STRING=c++_shared" "-DCMAKE_FIND_ROOT_PATH:PATH=C:/Users/joaijala/RTA/qt5/6.0.0/android_arm64_v8a" "-DQT_HOST_PATH:PATH=C:/Users/joaijala/RTA/qt5/6.0.0/mingw81_64" "-DANDROID_SDK_ROOT:PATH=C:/Utils/Android/sdk" in C:\Users\joaijala\AppData\Local\Temp\QtCreator-COKOZB\qtc-cmake-QiLrZkEu.
      CMake Error at CMakeLists.txt:38:
        Parse error.  Expected a command name, got unquoted argument with text
        "ANDROID_ABIS=arm64-v8a".
      -- Configuring incomplete, errors occurred!
      CMake process exited with exit code 1.
      

      If the wiggly\CMakeLists.txt is opened from Creator UI (file-open) project opens and can be configured and build, so seems that the example works, but something is different if CMakeLists.txt is given as argument.

      Might seem minor, but this blocks RTA Android hw deploy tests atm, opening the project from file-open with Squish is very error prone way. Hopefully this is something that could be fixed.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes