2013/3/15 Casey Basichis <[email protected]> > 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
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
