Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't to build the project #19

Closed
barrycug opened this issue Nov 8, 2014 · 4 comments
Closed

can't to build the project #19

barrycug opened this issue Nov 8, 2014 · 4 comments

Comments

@barrycug
Copy link

barrycug commented Nov 8, 2014

When I use "make iOS" commond to build the project,It is failed. The log is
make ios
mkdir -p build/ios
cd build/ios &&
cmake ../.. -DPLATFORM_TARGET=ios -DIOS_PLATFORM=SIMULATOR -DCMAKE_TOOLCHAIN_FILE=build/toolchains/iOS.toolchain.cmake -G Xcode
-- Platform chosen : IOS
-- Including ios dependent cmake file : /Users/bzhang/Documents/iosprj/tangram-es/build/toolchains/ios.cmake
-- Framework CoreGraphics found
-- Framework CoreFoundation found
-- Framework QuartzCore found
-- Framework UIKit found
-- Framework OpenGLES found
-- Framework Security found
-- Framework CFNetwork found
-- Framework GLKit found
-- Configuring done
-- Generating done
/bin/sh: line 1: 1742 Segmentation fault: 11 cmake ../.. -DPLATFORM_TARGET=ios -DIOS_PLATFORM=SIMULATOR -DCMAKE_TOOLCHAIN_FILE=build/toolchains/iOS.toolchain.cmake -G Xcode
make: *** [cmake-ios] Error 139

@karimnaaji
Copy link
Member

Thanks for reporting, what version of cmake, ios sdk, xcode are you using? Can you please give the result of this :

grep -A 1 -B 1 ".*iOS.*" build/ios/CMakeCache.txt 

@barrycug
Copy link
Author

//iOS find search path root
CMAKE_FIND_ROOT_PATH:STRING=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
--
--

//Location of iOS Platform
CMAKE_IOS_DEVELOPER_ROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
--
--

//Location of the selected iOS SDK
CMAKE_IOS_SDK_ROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
--
--

//Build architecture for iOS
CMAKE_OSX_ARCHITECTURES:STRING=i386
--
--

//Force unset of the deployment target for iOS
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
--
--

//Sysroot used for iOS support
CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
--
--
//No help, variable specified on the command line.
CMAKE_TOOLCHAIN_FILE:UNINITIALIZED=build/toolchains/iOS.toolchain.cmake

--
--

//Type of iOS Platform
IOS_PLATFORM:STRING=SIMULATOR

@barrycug
Copy link
Author

cmake version 2.8.12.2,XCode6.1 and iOS SDK 8.1

@karimnaaji
Copy link
Member

Thanks, managed to reproduce with your version of cmake, seems that you need to update to cmake 3.0 or higher. We changed the cmake minimum version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants