Unsolved Cmake project for mobile. How?
-
Hello!
I am trying to use Cmake project for mobile application. Is it possible to get the same deploy funtionality like it's making with qmake in Qt Creator? Is there any manuals for defining Android and iOS build with Cmake and auto deploy it to device o simulator?For now just default empty project:
-
do not show for Android arm-v8 or arm-v7, only x86 and x86_64 but duplicating kits
-
any attempt to build for iOS got error - do not available SDK but it's working on qmake project
-
when I am trying to build for desktop got this:
23:48:47: Starting /Users/alexandr/QtProjects/build-CMake1-Desktop_Qt_5_13_1_clang_64bit-Debug/CMake1 ... objc[1538]: Class QMacAutoReleasePoolTracker is implemented in both /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1130fe6b0) and /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore_debug (0x111e751e8). One of the two will be used. Which one is undefined. objc[1538]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1130fe728) and /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore_debug (0x111e75260). One of the two will be used. Which one is undefined. objc[1538]: Class KeyValueObserver is implemented in both /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1130fe750) and /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore_debug (0x111e75288). One of the two will be used. Which one is undefined. objc[1538]: Class RunLoopModeTracker is implemented in both /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1130fe7a0) and /Users/alexandr/Tools/qt/5.13.1/clang_64/lib/QtCore.framework/Versions/5/QtCore_debug (0x111e752d8). One of the two will be used. Which one is undefined. QML debugging is enabled. Only use this in a safe environment. qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: cocoa, minimal, offscreen, webgl. 23:48:47: The program has unexpectedly finished. 23:48:47: The process was ended forcefully. 23:48:47: /Users/alexandr/QtProjects/build-CMake1-Desktop_Qt_5_13_1_clang_64bit-Debug/CMake1 crashed.
All of it on default empty project from Qt Creator template.
-
-
@bogong Hi, have you tried to follow this ?
https://community.idera.com/developer-tools/b/blog/posts/new-in-10-2-3-cmake-support-for-ios-and-androidThere's some lines to add in the cmakefile to make this work.
You also need to import libraries like you would do in qmake.
Regards