- Build XMPToolkit SDK by opening ../XMP-Toolkit-SDK-CS6/build/xcode/XMPToolkitSDK.xcodeproj and click on “Run”
- Open and build the sample project in ../XMP-Toolkit-SDK-CS6/samples/build/xcode/XMPSamples.xcodeproj
- Create new C++ project in Xcode
- Click on the project
- Click on any of the targets -> “Build settings“, change “Base SDK” to your current OS X
- Compare to the build settings of target “ReadingXMP release” in XMPSamples, make sure all of the options is identical
- Under “Build location” the directories can be custom
- Under “User-defined” you only have to define one item XMP_ROOT -> your-directory/XMP-Toolkit-SDK-CS6
- Under “Linking” -> “Other linking flags“, set value to: ${XMP_ROOT}/public/libraries/macintosh/release/libXMPCoreStatic.a ${XMP_ROOT}/public/libraries/macintosh/release/libXMPFilesStatic.a -framework CoreServices
- Under “Search paths” -> “Header search paths“, set value to $(PROJECT_DIR) $(SRCROOT) $(XMP_ROOT) ${XMP_ROOT}/public/include
- Under “Apple LLVM compiler 4.2 – Preprocessing” -> “Preprocessor Macros“, set value to MAC_ENV=1
- You are good to go!
Check out our repo at Github https://github.com/bruce-yinhe/jb-xmp
(The XMP logo is either a registered trademark or trademark of the Adobe Systems Incorporated in the United States and/or other countries.)
Advertisements