在 I386(模拟器)上为 iPhone 编译 freetype 库
Compiling freetype library on I386 (simulator) for iPhone
我正在尝试将 FreeType2 2.5.3
编译为 I386 arch 上的静态库,
然后在 iPhone OpenGL 应用程序上使用它。
我正在使用此脚本构建 .a
它:
./configure '--without-bzip2' '--without-zlib' 'CFLAGS=-arch i386'
make clean
make
cp objs/.libs/libfreetype.a /Users/vlzvl/Desktop/libfreetype-i386.a
我不太确定,但是 iPhone Simulator
可以 运行 I386 arch 库吗?我应该在其他拱门上构建它吗 (运行ning Mountain Lion 10.8.2) on Virtualbox with iOS 6.0 SDK and XCode 4.5
?
无论如何,我将通过 Build Phase -> Link Binary With Libraries
在 XCode 上加载库并使用 Other
选项找到它。
我的应用程序在第一个 freetype 函数上崩溃,FT_Init_FreeType
并出现 Signal SIGABRT
错误。
我终于成功地使用以下脚本为 i386 arch 编译了我的静态 freetype 库(在一些 SO 答案和一些文件夹更改的帮助下,例如 /iPhonesimulator
而不是 /iPhoneOS
)
./configure '--without-bzip2' '--without-zlib' '--without-png' '--host=arm-apple-darwin' '--enable-static=yes' '--enable-shared=no' 'CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' 'CFLAGS=-arch i386 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=6.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/'
make clean
make
cp objs/.libs/libfreetype.a /Users/vlzvl/Desktop/libfreetype-i386.a
我正在尝试将 FreeType2 2.5.3
编译为 I386 arch 上的静态库,
然后在 iPhone OpenGL 应用程序上使用它。
我正在使用此脚本构建 .a
它:
./configure '--without-bzip2' '--without-zlib' 'CFLAGS=-arch i386'
make clean
make
cp objs/.libs/libfreetype.a /Users/vlzvl/Desktop/libfreetype-i386.a
我不太确定,但是 iPhone Simulator
可以 运行 I386 arch 库吗?我应该在其他拱门上构建它吗 (运行ning Mountain Lion 10.8.2) on Virtualbox with iOS 6.0 SDK and XCode 4.5
?
无论如何,我将通过 Build Phase -> Link Binary With Libraries
在 XCode 上加载库并使用 Other
选项找到它。
我的应用程序在第一个 freetype 函数上崩溃,FT_Init_FreeType
并出现 Signal SIGABRT
错误。
我终于成功地使用以下脚本为 i386 arch 编译了我的静态 freetype 库(在一些 SO 答案和一些文件夹更改的帮助下,例如 /iPhonesimulator
而不是 /iPhoneOS
)
./configure '--without-bzip2' '--without-zlib' '--without-png' '--host=arm-apple-darwin' '--enable-static=yes' '--enable-shared=no' 'CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' 'CFLAGS=-arch i386 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=6.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/'
make clean
make
cp objs/.libs/libfreetype.a /Users/vlzvl/Desktop/libfreetype-i386.a