cocos2d / cocos2d-x-3rd-party-libs-src

Dependencies of cocos2d-x.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to build freetype libraries for ios platform on my Mac (OS X El Capitan)

ginobean opened this issue · comments

commented

The following fails on my Mac (running OS X El Capitan):
cd build
./build.sh -p=ios --libs=freetype

Errors:

libtool: compile:  xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -arch i386 -miphoneos-version-min=6.0 -I/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/install-ios/i386/include -O3 -DNDEBUG -I/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/objs -I./builds/unix -I/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/include -c -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -arch i386 -miphoneos-version-min=6.0 -I/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/install-ios/i386/include -O3 -DNDEBUG -DDARWIN_NO_CARBON -I/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/install-ios/i386/include -DFT_CONFIG_OPTION_SYSTEM_ZLIB "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=<ftmodule.h>" -I/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/src/psnames /Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/src/psnames/psnames.c  -fno-common -DPIC -o /Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/objs/psnames.o

gcc       -o /Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/objs/apinames /Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/src/tools/apinames.c
/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/src/tools/apinames.c:19:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
make[1]: *** [/Users/gino/work8/cocos2d-x-3rd-party-libs-src/contrib/ios-i386/freetype/objs/apinames] Error 1
make: *** [.freetype] Error 2

As a comparison, I was successfully able to build the mac version using:
./build.sh -p=mac --libs=freetype

commented

My bad. I just installed the command line tools for Xcode 7.0 (for OS X 10.11) and it seems to have resolved this issue.
I was able to successfully build freetype for iOS thereafter.