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. Qt 6.9.3/6.10.0: Compile source for iOS-Simulator failes
Forum Updated to NodeBB v4.3 + New Features

Qt 6.9.3/6.10.0: Compile source for iOS-Simulator failes

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6.9.3compileios-simulatoriphonesimulator
2 Posts 1 Posters 162 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.
  • T Offline
    T Offline
    TheoSys
    wrote on last edited by
    #1

    Hi,

    because the plugin QDarwinCameraPermissionPlugin_init.cpp.o is build for iOS only, my app fails linking if it was compiled for iOS-Simulator. The only solution I found so far is to recompile the source for iOS-Simulator. When I try this I get at least the following error which I can't solve:

    ERROR: detected a std::atomic implementation that fails for function pointers.
    
    CMake Error at qtbase/cmake/QtBuildInformation.cmake:240 (message):
      Check the configuration messages for an error that has occurred.
    Call Stack (most recent call first):
      qtbase/cmake/QtBuildInformation.cmake:59 (qt_configure_print_summary)
      qtbase/cmake/QtBaseTopLevelHelpers.cmake:97 (qt_print_feature_summary)
      qtbase/cmake/QtBaseTopLevelHelpers.cmake:76 (qt_internal_print_top_level_info)
      CMakeLists.txt:124 (qt_internal_top_level_end)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1171 (message):
      CMake exited with code 1.
    
    
    CMake Error at cmake/QtIRProcessHelpers.cmake:173 (message):
      /opt/Qt/6.9.3/Src/qtbase/configure -top-level
      LLVM_INSTALL_DIR=/opt/homebrew/opt/llvm FEATURE_clang=ON
      FEATURE_clangcpp=ON -no-opengl -platform macx-ios-clang -debug
      -qt-host-path /opt/Qt/6.9.3/macos -sdk iphonesimulator --
      -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang
      -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++
      -DCMAKE_APPLE_ARCH_SYSROOTS=iphonesimulator -DQT_OSX_ARCHITECTURES=arm64
      -DCMAKE_OSX_ARCHITECTURES=arm64
      -DQt6OpcUaTools_DIR=/opt/Qt/6.9.3/Src/qtbase/lib/cmake/Qt6OpcUaTools
      -DCMAKE_THREAD_LIBS_INIT=-lpthread -DCMAKE_HAVE_THREADS_LIBRARY=1
      -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1
      -DTHREADS_PREFER_PTHREAD_FLAG=ON exited with status: 1
    
    Call Stack (most recent call first):
      cmake/QtTopLevelHelpers.cmake:35 (qt_ir_execute_process_and_log_and_handle_error)
      cmake/QtTopLevelHelpers.cmake:57 (qt_tl_run_toplevel_configure)
      cmake/QtTopLevelConfigureScript.cmake:16 (qt_tl_run_main_script)
    

    I tried already with the native CLang compiler from Apple, but got the same error. Then I tried with the one in homebrew and the problem is the same. Does anybody know a way to fix this? Is there a way around it?

    I'm on a Mac Mini with Apple silicon (M1). The OS version is 26.

    Alternatively, if someone has the file QDarwinCameraPermissionPlugin_init.cpp.o already compiled for architecture arm64 and iOS-Simulator I would be glad if you can share this file.

    A.T.

    T 1 Reply Last reply
    0
    • T TheoSys

      Hi,

      because the plugin QDarwinCameraPermissionPlugin_init.cpp.o is build for iOS only, my app fails linking if it was compiled for iOS-Simulator. The only solution I found so far is to recompile the source for iOS-Simulator. When I try this I get at least the following error which I can't solve:

      ERROR: detected a std::atomic implementation that fails for function pointers.
      
      CMake Error at qtbase/cmake/QtBuildInformation.cmake:240 (message):
        Check the configuration messages for an error that has occurred.
      Call Stack (most recent call first):
        qtbase/cmake/QtBuildInformation.cmake:59 (qt_configure_print_summary)
        qtbase/cmake/QtBaseTopLevelHelpers.cmake:97 (qt_print_feature_summary)
        qtbase/cmake/QtBaseTopLevelHelpers.cmake:76 (qt_internal_print_top_level_info)
        CMakeLists.txt:124 (qt_internal_top_level_end)
      
      
      -- Configuring incomplete, errors occurred!
      CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1171 (message):
        CMake exited with code 1.
      
      
      CMake Error at cmake/QtIRProcessHelpers.cmake:173 (message):
        /opt/Qt/6.9.3/Src/qtbase/configure -top-level
        LLVM_INSTALL_DIR=/opt/homebrew/opt/llvm FEATURE_clang=ON
        FEATURE_clangcpp=ON -no-opengl -platform macx-ios-clang -debug
        -qt-host-path /opt/Qt/6.9.3/macos -sdk iphonesimulator --
        -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang
        -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++
        -DCMAKE_APPLE_ARCH_SYSROOTS=iphonesimulator -DQT_OSX_ARCHITECTURES=arm64
        -DCMAKE_OSX_ARCHITECTURES=arm64
        -DQt6OpcUaTools_DIR=/opt/Qt/6.9.3/Src/qtbase/lib/cmake/Qt6OpcUaTools
        -DCMAKE_THREAD_LIBS_INIT=-lpthread -DCMAKE_HAVE_THREADS_LIBRARY=1
        -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1
        -DTHREADS_PREFER_PTHREAD_FLAG=ON exited with status: 1
      
      Call Stack (most recent call first):
        cmake/QtTopLevelHelpers.cmake:35 (qt_ir_execute_process_and_log_and_handle_error)
        cmake/QtTopLevelHelpers.cmake:57 (qt_tl_run_toplevel_configure)
        cmake/QtTopLevelConfigureScript.cmake:16 (qt_tl_run_main_script)
      

      I tried already with the native CLang compiler from Apple, but got the same error. Then I tried with the one in homebrew and the problem is the same. Does anybody know a way to fix this? Is there a way around it?

      I'm on a Mac Mini with Apple silicon (M1). The OS version is 26.

      Alternatively, if someone has the file QDarwinCameraPermissionPlugin_init.cpp.o already compiled for architecture arm64 and iOS-Simulator I would be glad if you can share this file.

      A.T.

      T Offline
      T Offline
      TheoSys
      wrote on last edited by
      #2

      I must reply to my own question. In the mean time I found the problem. I defined the parameter:

      -DCMAKE_APPLE_ARCH_SYSROOTS=iphonesimulator
      

      This is wrong because it must be a path to the SDK root. After removing this parameter configure succeeded and it compiled as expected.

      A.T.

      1 Reply Last reply
      1
      • T TheoSys has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved