Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17075

Compile secret error on mac

$
0
0

@huadailu wrote:

i download https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src,
then i step as this

brew update
brew install git
brew install cmake
brew install autoconf
brew install automake
brew install lib tool
brew install openssl

last i modify contrib/src/websocket/rules.mak like this

cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(EX_ECFLAGS)" $(CMAKE) -DOPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2h_1/include -DOPENSSL_CRYPTO_LIBRARY=/usr/local/Cellar/openssl/1.0.2h_1/lib/libcrypto.dylib -DOPENSSL_SSL_LIBRARY=/usr/local/Cellar/openssl/1.0.2h_1/lib/libssl.dylib && $(CMAKE) -DLWS_WITH_SSL=1 -DLWS_WITHOUT_SERVER=1 -DLWS_WITHOUT_TEST_SERVER=1 -DLWS_WITHOUT_TEST_SERVER_EXTPOLL=1 -DLWS_WITHOUT_TEST_PING=1 -DLWS_IPV6=1 $(make_option)

then i run
./build.sh -p=ios --libs=websockets --arch=all

get error:

[ 2%] Building C object CMakeFiles/websockets_shared.dir/lib/base64-decode.c.o
/usr/bin/xcrun clang -Dwebsockets_shared_EXPORTS -I/Users/huazi/Desktop/work/cocos2d-x-3rd-party-libs-src/contrib/ios-x86_64/websockets -I/Users/huazi/Desktop/work/cocos2d-x-3rd-party-libs-src/contrib/ios-x86_64/websockets/lib -I/Users/huazi/Desktop/work/cocos2d-x-3rd-party-libs-src/contrib/install-ios/x86_64/include -I/usr/local/Cellar/openssl/1.0.2h_1/include -Wall -fvisibility=hidden -isysroot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk;-arch;x86_64;-miphoneos-version-min=6.0;-I/Users/huazi/Desktop/work/cocos2d-x-3rd-party-libs-src/contrib/install-ios/x86_64/include;-O3;-DNDEBUG -Wno-deprecated-declarations -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fPIC -o CMakeFiles/websockets_shared.dir/lib/base64-decode.c.o -c /Users/huazi/Desktop/work/cocos2d-x-3rd-party-libs-src/contrib/ios-x86_64/websockets/lib/base64-decode.c
clang: error: argument to '-isysroot' is missing (expected 1 value)
clang: error: no input files
/bin/sh: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk: is a directory
/bin/sh: -arch: command not found
/bin/sh: x86_64: command not found
/bin/sh: -miphoneos-version-min=6.0: command not found
/bin/sh: -I/Users/huazi/Desktop/work/cocos2d-x-3rd-party-libs-src/contrib/install-ios/x86_64/include: No such file or directory
/bin/sh: -O3: command not found
/bin/sh: -DNDEBUG: command not found
make[3]: *** [CMakeFiles/websockets_shared.dir/lib/base64-decode.c.o] Error 127
make[2]: *** [CMakeFiles/websockets_shared.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [.websockets] Error 2

how to compile it?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>