|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
照着书上的例子,一个一个做下来,只要不是文盲,就都会的呀,没有体现我的一点点个人价值。所以我决定了,不能再这样下去在github里看到大家网公布的一个CCHtmlLabel的RichText控件,能够显现庞大的html布局的富文本,设置好以后发明在摹拟器下面能顺遂跑起来,但在真机上却编译失利。
看errorlog的意义是指没有armv7s的slice,再看了一下CCHtmlLabel所用的libfreetype库,是2011年编译的,有点旧,事先iphone4s才刚出呢,固然没有armv7s了。
因而到SourceForge下载了freetype的源代码,编译成lib后再交换本来的libfreetype.a,再次用Xcode编译全部游戏项目,发明仍是有个linker的毛病:undefinedreferenceto`BZ2_bzDecompressInit。
这个复杂,在xcode里增加对libbz2.1.0.dylib的援用便可。
有必要的请到这里下载:http://download.csdn.net/detail/visualcatsharp/7076545
上面再纪录一下编译的历程
mkdir/var/tmp/build-armv7
./configureCFLAGS="-archi386"
make
cpobjs/.libs/libfreetype.alibfreetype-i386.a
./configureCFLAGS="-archx86_64";makeclean;make
cpobjs/.libs/libfreetype.alibfreetype-x86_64.a
makeclean
./configure--prefix=/var/tmp/build-armv7--host=arm-apple-darwin--enable-static=yes--enable-shared=noCC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ccCFLAGS="-archarmv7-pipe-std=c99-Wno-extended-offsetof-Wno-trigraphs-fpascal-strings-O2-Wreturn-type-Wunused-variable-fmessage-length=0-fvisibility=hidden-miphoneos-version-min=4.2-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"AR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/arLDFLAGS="-archarmv7-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk-miphoneos-version-min=4.2"
make
cpobjs/.libs/libfreetype.alibfreetype-arm7.a
makeclean
./configure--prefix=/var/tmp/build-armv7--host=arm-apple-darwin--enable-static=yes--enable-shared=noCC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ccCFLAGS="-archarmv7s-pipe-std=c99-Wno-extended-offsetof-Wno-trigraphs-fpascal-strings-O2-Wreturn-type-Wunused-variable-fmessage-length=0-fvisibility=hidden-miphoneos-version-min=4.2-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"AR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/arLDFLAGS="-archarmv7s-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk-miphoneos-version-min=4.2"
make
cpobjs/.libs/libfreetype.alibfreetype-arm7s.a
makeclean
./configure--prefix=/var/tmp/build-armv7--host=arm-apple-darwin--enable-static=yes--enable-shared=noCC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ccCFLAGS="-archarm64-pipe-std=c99-Wno-extended-offsetof-Wno-trigraphs-fpascal-strings-O2-Wreturn-type-Wunused-variable-fmessage-length=0-fvisibility=hidden-miphoneos-version-min=6.0-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"AR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/arLDFLAGS="-archarm64-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk-miphoneos-version-min=6.0"
makeclean;make
cpobjs/.libs/libfreetype.alibfreetype-arm64.a
lipo-create-outputlibfreetype.alibfreetype-i386.alibfreetype-x86_64.alibfreetype-arm7.alibfreetype-arm7s.alibfreetype-arm64.a
lipo-infolibfreetype.a
照着书上的例子,一个一个做下来,只要不是文盲,就都会的呀,没有体现我的一点点个人价值。所以我决定了,不能再这样下去 |
|