Hi Sergei, Thanks for the the tip on the environment.
I tried that command but I'm now getting a different error. cmake /Prog/Frameworks/soci/src/ -DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF -- Configuring SOCI: -- SOCI_VERSION = 3.2.0 -- SOCI_ABI_VERSION = 3.2 CMake Error at cmake/SociConfig.cmake:50 (message): CMake is unable to recognize compilation toolset to build SOCI for you! Call Stack (most recent call first): CMakeLists.txt:41 (include) -- Configuring incomplete, errors occurred! Thanks, Casey On Thu, Mar 14, 2013 at 11:57 PM, Sergei Nikulov <[email protected]>wrote: > 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 > -- Casey James Basichis Composer - Adventure Time - Cartoon Network http://www.caseyjamesbasichis.com [email protected] 310.387.7540
-- 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
