Hi, i had some trouble getting to this stage because I am also fairly new to Mac OSX but with some common sense and googling I made it to the step of creating the project for the samples.
This is what it shows when running the generation via ./GenerateSamples_mac.sh
PWD is <MYXMPDIR>/samples/build/xcode/intel_64, CMAKE LOCATION IS <MYXMPDIR>/samples/build/../../tools/cmake/bin/cmake.app/Contents/bin/cmake, dir is xcode/intel_64
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
INFO:64 Target is chosen
-- OSX SDK is set to /Applications/Xcode.app/Contents/Developer
INFO:Add CustomSchema sample
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
ERROR: Framework Cocoa not found
-- ===========================================================================
-- XMP_Samples_64
-- ===========================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: <MYXMPDIR>/samples/build/xcode/intel_64
Xcode project created successfully
-----------------
I dont know if the Framework errors are whats causing the errors when compiling above project.
Now when I open the project, set base SDK to a recent one and try to run @ALL_BUILD, its giving me 25 errors for DumpMainXMP like these (a bit shortened)
Build target DumpMainXMP
Ld <MYXMPDIR>/samples/target/macintosh/intel_64/Debug/DumpMainXMP normal x86_64
cd <MYXMPDIR>/samples/build/cmake
export MACOSX_DEPLOYMENT_TARGET=10.7
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cl ang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOS X10.9.sdk -L<MYXMPDIR>samples/target/macintosh/intel_64/Debug -F<MYXMPDIR>/samples/target/macintosh/intel_64/Debug -filelist <MYXMPDIR>/samples/build/cmake/DumpMainXMP/build_x64/XMP_Samples_64.build/Debug/DumpMainX MP.build/Objects-normal/x86_64/DumpMainXMP.LinkFileList -mmacosx-version-min=10.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names <MYXMPDIR>/samples/build/cmake/../../../public/libraries/macintosh/intel_64/Debug/libXMPC oreStatic.a <MYXMPDIR>/samples/build/cmake/../../../public/libraries/macintosh/intel_64/Debug/libXMPF ilesStatic.a -Xlinker -dependency_info -Xlinker <MYXMPDIR>/samples/build/cmake/DumpMainXMP/build_x64/XMP_Samples_64.build/Debug/DumpMainX MP.build/Objects-normal/x86_64/DumpMainXMP_dependency_info.dat -o <MYXMPDIR>/samples/target/macintosh/intel_64/Debug/DumpMainXMP
Undefined symbols for architecture x86_64:
"_CFBundleCopyExecutableArchitectures", referenced from:
XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFBundleCopyResourceURL", referenced from:
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFBundleCreate", referenced from:
XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFBundleGetFunctionPointerForName", referenced from:
XMP_PLUGIN::GetFunctionPointerFromModuleImpl(__CFBundle*, char const*) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFBundleIsExecutableLoaded", referenced from:
XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFBundleLoadExecutableAndReturnError", referenced from:
XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFDataGetBytes", referenced from:
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFNumberGetValue", referenced from:
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFRelease", referenced from:
XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::UnloadModule(__CFBundle*, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::AutoCFRef<__CFNumber const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::AutoCFRef<__CFData const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::AutoCFRef<__CFString const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::AutoCFRef<__CFURL const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
...
"_CFStringCreateWithCString", referenced from:
XMP_PLUGIN::MakeCFString(std::string const&, unsigned int) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFURLCreateDataAndPropertiesFromResource", referenced from:
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFURLCreateFromFileSystemRepresentation", referenced from:
XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_CFURLCreatePropertyFromResource", referenced from:
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
"_ConvertFromTextToUnicode", referenced from:
ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_ConvertFromUnicodeToText", referenced from:
ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_CreateTextEncoding", referenced from:
ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_CreateTextToUnicodeInfo", referenced from:
ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_CreateUnicodeToTextInfo", referenced from:
ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_DisposeTextToUnicodeInfo", referenced from:
ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_DisposeUnicodeToTextInfo", referenced from:
ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_GetTextEncodingBase", referenced from:
ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_UpgradeScriptInfoToTextEncoding", referenced from:
ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
"_kCFAllocatorDefault", referenced from:
XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
[...]
"_kCFURLFileLength", referenced from:
XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------
The basic linking seems to be fine from what I can tell. Dont know what else is causing the problem though..
When I am trying to build targets individually, I get even more errors.
Appreciate any help
Best regards bengalo