Quantcast
Channel: Adobe Community: Message List - XMP SDK
Viewing all 801 articles
Browse latest View live

Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Thanks Amit for reply,

 

I am developing a plugin for Adobe Illustrator with some XMP functionality. So I have clubbed Adobe Illustrator SDK and XMP-SDK. I am adding information about some of the texts present in the art-board in metadata as XMP. There was situation where provisions in AI SDK were not sufficient to implement the requirements. So I had to consider XMPMeta and XMPFiles components.

As you have mentioned about no-limit for size to be added with the metadata, I looked for other possible factors that are creating problems in adding metadata after certain point of time and I found that certain spacial characters like ©,{,} etc. are also creating problems for XMPMeta object. Also, there is not much explanation available about reasons for CanPutXMP to fail.

As the situation is not producing helpful error message, I am finding it difficult to reach to root cause of unsuccessful metadata modification.


Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Hi,

 

I am not able to reproduce this issue. My understanding about your problem is that after some time, you are not able to put XMP packet inside the file. Is my understanding correct?

Before failing, were you able to put XMP packet inside the file?

Could you please post some code snippet stating XMP related calls with their corresponding input variables?

 

Thanks

Amit

Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Hi,

 

Your understanding is correct.


I am able to add the metadata up to a certain point of time. After that as the CanPutXMP is failing, I am not able to put XMP packet inside the file.


There is XMPMeta object - meta, which is derived from an AI file.


SXMPMeta meta;

myFile.GetXMP(&meta);

 

//modifications appended to meta.

 

string metaBuffer;

meta.SerializeToBuffer(&metaBuffer);

 

if(myFile.CanPutXMP(meta))

{

  // If so then update the file with the modified XMP

  myFile.PutXMP(meta);

}

after certain point of time CanPutXMP is failing.

 

Will you please tell me how to handle the CanPutXMP situation? What are probable causes for the same? I tried to google on it, but did not get satisfactory explanation.

Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Hi

Thanks for sharing the code.

Could you please tell me what does exactly happen while failing? Does CanPutXMP() generate any exception or just return false value?

Certain things I want to clear you regarding XMP is that your file will not be updated until you call CloseFile() method. So may be the problem could be in your usage of XMP. You need to provide OpenForUpdate flag while opening file if you want to update a file. You may get problem during serializing to Buffer. If you are editing metadata in a loop by opening and getting metadata from a file then make sure to call CloseFile() in loop.

It is not possible for me to get exact point where it is getting fail. Could you debug your code by getting inside CanPutXMP() method and point me where exactly the problem is arising? You can also check the value for metaBuffer just before where CanPutXMP() is getting failed.

Re: Edge FX Download

$
0
0

Same problem. No answers out there?????

Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Hi Amit,

 

CanPutXMP is just returning false value.

The flow of modifying XMP is like -

First open the file with OpenForUpdate flag -> edit the metadata in loop -> serialize to buffer -> CanPutXMP -> If yes, update the metadata and close the file.

                                                                                                                                                            -> if no, close the file.

As the file is being opened before the loop, I am closing it after completion of the loop.

I dumped the instantaneous value of meta buffer to a text file, just before the CanPutXMP failing. Size of that text file is around 150KB and there seems no problem with content of the meta buffer.

Should I include the opening of file, appending the instantaneous metadata and closing the file in the loop? Will it be feasible?

Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Hi Amit,

Finally I am able to get the error behind CanPutXMP to fail.

It is 'can't fit into specified packet size'.

All the data being added into document's metadata is text. You said that, there is no limit on text data to be added as metadata.

Will you please tell more about why is this error occuring?

 

Awaiting Reply.

Re: Size limit for XMP metadata to be added externally to a file's metadata

$
0
0

Hi patton88,

Sorry for replying so late. I am on vacations till 12 Dec. I need to take a detailed look into this which is possible only after my vacations.

Right now i can only say that this error is arising while serializing packet to buffer inside putXMP. Based on your comments and code above, i think your workflow is like this

OpenFile(OpenForUpdate)

GetXMP(meta)

loop

{ editngintometa()

} //loop close

canputXMP

{ putXMP(meta)

}

closeFile()

Is my understanding correct?

Can you post your code stating how you are opening file as myFile? I want to look at the open flags and format provided by you while opening file.

I can look into this more deeply only after my vacations.

 

Thanks


What's the best way to embed custom schema like HR-XML into XMP?

$
0
0

The specs (Part 2) mentioned that you can create custom name spaces. I'm looking to embed HR-XML into XMP.

 

We are looking to embed personal meta data into a PDF resume to improve parsability. We would prefer to stick to the existing standard (HR-XML) for formatting resume data. Are there any examples or code samples of embedding custom XML schema into a XMP stream? The documentation on this area is pretty thin.

 

Thanks

Error when converting XMP-Toolkit to VS project (I use 2013) on Windows 8.1 x64 machine

$
0
0

Hi there,

 

I followed all instructions (readme and documentations) to successfully build the XMP.

When parsing it to VS2013 I first saw some error which I fixed adding VCTargetsPath to regedit.

 

