Open AlexImagineComm opened 3 years ago
One more question about using the Linux build. In every example provided in the sample/source directory I see the following initialization of the SXMPFiles::Initialize:
XMP_OptionBits options = 0;
#if UNIX_ENV
options |= kXMPFiles_ServerMode;
#endif
SXMPFiles::Initialize ( options );
It works, but ifI try to initialize the same library using:
XMP_OptionBits options = 0;
SXMPFiles::Initialize ( options );
or
SXMPFiles::Initialize ( );
It always fails in Linux, but works in Windows. Please provide additional information - should I ALWAYS use
options |= kXMPFiles_ServerMode;
for Linux ?
Here's the simplest cpp file I wanted to compile with XMP Toolkit test.cpp:
I put in the same directory the following files:
g++ *.cpp -fpermissive -std=c++0x -I/home/ubuntu/tmp/test/Interface -std=c++0x -L/home/ubuntu/tmp/test/Lib/x64/ -static -o testXMP
Hundreds of errors were printed out:Can you please provide command line to compile and link this simple file ? I see many variables were defined in the/samples/build/cmake , like compiler arguments:
-fPIC
-Wno-multichar -funsigned-char
-m64
-fexceptions -Wformat -Wformat-security
-Wall
-Wno-reorder -std=c++0x
-Os
some variable were defined: -DENABLE_CPP_DOM_MODEL=1 -DUNIX_ENV=1 -DXMP_64=1 -DXMP_StaticBuild=1 -D__LITTLE_ENDIAN__=1
There is nothing about it in the XMPProgrammerGuide. The provided sample (ReadingXMP ) seems to use only the static libs. Regards Alex