-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.11.1
-
Mac OS Catalina 10.15.3, Qt 5.14.1, Qt Creator 4.11.1
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".
- relates to
-
QTCREATORBUG-26121 Configuration fails with Qt Creator 4.15.2 + CMake + iOS + Qt5.15
-
- Closed
-
-
QTCREATORBUG-24940 CMake project fails to build/run at iOS simulator
-
- Closed
-
- replaces
-
QTCREATORBUG-25058 Qt 6.0.0 for iOS fails with CMake
-
- Closed
-