Giter VIP home page Giter VIP logo

Comments (10)

leetal avatar leetal commented on May 14, 2024 4

So it seems this error may also be caused by not having Xcode installed alltogether or if you have installed the command-line tools AFTER you installed Xcode. Please try to run the command sudo xcode-select -s /Applications/Xcode.app/Contents/Developer and see if that fixes the problem. I will patch the toolchain to be more specific and also to hint about possible solutions to the problem.

from ios-cmake.

leetal avatar leetal commented on May 14, 2024 1

Hi! This error often occurrs when upgrading Xcode or the iOS toolchain to a newer version. This is due to the fact that the CMAKE_OSX_SYSROOT is cached in the build-files generated by cmake. I'll have a look at it and see if i can come up with a solution. The easiest solution for now is to clean the project and rebuild it again.

from ios-cmake.

yhn0071-pping avatar yhn0071-pping commented on May 14, 2024

I met this problem, too.

from ios-cmake.

gaoenjoy avatar gaoenjoy commented on May 14, 2024

solved it ?? I had same problem too

from ios-cmake.

wanJunGe avatar wanJunGe commented on May 14, 2024

Thank you for your reply。
i used 'make clean' to clean the project,the same error occured.
Is there any other way?
the project Can't be opened with Xcode and I cloned it from the Internet。

from ios-cmake.

WJ430981 avatar WJ430981 commented on May 14, 2024

i also has this problem, seems like a cmake upgrade issues, only build ios platform goes this error。but the logs something different like @wanJunGe post . here is my build logs. @leetal

-- Building with Xcode version: 9.4
-- Configuring iOS build for platform: SIMULATOR64, architecture(s): x86_64
-- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk for platform: SIMULATOR64
-- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Building for minimum iOS version: 8.0 (SDK version: 11.4)
-- Version flags set to: -mios-simulator-version-min=8.0
-- Disabling bitcode support.
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/CMakeOutput.log".

====================== the verbose logs will be
......
/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake(13): set(CMAKE_CROSSCOMPILING TRUE )
Called from: [2] /Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake(15): set(CMAKE_SYSTEM_LOADED 1 )
Called from: [2] /Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
/usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake(5): find_program(CMAKE_MAKE_PROGRAM NAMES ninja-build ninja DOC Program used to build from build.ninja files. )
Called from: [2] /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
/usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake(8): mark_as_advanced(CMAKE_MAKE_PROGRAM )
Called from: [2] /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
Called from: [1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/CMakeOutput.log".

from ios-cmake.

WJ430981 avatar WJ430981 commented on May 14, 2024

i add the CMAKE_FIND_ROOT_PATH_BOTH in the find NinjaFindMake.cmake works
eg: /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake

find_program(CMAKE_MAKE_PROGRAM
  NAMES ninja-build ninja
  CMAKE_FIND_ROOT_PATH_BOTH
  DOC "Program used to build from build.ninja files.")
mark_as_advanced(CMAKE_MAKE_PROGRAM)

from ios-cmake.

leetal avatar leetal commented on May 14, 2024

This has been fixed in version 2.1.0. Closing the issue 🗡

from ios-cmake.

Prowerdev avatar Prowerdev commented on May 14, 2024

Hi @leetal ,

I am having a similar issue:

-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- Building with Xcode version: 10.2.1
CMake Deprecation Warning at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:149 (message):
IOS_PLATFORM argument is DEPRECATED. Consider using the new PLATFORM
argument instead.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)

CMake Deprecation Warning at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:154 (message):
IOS_DEPLOYMENT_TARGET argument is DEPRECATED. Consider using the new
DEPLOYMENT_TARGET argument instead.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)

-- Targeting minimum SDK version 10.0. Dropping 32-bit support.
-- Configuring iphoneos build for platform: OS64, architecture(s): arm64
-- Using SDK: for platform: OS64 when checking compatibility
-- Enabling bitcode support by default. ENABLE_BITCODE not provided!
-- Enabling ARC support by default. ENABLE_ARC not provided!
-- Hiding symbols visibility by default. ENABLE_VISIBILITY not provided!
CMake Error at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:385 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)

CMake Error at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:386 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)

CMake Error at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:389 (message):
Invalid CMAKE_DEVELOPER_ROOT: does not exist.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

How can I resolve it? any guidance will be helpful.

Regards,

from ios-cmake.

Dev-Govind-Patidar avatar Dev-Govind-Patidar commented on May 14, 2024

CMake Error at CMakeLists.txt:131 (setup_cocos_app_config):
Unknown CMake command "setup_cocos_app_config".

-- Configuring incomplete, errors occurred!
See also "/Users/govindsjrmac/Documents/Workspace/Toddler/Abc123Kids_Android/ios-build/CMakeFiles/CMakeOutput.log".

I'm getting this error need help to solve this.

from ios-cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.