[Digikam-devel] [Bug 195735] digikam-svn fails to compile on Mac OS X

rishi.j.sanyal at gmail.com rishi.j.sanyal at gmail.com
Wed Jun 10 11:49:13 BST 2009


https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #13 from  <rishi j sanyal gmail com>  2009-06-10 12:49:09 ---
Thanks Gilles.

Hopefully a dev from lqr can comment on the failure of lqr to compile on Mac OS
X?

I disabled liblqr as per your instructions, Gilles, and now make 'makes it' to
70%, at which point it fails on the dngconverter plug-in, yielding the
following:

[ 70%] Building CXX object
kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/__/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.o
In file included from
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:11:
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:30:30:
error: Multiprocessing.h: No such file or directory
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:197:
error: ‘MPCriticalRegionID’ does not name a type
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:204:
error: ‘XMP_Mutex’ does not name a type
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:208:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:208:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:209:
error: variable or field ‘XMP_TermMutex’ declared void
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:209:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:209:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:211:
error: variable or field ‘XMP_EnterCriticalRegion’ declared void
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:211:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:211:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:212:
error: variable or field ‘XMP_ExitCriticalRegion’ declared void
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:212:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:212:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:220:
error: ISO C++ forbids declaration of ‘XMP_Mutex’ with no type
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:220:
error: expected ‘;’ before ‘*’ token
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:
In constructor ‘XMP_AutoMutex::XMP_AutoMutex()’:
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:216:
error: class ‘XMP_AutoMutex’ does not have any field named ‘mutex’
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:216:
error: ‘sXMPCoreLock’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:216:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:216:
error: ‘XMP_EnterCriticalRegion’ cannot be used as a function
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:
In destructor ‘XMP_AutoMutex::~XMP_AutoMutex()’:
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:217:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:217:
error: ‘XMP_ExitCriticalRegion’ cannot be used as a function
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:
In member function ‘void XMP_AutoMutex::KeepLock()’:
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:218:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:
At global scope:
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:60:
error: ‘XMP_Mutex’ does not name a type
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:89:
error: redefinition of ‘bool XMP_InitMutex’
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:208:
error: ‘bool XMP_InitMutex’ previously defined here
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:89:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:89:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:94:
error: variable or field ‘XMP_TermMutex’ declared void
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:94:
error: redefinition of ‘int XMP_TermMutex’
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:209:
error: ‘int XMP_TermMutex’ previously defined here
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:94:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:94:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:98:
error: variable or field ‘XMP_EnterCriticalRegion’ declared void
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:98:
error: redefinition of ‘int XMP_EnterCriticalRegion’
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:211:
error: ‘int XMP_EnterCriticalRegion’ previously defined here
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:98:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:98:
error: ‘mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:103:
error: variable or field ‘XMP_ExitCriticalRegion’ declared void
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:103:
error: redefinition of ‘int XMP_ExitCriticalRegion’
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp:212:
error: ‘int XMP_ExitCriticalRegion’ previously defined here
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:103:
error: ‘XMP_Mutex’ was not declared in this scope
/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.cpp:103:
error: ‘mutex’ was not declared in this scope
make[2]: ***
[kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/__/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.o]
Error 1
make[1]: *** [kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/all]
Error 2
make: *** [all] Error 2

Again, sorry it looks so jumbled here... for easier viewing, I've pasted the
errors into a .txt file here:

http://staff.washington.edu/rjsanyal/dngconverter_error.txt

Now, I checked the relevant CMakeLists.txt file, where it says:

# For DNGConverter: XMP SDK need Expat library to compile.
# For DNGConverter: DNG SDK need native threads support.

I already have Expat installed on my system via MacPorts, and I don't
understand what 'need native threads support' means... could you clarify? Could
this even be where the problem resides?

Anyway, I commented out: 

#            ADD_SUBDIRECTORY(dngconverter)

And got digiKam 100% built! Exciting!

But... lack of DNG Converter, for me anyway, is a shame, as the DNG converter
is one of the features of digiKam I've been using heavily. Anyway we could get
the developer on board here too to figure out the problem (unless you have an
easy fix)?

Thanks,
Rishi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Digikam-devel mailing list