office 编辑

office文档解析开源库libopc静态库编译   

分享类型��

最近刚编译完这东西,拿出来分享下~

libopc官网:http://libopc.codeplex.com/

源代码SVN地址:https://libopc.svn.codeplex.com/svn,源代码175M,下载可能略慢

正题:下载完源代码后修改根目录下Makefile.platform.xml文件,具体内容如下:

cc="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2"

ld="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld"

ar="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar"

cflags="-g -O0 -arch i386 -fno-exceptions -fvisibility=hidden -fstack-protector"

cflags_c="-std=c99" cflags_cpp="-fno-rtti"

cppflags="-D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"

ldflags="-framework Foundation -framework UIKit -framework CoreText -framework CoreGraphics -framework OpenGLES -framework QuartzCore -lstdc++"

host="i386-apple-darwin10"/>

cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

ld="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"

ar="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"

cflags="-g -Os -arch i386 -fno-exceptions -fvisibility=hidden"

cflags_c="-std=c99" cflags_cpp="-fno-rtti"

cppflags="-DNDEBUG -D_NDEBUG -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"

ldflags="-framework Foundation -framework UIKit -framework CoreText -framework CoreGraphics -framework OpenGLES -framework QuartzCore -lstdc++"

host="i386-apple-darwin10"/>

cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

ld="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"

ar="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"

cflags="-g -O0 -arch armv7 -fno-exceptions -fvisibility=hidden -mthumb"

cflags_c="-std=c99" cflags_cpp="-fno-rtti"

cppflags="-miphoneos-version-min=4.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"

ldflags="-framework Foundation -framework UIKit -framework CoreText -framework CoreGraphics -framework OpenGLES -framework QuartzCore -lstdc++"

host="arm-apple-darwin10"/>

cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

ld="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"

ar="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"

cflags="-g -Os -arch armv7 -fno-exceptions -fvisibility=hidden -mthumb"

cflags_c="-std=c99" cflags_cpp="-fno-rtti"

cppflags="-DNDEBUG -D_NDEBUG -miphoneos-version-min=4.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"

ldflags="-framework Foundation -framework UIKit -framework CoreText -framework CoreGraphics -framework OpenGLES -framework QuartzCore -lstdc++"

host="arm-apple-darwin10"/>

cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

ld="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"

ar="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"

cflags="-g -O0 -arch armv7s -fno-exceptions -fvisibility=hidden -mthumb"

cflags_c="-std=c99" cflags_cpp="-fno-rtti"

cppflags="-miphoneos-version-min=4.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"

ldflags="-framework Foundation -framework UIKit -framework CoreText -framework CoreGraphics -framework OpenGLES -framework QuartzCore -lstdc++"

host="arm-apple-darwin10"/>

cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

ld="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"

ar="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"

cflags="-g -Os -arch armv7s -fno-exceptions -fvisibility=hidden -mthumb"

cflags_c="-std=c99" cflags_cpp="-fno-rtti"

cppflags="-DNDEBUG -D_NDEBUG -miphoneos-version-min=4.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"

ldflags="-framework Foundation -framework UIKit -framework CoreText -framework CoreGraphics -framework OpenGLES -framework QuartzCore -lstdc++"

host="arm-apple-darwin10"/>

在终端命令行中键入:./configure --target=release --os=iOS6 --arch=armv7s --platform=ios6-release-gcc-armv7s(先以armv7s为例,记得在源码目录下运行)

最后提示:Configured platform ios6-release-gcc-armv7s.

Executables will be generated in "build/ios6-release-gcc-armv7s".

最后:make




问题:http://libopc2.rssing.com/chan-11617458/all_p1.html

你可能感兴趣的:(office 编辑)