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. Problem to build libraries for iOS
Forum Updated to NodeBB v4.3 + New Features

Problem to build libraries for iOS

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

    Hello,

    I'm trying to compile the zip and quazip libraries for iOs...

    When I load projects into qtcreator, I get the following error messages:

    Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.wcWOns/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-dvONQUlJ.
    Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.WTUIft/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK.
    Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.LbuWwt/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-PKNdRCKZ.
    Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.fBlMQp/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-kNnweyHS.
    Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Release", "-DCMAKE_CXX_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++", "-DCMAKE_CXX_COMPILER_TARGET :STRING=aarch64-apple-darwin19.6.0", "-DCMAKE_C_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang", "-DCMAKE_C_COMPILER_TARGET:STRING=aarch64-apple-darwin19.6.0", "-DCMAKE_PREFIX_PATH:STRING=/Users/franckrichard/Qt/5.15.0/ios", "-DCMAKE_SYSROOT:STRING=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk", "-DQT_QMAKE_EXECUTABLE:STRING=/Users/franckrichard/Qt/5.15.0/ios/bin/qmake".
    Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.kTJIbn/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK.
    The C compiler identification is AppleClang 11.0.3.11030032
    Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
    Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- broken
    CMake Error at /Applications/CMake.app/Contents/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (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/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK/CMakeFiles/CMakeTmp
        
        Run Build Command:"/Users/franckrichard/Qt/Tools/Ninja/ninja" "cmTC_31f43"
        [1/2] Building C object CMakeFiles/cmTC_31f43.dir/testCCompiler.c.o
        FAILED: CMakeFiles/cmTC_31f43.dir/testCCompiler.c.o 
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --target=aarch64-apple-darwin19.6.0 --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_31f43.dir/testCCompiler.c.o   -c testCCompiler.c
        error: unknown target triple 'unknown-apple-macosx10.15.0', please use -triple or -arch
        ninja: build stopped: subcommand failed.
        
    
      
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:4 (project)
    
    
    Configuring incomplete, errors occurred!
    See also "/private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK/CMakeFiles/CMakeOutput.log".
    See also "/private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK/CMakeFiles/CMakeError.log".
    CMake Project parsing failed.
    

    On the other hand, everything works fine when I compile for iOS simulator ... I'm using Qt 5.15.0

    How can I solve this?

    Thanks!

    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