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. Cmake project for mobile. How?
Forum Updated to NodeBB v4.3 + New Features

Cmake project for mobile. How?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 350 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    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
      Screenshot 2019-09-25 at 23.38.08.png

    • any attempt to build for iOS got error - do not available SDK but it's working on qmake project
      Screenshot 2019-09-25 at 23.39.46.png

    • 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.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Darsath
      wrote on last edited by
      #2

      @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-android

      There'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

      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