[CMake] FInd threads - iOS

Sergei Nikulov sergey.nikulov at gmail.com
Fri Mar 15 02:57:28 EDT 2013


2013/3/15 Casey Basichis <caseybasichis at gmail.com>

> Hi,
>
> I tried the tool chain.  This console output shows the error. I've tried
> adding the SDK path up to the include and with the iPhoneOS6.1... part
> stripped off as well.
>
> CASEYs-MacBook-Pro:build caseybasichis$ export
> CMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
> CASEYs-MacBook-Pro:build caseybasichis$ echo $CMAKE_IOS_SDK_ROOT
>
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
> CASEYs-MacBook-Pro:build caseybasichis$ cmake /Prog/Frameworks/soci/src/
> -DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
> CMake Error at /Prog/iOS.cmake:101 (message):
>   No iOS SDK's found in default seach path
>   /Developer/Platforms/iPhoneOS.platform/Developer.  Manually set
>   CMAKE_IOS_SDK_ROOT or install the iOS SDK.
> Call Stack (most recent call first):
>   /Applications/CMake
> 2.8-10.app/Contents/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:89
> (include)
>   CMakeLists.txt:15 (project)
>
>
> CMake Error: Could not find cmake module
> file:/Prog/Frameworks/soci/src/build/CMakeFiles/
> 2.8.10.2/CMakeCCompiler.cmake
> CMake Error: Could not find cmake module
> file:/Prog/Frameworks/soci/src/build/CMakeFiles/
> 2.8.10.2/CMakeCXXCompiler.cmake
> -- Configuring incomplete, errors occurred!
>
> I built Sqlite using cmake yesterday - which seemed to succeed using my
> initial method.  Currently its pointing to the system default iOS Sqlite
> binary.
>
> Any ideas?
>
>
Yep.
Do not export  CMAKE_IOS_SDK_ROOT to your environment.
Since it called CMAKE_<something> you should pass it as cmake command line
invocation.
I quickly dig through ios.cmake and not sure that something will be taken
from environment.

Try this
cmake <path to soci> -DCMAKE_IOS_SDK_ROOT=<path to SDK root>
-DCMAKE_TOOLCHAIN_FILE=<path to tool-chain file> -GXcode -DWITH_BOOST=OFF


-- 
Best Regards,
Sergei Nikulov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130315/0ddb7e9b/attachment.htm>


More information about the CMake mailing list