Now I am seeing another error. I googled but didn't find appropriate solution for me.

 

Please see the log below.

 

Any Ideas?

 

Thanks,

Mike

 

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.

Compiler: 

Build flags:

Id flags:

 

The output was:

1

Microsoft (R) Build Engine version 4.0.30319.33440

[Microsoft .NET Framework, version 4.0.30319.34014]

Copyright (C) Microsoft Corporation. All rights reserved.

 

Build started 12/9/2014 3:29:27 PM.

Project "C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.Redirect.props(44,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Platform.Redirect.10.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdC\CompilerIdC.vcxproj]

Done Building Project "C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.

 

Build FAILED.

 

"C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\3 .0.0\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->

  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.Redirect.props(44,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Platform.Redirect.10.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdC\CompilerIdC.vcxproj]

 

    0 Warning(s)

    1 Error(s)

 

Time Elapsed 00:00:00.20

 

 

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.

Compiler: 

Build flags:

Id flags:

 

The output was:

1

Microsoft (R) Build Engine version 4.0.30319.33440

[Microsoft .NET Framework, version 4.0.30319.34014]

Copyright (C) Microsoft Corporation. All rights reserved.

 

Build started 12/9/2014 3:29:27 PM.

Project "C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.Redirect.props(44,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Platform.Redirect.10.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdCXX\CompilerIdCXX.vcxproj]

Done Building Project "C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

 

Build FAILED.

 

"C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\3 .0.0\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->

  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.Redirect.props(44,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Platform.Redirect.10.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\Users\User\Desktop\XMP-Toolkit-SDK-CC201306\build\vc10\static\windows_x64\CMakeFiles\ 3.0.0\CompilerIdCXX\CompilerIdCXX.vcxproj]

 

    0 Warning(s)

    1 Error(s)

 

Time Elapsed 00:00:00.21

Re: Error when converting XMP-Toolkit to VS project (I use 2013) on Windows 8.1 x64 machine

$
0
0

Here are the steps required to port XMP SDK on VS 2013.

  1. Open file ‘\build\GenerateXMPToolkitSDK_win.bat’ and
    1. Replace every occurrence of “VS_VERSION=2010” with “VS_VERSION=2013”,
    2. Replace every occurrence of “vc10” with “vc12”.
  2. Open file ‘\build\shared\CMakeUtils.bat”
    1. Replace occurrence of (at line no. 61)

“    :: Visual Studio Version

     if /I "%1"=="2010" (

     echo "Generator VS 2010 specified"

     set GeneratorVersion=Visual Studio 10“

With

“   :: Visual Studio Version

     if /I "%1"=="2013" (

     echo "Generator VS 2013 specified"

     set GeneratorVersion=Visual Studio 12”.

          b. Replace every occurrence of “vc10” with “vc12”.

 

    3. Run the file ‘\build\GenerateXMPToolkitSDK_win.bat’.

 

I have tested and successfully build XMP on VS 2013 using these steps.

Please let me know if you get any issue while building XMP SDK for VS 2013.

Persistent color sampler from cameraraw to XMP

$
0
0

The samplers created inside cameraraw plugin don't stick between cameraraw sessions, loosing the color values read before to compare afterwards.

For example, when I open images on photoshop as smart objects using cameraraw and create color samplers, and I re-edit the smart object layer (using cameraraw again) the samplers aren't there any more.

Some times the new color sampler position isn't same anymore and the reading of the color values change. And that betrays the potential of intelligent objects.

 

XMP would assume the position and the color values, and that could be even read later from photoshop script to pass it to the same color sample tool (but this would be another potential addition not regarding the problem here).

 

I invite you guys to vote 'Like' on this request, using this link (adobe login):


http://gsfn.us/t/4m13u

Unexpected XMP_Error Invalid UTF-8 data byte

$
0
0

On windows machine xmpcommand is failing for files with spanish characters like "flówér.jpg"

It is giving error Unexpected XMP_Error Invalid UTF-8 data byte

Update to XMP Toolkit SDK available (Version: CC-2014.12)

$
0
0

Hi All,


New Version of XMP Toolkit SDK (C++) is now available at: http://www.adobe.com/devnet/xmp/


The MetadataUI, Java and Action Script SDK remains unchanged.


Please check out this latest CC-2014.12 version of the SDK and share your feedback!


The prior versions of all SDKs are still listed.


Updates:

New version of the XMP Toolkit SDK (c++)  [version: CC-2014.12]

  • Compiler Upgrade: Xcode 5.0.2, Visual Studio 2012 (VC11)
  • Added support for video files shot using GoPro cameras in the MPEG4 handler in XMPFiles.
  • Optimize File Layout
    • XMP Files now provides a flag "kXMPFiles_OptimizeFileLayout" that can be provided with OpenFile() API to ensure certain optimizations while updating the file. This is currently supported only in MPEG4 Handler. See XMP Toolkit SDK Programmer’s Guide for details.
  • Added support in the MPEG4 handler in XMPFiles for repairing ill-formed structure in all MPEG4 files. See XMP Toolkit SDK Programmer’s Guide and XMP Specification Part 3 for details.
  • Enabled the import of Timecode information for all ISO based MP4 files. See XMP Toolkit SDK Programmer’s Guide and XMP Specification Part 3 for details.
  • Added support for PSIR marker larger than 64K in JPG files. See XMP Toolkit SDK Programmer’s Guide and XMP Specification Part 3 for details.
  • Enabled read/write support in XMPFiles for JPEG files with multiple EXIF APP1 markers. See XMP Toolkit SDK Programmer’s Guide and XMP Specification Part 3 for details.
  • Added support for spanned clips in the P2 handler. See XMP Toolkit SDK Programmer’s Guide and XMP Specification Part 3 for details.
  • Added support for parsing and reconciling the iXML chunk in Wave files in the WAVE Handler. See XMP Toolkit SDK Programmer’s Guide and XMP Specification Part 3 for details.
  • Bugs Fixes in XMPFiles including memory leaks in several file handlers and native format support files
  • Fixed security issues in both XMPCore and XMPFiles. 


Thanks

The Adobe XMP Team


Re: Unexpected XMP_Error Invalid UTF-8 data byte

$
0
0

Hi,

 

Input to OpenFile() function needs to be a UTF8 string. "flówér.jpg" is in WinANSI, and needs to be converted to UTF8 string so that OpenFile can correctly find the file.

For example, on Windows OS, you need to define a function as:

 

void WinEncodingToUTF8 ( UINT codePage, const XMP_Uns8 * hostPtr, size_t hostLen, std::string * utf8 )

{

int utf16Len = MultiByteToWideChar ( codePage, 0, (LPCSTR)hostPtr, (int)hostLen, 0, 0 );

std::vector<UTF16Unit> utf16 ( utf16Len, 0 );   // MultiByteToWideChar returns native UTF-16.

 

(void) MultiByteToWideChar ( codePage, 0, (LPCSTR)hostPtr, (int)hostLen, (LPWSTR)&utf16[0], utf16Len );

FromUTF16Native ( &utf16[0], (int)utf16Len, utf8 );

}

 

This function requires a function which is present in the file "UnicodeConversions.cpp". So you need to include a file "source/UnicodeConversions.hpp" in your project.

The sample usage could be:

std::string outputPath;

WinEncodingToUTF8( 1252, (const XMP_Uns8 *)inputFile.c_str(), inputFile.size(), &outputPath );


Building Samples partially failes (Mac OSX 10.9 64bit - XCode 6.1)

$
0
0

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

Re: Building Samples partially failes (Mac OSX 10.9 64bit - XCode 6.1)

$
0
0

Hi bengalo,

    The SDK has been tested and released for Mac 10.8.5 and xcode 5.0.2. Could you please try with this configuration and let us know if the issue persists.

 

-Sunil

Re: Building Samples partially failes (Mac OSX 10.9 64bit - XCode 6.1)

$
0
0

When you say Mac 10.8.5, are we talking about my actual OS or is it enough to download Xcode 5.0.2 (which i guess might have Base SDK 10.8)?

In the meantime I need to figure out how to use the libraries correctly..

Is it correct that I can use the libraries in my app if i import/link whats in the public folder and thats it?

What the docs say about creating my own cmake files for programs etc is just if I want my sample applications to run easily within the SDKsample-project, right?

I'm just still a little confused, never worked with SDKs before iirc..

 

Maybe I'll make some progress in the meantime, appreciate any help though

Re: Building Samples partially failes (Mac OSX 10.9 64bit - XCode 6.1)

$
0
0

Hi bengalo,

    Not sure whether you will face issue with xcode5.0.2 & Mac 10.9.4 (which you have). It has base SDK 10.8, so you can try it.

 

    But as you have already compiled libraries/framework, just link it with your application as you link other framework in your app. Regarding the cmake documentation you are absolutely correct, if someone want to create a sample application within the SDK sample project then he needs to create cmake file.

 

-Sunil

Re: Building Samples partially failes (Mac OSX 10.9 64bit - XCode 6.1)

$
0
0

Aight, I dug into cmake a bit and found that i only needed to change <xmpdir>/build/shared/ToolchainLLVM.cmake to set the correct XMP_OSX_SDK

that also solved the problems of not being able to compile the sample projects.

In XCode it still shows up as a custom entry with "SDK not found" but the path is correct and I think XCode also figures it out when linking (cant recall if I tested)

Anyway its enough for CMake to find its way and I still manually changed it to use the latest SDK for my project...

 

I didnt get the static libraries to actually work yet but thats probably due to my noobness at dephicering compiler errors and nothing related to your project

I'll try to use the frameworks, maybe I have better luck with those =)

 

UPDATE: My C++ Standard Library was set to libc++ which is the compiler default.

I changed it to libstdc++ and it compiled. Maybe the default was changed, I dont know really, couldnt be bothered to find out though

Only included the header files so far but I'm fairly confident its going to work.

Have to figure out how to nicely include it into my project. Guess it's going to be a wrapper, not sure about how to do that but lots of light at the end of the tunnel...

 

 

Thanks for your support

Viewing all 801 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>