cristeab / ios-cmake Goto Github PK
View Code? Open in Web Editor NEWA toolchain file and examples using cmake for iOS development (this is a fork of a similar project found on code.google.com)
License: BSD 3-Clause "New" or "Revised" License
A toolchain file and examples using cmake for iOS development (this is a fork of a similar project found on code.google.com)
License: BSD 3-Clause "New" or "Revised" License
CMake Error at /Users/allen/Desktop/ios-cmake/toolchain/iOS.cmake:149 (message):
No iOS SDK's found in default search path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk.
Is this under the New BSD License like the original? I would like to use it, but wasn't sure about licensing.
find_package(Threads REQUIRED)
fails with:
-- Looking for pthread.h - not found
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake.app/Contents/share/cmake-3.6/Modules/FindThreads.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
dlib/CMakeLists.txt:195 (find_package)
If I generate normal Xcode macos project and change type to iOS manually, it works and compiles fine.
When building with this script for simulator64, the resulting binary is seen in Xcode differently; when linking to it during a simulator build inside Xcode, the following is reported:
building for iOS simulator, but linking in object file built for OSX, for architecture x86_64
What is the difference between this fork and the code.google.project? Did you alter it in any way and if so, what was added or fixed?
I'm sure "CMAKE_IOS_DEVELOPER_ROOT" is set correctly,but all header files are not found in logs.
the build commond like this:
cmake -DCMAKE_TOOLCHAIN_FILE=../iOS.cmake -DCMAKE_IOS_DEVELOPER_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/ -GXcode ..
the logs like this:
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
toolchain/iOS.cmake:51 (CMAKE_FORCE_CXX_COMPILER)
build.ios/CMakeFiles/3.7.1/CMakeSystem.cmake:6 (include)
CMakeLists.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.