Thursday, 23 October 2014

                                         
                                              XMPCommand :

Basic Over view on xmpcommand:

                  XMPCommand performs basic XMP actions such as get, put, and dump on the media files as per the switches and Actions provided in the command line. Below some listed out switches and options those are getting used by the xmpcommand. This utility is given by Adobe coorporation. 


Important : 

                 Reference for this has  taken from Adobe XMP Developer center.
           
http://www.adobe.com/devnet/xmp.html

Building of xmpcommand for CentOS:

In order to build the xmpcommand for linux we have integrate the following
dependencies first.

1. Installing the Expat XML Parser :You must obtain the Expat XML Parser in order to create the XMP libraries. For a full list of files required to install the Expat XML Parser see readme.txt in <xmpsdk>/third-party/expat.
  1. Obtain a copy of the Expat distribution, minimum version 2.1. This can be downloaded from:
    http://sourceforge.net/projects/expat
  2. Extract the archive and copy the lib folder to <xmpsdk>/third-party/expat.

2.Installing ZLib
You must obtain and install the ZLib compression library in order to use the XMPFiles component with compressed file formats such as UCF.
  1. Obtain a copy of the ZLib distribution, minimum version 1.2.8, from:
    http://www.zlib.net/zlib.html
  2. Extract the archive and install as directed in the Usage.txt file.
Before building the xmpcommand 1st we have to generate the library archives which are the core dependencies to make the build for xmpcommand.



Building the xmpToolKit :



Now change the directory to this location
<SDKROOT>/build/gcc4

check the location of libstdc++.so in the operating system using the following command
$ gcc -print-prog-name=libstdc++.so

It will echo the the location of the libstdc++.so file location. We need it's parent directory to generate the required library archives. Use the following command :
$ make -f XMPToolkit.mak os=i80386linux stage=release arch=x64
   libpath=/usr/lib/gcc/x86_64_redhat_linux/4.4.7/ build

The above command will build the XMPToolkit.mak and which builds the XMPCore.mak and XMPFile.mak subsequently. The out put of the above process will be generated in the following directory.
<sdkroot>/public/libraries/i80386linux_x64/release/staticXMPCore.ar <sdkroot>/public/libraries/i80386linux_x64/release/staticXMPFile.ar


Generate the XMPCommand :

Now change the directory to <sdkroot>/samples/build/gcc4
In side that there exist a make file Sample.mak. We have to build it providing the switch as XMPCommand as follows.
$ make -f XMPToolkit.mak os=i80386linux stage=release arch=x64 name=XMPCommand libpath=/usr/lib/gcc/x86_64_redhat_linux/4.4.7/ build




The above execution will create the XMPCommand tool on the following location <sdkroot>/samples/target/i80386linux_x64/release/

Now this XMPCommand tool can be used for the processing of xmp metadata with appropriate switches.




Note : - This build is made on the top of Adobe XMP-ToolKit-SDK-5.1.2   . It is recommended to                   go through the developer's guide before proceeding with this package.