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

cmake support for iOS

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    Description

      Default cmake Quick project cannot be compiled. I'm using Mac OS Catalina 10.15.3, Qt 5.14.1, Qt Creator 4.11.1

      Steps to reproduce:
      1. Create new cmake project (attached)
      2. Build it for iOS

      Work /usr/local/Cellar/cmake/3.16.3/bin/cmake /Users/derom/Projects/CmakeQuick '-GCodeBlocks - Unix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ '-DCMAKE_CXX_COMPILER_TARGET :STRING=aarch64-apple-darwin19.2.0' -DCMAKE_C_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_C_COMPILER_TARGET:STRING=aarch64-apple-darwin19.2.0 -DCMAKE_PREFIX_PATH:STRING=/Users/derom/Applications/Qt/5.14.1/ios -DCMAKE_SYSROOT:STRING=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -DQT_QMAKE_EXECUTABLE:STRING=/Users/derom/Applications/Qt/5.14.1/ios/bin/qmake на /private/var/folders/fb/wln8b4nd5sx2vl2bx3gjqng00000gn/T/QtCreator-EqSOAb/qtc-cmake-pnhovqRX.
      -- The CXX compiler identification is AppleClang 11.0.0.11000033
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- broken
      CMake Error at /usr/local/Cellar/cmake/3.16.3/share/cmake/Modules/CMakeTestCXXCompiler.cmake:53 (message):
        The C++ compiler
      
          "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
      
        is not able to compile a simple test program.
      
        It fails with the following output:
      
          Change Dir: /private/var/folders/fb/wln8b4nd5sx2vl2bx3gjqng00000gn/T/QtCreator-EqSOAb/qtc-cmake-pnhovqRX/CMakeFiles/CMakeTmp
          
          Run Build Command(s):/usr/bin/make cmTC_a9fe8/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_a9fe8.dir/build.make CMakeFiles/cmTC_a9fe8.dir/build
          Building CXX object CMakeFiles/cmTC_a9fe8.dir/testCXXCompiler.cxx.o
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk    -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk   -o CMakeFiles/cmTC_a9fe8.dir/testCXXCompiler.cxx.o -c /private/var/folders/fb/wln8b4nd5sx2vl2bx3gjqng00000gn/T/QtCreator-EqSOAb/qtc-cmake-pnhovqRX/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
          Linking CXX executable cmTC_a9fe8
          /usr/local/Cellar/cmake/3.16.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a9fe8.dir/link.txt --verbose=1
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk    -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/cmTC_a9fe8.dir/testCXXCompiler.cxx.o  -o cmTC_a9fe8 
          ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libc++.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libc++.tbd (4 slices)
          ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libSystem.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libSystem.tbd (4 slices)
          ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          make[1]: *** [cmTC_a9fe8] Error 1
          make: *** [cmTC_a9fe8/fast] Error 2
          
          
      
        
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:3 (project)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/private/var/folders/fb/wln8b4nd5sx2vl2bx3gjqng00000gn/T/QtCreator-EqSOAb/qtc-cmake-pnhovqRX/CMakeFiles/CMakeOutput.log".
      See also "/private/var/folders/fb/wln8b4nd5sx2vl2bx3gjqng00000gn/T/QtCreator-EqSOAb/qtc-cmake-pnhovqRX/CMakeFiles/CMakeError.log".
      

      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
              raymondo Roman Putintsev
              Votes:
              8 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews