[Bug 195735] New: digikam-svn fails to compile on Mac OS X

classic Classic list List threaded Threaded
37 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug 195735] New: digikam-svn fails to compile on Mac OS X

Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735

           Summary: digikam-svn fails to compile on Mac OS X
           Product: digikam
           Version: 1.0.0
          Platform: Fink Packages
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.0.0 (using KDE 4.2.2)
OS:                OS X
Installed from:    Mac OS X (Fink) Packages

I have succeeded in compiling digikam 0.10.0 on Mac OS X by downloading the
source from sourceforge, installing libgphoto2 from source, & installing
kdegraphics4, kdeedu4, & libusb using MacPorts.

Since many features are missing from 0.10.0 (e.g. 'DNG Converter'), I decided
to try installing some of the recent SVN versions of digikam, which I've
successfully compiled on Kubuntu 9.04 running on OS X via Parallels.

First, I got some errors regarding libksane. So I installed some binary
packages of ‘SANE’ & ‘SANE backends’. Now, kdegraphics (I SVN 'checked out'
kdegraphics & graphics, as outlined on the digikam website) compiles and
installs fine, but when I try to get ‘digikam’ & ‘kipi-plugins’ (under the
'grpahics directory) to compile, all fails. Basically, in the directory
'graphics/build', I invoke 'cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/local/bin/qmake-kde ../../graphics'. The
cmake script executes without any ‘errors’ per se, but gives me tons of the
following 'warnings':

“CMake Warning at /opt/local/share/apps/cmake/modules/KDE4Macros.cmake:561
(add_library):

Cannot generate a safe linker search path for target kipiplugin_sendimages
because files in some directories may conflict with libraries in implicit
directories:

link library [libkipi.dylib] in /usr/lib may be hidden by files in:
/opt/local/lib
link library [libkexiv2.dylib] in /usr/lib may be hidden by files in:
/opt/local/lib
link library [libkdcraw.dylib] in /usr/lib may be hidden by files in:
/opt/local/lib

Some of these libraries may not be found correctly.”

Next, when I invoke ‘make’, I get errors pretty early on, that look something
like this:

[ 0%] Built target digikam-svnversion
[ 0%] Building CXX object
digikam/digikam/CMakeFiles/digikamcore.dir/__/libs/dimg/loaders/pgfloader.o
/Users/Rishi/compile/graphics/digikam/digikam/../libs/3rdparty/libpgf/PGFplatform.h:
In function ‘UINT64 ByteSwap(UINT64)’:
/Users/Rishi/compile/graphics/digikam/digikam/../libs/3rdparty/libpgf/PGFplatform.h:542:
error: ‘_byteswap_uint64’ was not declared in this scope
make[2]: ***
[digikam/digikam/CMakeFiles/digikamcore.dir/__/libs/dimg/loaders/pgfloader.o]
Error 1
make[1]: *** [digikam/digikam/CMakeFiles/digikamcore.dir/all] Error 2
make: *** [all] Error 2

This sort of thing has been happening with SVN versions over the last 2 weeks
(I never tried prior to that, though).

I have a feeling this has to do with those cmake errors I alluded to above…
which themselves probably (I think?) have to do with some packages being
installed (by Macports) under /opt/local vs others in /usr? Do you think this
is the problem and, if so, how do you get MacPorts to install to /usr instead
of /opt/local?

If not that, any idea where I'm going wrong? Has anyone successfully compiled
the latest SVN version of digikam on Mac OS X?

Any input would be most welcome!

Thanks in advance,
Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=195735


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Portability




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2009-06-09 10:45:41 ---
About this one :

In function ‘UINT64 ByteSwap(UINT64)’:
/Users/Rishi/compile/graphics/digikam/digikam/../libs/3rdparty/libpgf/PGFplatform.h:542:
error: ‘_byteswap_uint64’ was not declared in this scope

This error come from libPGF included internally to digiKam.

http://lxr.kde.org/source/extragear/graphics/digikam/libs/3rdparty/libpgf/PGFplatform.h#542

It sound like "_byteswap_uint64" is not declared under MAcOS or a missing
system header is not included to this file...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #2 from Gilles Caulier <caulier gilles gmail com>  2009-06-09 10:47:04 ---
Kare,

I CC you here, because first part of this report is relevant of libksane...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #3 from Gilles Caulier <caulier gilles gmail com>  2009-06-09 12:30:38 ---
Rishi,

"_byteswap_uint64" is a pure M$ function:

http://msdn.microsoft.com/en-us/library/a3140177(VS.80).aspx

In libpgf, i this call is now wraaped around compilation directive, for
windows. checkout last code from svn and try again

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #4 from Gilles Caulier <caulier gilles gmail com>  2009-06-09 12:32:25 ---
SVN commit 979228 by cgilles:

"-byteswap_uint64" is a pure M$ function. wrap this call for M$ only

CCBUGS: 195735


 M  +2 -0      PGFplatform.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=979228

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735


[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #5 from  <rishi j sanyal gmail com>  2009-06-09 22:58:07 ---
Gilles,

Great, thanks so much for the quick fix.

As per your instructions, now compiling the latest SVN version allows 'make' to
get past 2%, but, now unfortunately fails at 52% with the following error:

[ 52%] Building C object
digikam/imageplugins/contentawareresizing/CMakeFiles/digikamimageplugin_contentawareresizing.dir/lqr/lqr_rwindow.o
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc1t5g1A.s:81:non-relocatable
subtraction expression, "_lqr_carver_read_luma" minus "L00000000001$pb"
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc1t5g1A.s:81:symbol:
"_lqr_carver_read_luma" can't be undefined in a subtraction expression
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc1t5g1A.s:62:non-relocatable
subtraction expression, "_lqr_carver_read_brightness" minus "L00000000001$pb"
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc1t5g1A.s:62:symbol:
"_lqr_carver_read_brightness" can't be undefined in a subtraction expression
make[2]: ***
[digikam/imageplugins/contentawareresizing/CMakeFiles/digikamimageplugin_contentawareresizing.dir/lqr/lqr_rwindow.o]
Error 1
make[1]: ***
[digikam/imageplugins/contentawareresizing/CMakeFiles/digikamimageplugin_contentawareresizing.dir/all]
Error 2
make: *** [all] Error 2

Any ideas? Has anyone actually successfully compiled digiKam 1.0.0 on a Mac?

Anyway, I'm excited that it made it all the way to 52%, as previously 'make'
kept on encountering errors at the 1-2% mark...

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.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #6 from  <rishi j sanyal gmail com>  2009-06-09 23:00:01 ---
Also, Gilles, interestingly enough, before pgfloader was failing as described
in this bug, I was getting the same exact error with qtpgftest:

[  0%] Building CXX object
digikam/libs/database/test/CMakeFiles/qtpgftest.dir/qtpgftest.o
/Users/Rishi/test/graphics/digikam/libs/database/test/../libpgf/PGFplatform.h:
In function ‘UINT64 ByteSwap(UINT64)’:
/Users/Rishi/test/graphics/digikam/libs/database/test/../libpgf/PGFplatform.h:542:
error: ‘_byteswap_uint64’ was not declared in this scope
make[2]: *** [digikam/libs/database/test/CMakeFiles/qtpgftest.dir/qtpgftest.o]
Error 1
make[1]: *** [digikam/libs/database/test/CMakeFiles/qtpgftest.dir/all] Error 2
make: *** [all] Error 2

However, a SVN update a week ago or so got rid of that problem, at which time I
started getting the pgfloader problem.

Anyway, looks like this particular problem is now fixed, but I thought I'd
bring it to your attention anyway in case it reminds you of anywhere else this
problem might resurface.

Cheers,
Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #7 from Gilles Caulier <caulier gilles gmail com>  2009-06-09 23:02:31 ---
Now compilation is broken in another 3rd-party library : liblqr.

I CC Carlo Baldassi who is developper from lqr team...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #8 from  <rishi j sanyal gmail com>  2009-06-09 23:10:51 ---
Well, now that I look back at the output of the cmake script, when I run cmake,
I see these warnings relevant to liblqr:

-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- PKGCONFIG() indicates that lqr-1 is not installed (install the package which
contains lqr-1.pc if you want to support this feature)
-- Could NOT find Lqr-1  (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES)

A few lines down, it then says:

--  liblqr-1 library found.............. NO  (optional)


I figured since it was listed as 'optional', make shouldn't fail... attempting
to install liblqr via MacPorts right now... will let you know if that helps.

Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #9 from  <rishi j sanyal gmail com>  2009-06-09 23:15:16 ---
Just an update:

Now, after installing liblqr-1 0.3.1, cmake gives me the following error:

-- Performing Test HAVE_LQR_0_4
-- Performing Test HAVE_LQR_0_4 - Failed
-- Could NOT find Lqr-1  (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES)

So, I'll try installing from source to get the latest version...

Be right back,
Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #10 from  <rishi j sanyal gmail com>  2009-06-09 23:22:04 ---
OK, so clearly the bug is with lqr itself, b/c when I try to compile the latest
liblqr (0.4.1) from source, it fails & I get the *same exact* error (or so it
appears to me) as when I was building digiKam:

Making all in lqr
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-DDATADIR=\""/usr/share/liblqr-1"\" -I.. -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/usr/include
-fvisibility="hidden"   -g -O2 -Wall -MT lqr_gradient.lo -MD -MP -MF
".deps/lqr_gradient.Tpo" -c -o lqr_gradient.lo lqr_gradient.c; \
    then mv -f ".deps/lqr_gradient.Tpo" ".deps/lqr_gradient.Plo"; else rm -f
".deps/lqr_gradient.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I..
-DDATADIR=\"/usr/share/liblqr-1\" -I.. -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/usr/include
-fvisibility=hidden -g -O2 -Wall -MT lqr_gradient.lo -MD -MP -MF
.deps/lqr_gradient.Tpo -c lqr_gradient.c  -fno-common -DPIC -o
.libs/lqr_gradient.o
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-DDATADIR=\""/usr/share/liblqr-1"\" -I.. -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/usr/include
-fvisibility="hidden"   -g -O2 -Wall -MT lqr_rwindow.lo -MD -MP -MF
".deps/lqr_rwindow.Tpo" -c -o lqr_rwindow.lo lqr_rwindow.c; \
    then mv -f ".deps/lqr_rwindow.Tpo" ".deps/lqr_rwindow.Plo"; else rm -f
".deps/lqr_rwindow.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I..
-DDATADIR=\"/usr/share/liblqr-1\" -I.. -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/usr/include
-fvisibility=hidden -g -O2 -Wall -MT lqr_rwindow.lo -MD -MP -MF
.deps/lqr_rwindow.Tpo -c lqr_rwindow.c  -fno-common -DPIC -o
.libs/lqr_rwindow.o
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc2iIfJN.s:82:non-relocatable
subtraction expression, "_lqr_carver_read_luma" minus "L00000000001$pb"
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc2iIfJN.s:82:symbol:
"_lqr_carver_read_luma" can't be undefined in a subtraction expression
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc2iIfJN.s:63:non-relocatable
subtraction expression, "_lqr_carver_read_brightness" minus "L00000000001$pb"
/var/folders/-H/-Hj0c7j4EKiiSqBDn0C1Xk+++TI/-Tmp-//cc2iIfJN.s:63:symbol:
"_lqr_carver_read_brightness" can't be undefined in a subtraction expression
make[2]: *** [lqr_rwindow.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Sorry it appears so jumbled here... here are the errors in a .txt file if that
makes it easier for you to read:

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

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.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #11 from  <rishi j sanyal gmail com>  2009-06-09 23:23:10 ---
Gilles, for now, how do I tell digiKam to compile without Liquid Rescale?

Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #12 from Gilles Caulier <caulier gilles gmail com>  2009-06-10 05:57:06 ---
Rishi,

You cannot disable liquid rescale for the moment using an option from command
line. liblqr is include to digiKam source as 3rd party lib. Cmake try to find
an external version, if not, it use internal version.

To disable liquid rescale as well, just comment this line :

http://lxr.kde.org/source/extragear/graphics/digikam/imageplugins/CMakeLists.txt#52

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
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.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #14 from Gilles Caulier <caulier gilles gmail com>  2009-06-10 15:02:33 ---
rishi,

I never compile digiKAm and kipi-plugins under MacOSX, because i don't have mac
computer (:=)))...

But other guy already do it. Look here :

http://www.digikam.org/node/418

For DBG problem, i can take a look . This code come from Adobe DNG sdk and must
compile fine under Mac.

>understand what 'need native threads support' means... could you clarify? Could
>this even be where the problem resides?

Native Thread want mean POSIX multi-threading support. Linux has pthread lib,
Windows has a dedicated one, but under Mac, i don't know...

When you run cmake at beginning, is this library is detected or not ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #15 from Gilles Caulier <caulier gilles gmail com>  2009-06-10 16:21:06 ---
rishi,

I will be more clear : the compilation error come from XMP sdk from adobe, not
DNG sdk, especially here :

http://lxr.kde.org/source/extragear/graphics/kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp#30

Sound like "Multiprocessing.h" file is missing on your system. It the Posic
thread support lib under MACOS-x. Look here if you can find a solution :

http://forum.soft32.com/mac/Multiprocessing-issue-ftopict43400.html

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #16 from  <rishi j sanyal gmail com>  2009-06-11 01:45:17 ---
Thanks Gilles.

I changed:

#include <Multiprocessing.h>

to:

#include <CoreServices/CoreServices.h>

in the file:

kipi-plugins/dngconverter/dngwriter/extra/xmp_sdk/XMPCore/XMPCore_Impl.hpp

Now, 'make' proceeds fine through all the xmp_sdk stuff, but then fails with
the dng_sdk here:

[ 72%] Building CXX object
kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/__/dngwriter/extra/dng_sdk/dng_date_time.o

/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:64: error:
conflicting declaration ‘typedef uint32_t uint32’

/Users/Rishi/compile/graphics/kipi-plugins/dngconverter/dngwriter/extra/dng_sdk/dng_types.h:56:
error: ‘uint32’ has a previous declaration as ‘typedef long unsigned int
uint32’

make[2]: ***
[kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/__/dngwriter/extra/dng_sdk/dng_date_time.o]
Error 1

make[1]: *** [kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/all]
Error 2

make: *** [all] Error 2

Any suggestions there?

So close!

Many 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.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #17 from  <rishi j sanyal gmail com>  2009-06-11 02:59:43 ---
Dear Gilles & all other devs here:

Gilles, you mentioned that Salvatore had previously compiled digiKam on the
Mac; however, that was an exceedingly old version (prior to 0.10.0, I
believe)... even 0.10.0 is quite easy to compile on Mac OS X, as long as you
follow these instructions:

http://www.hyper-world.de/en/2009/04/10/digikam-0100-under-mac-os-x/comment-page-1/#comment-3622

The latest versions of digiKam are hard to compile b/c of all the dependencies.

It seems we've pinpointed the problems to just two 3rd party packages:

Liquid Rescaling
DNG Converter

Right now, digiKam SVN is working perfectly on my Mac OS X 10.5.6, as long as
the above 2 packages are not included.

Let's see if we can get those packages working! As for DNG Converter, after
fixing the threading problem with XMPCore, I've isolated the last remaining
problem to dng_types.h, line 56. Unfortunately, the most recent dng_sdk from
Adobe still has the exact same dng_types.h file, so I'm not sure how to work
around this...

Hopefully you'll have some input :)

Thanks again,
Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from rishi.j.sanyal@gmail.com
In reply to this post by Bugzilla from rishi.j.sanyal@gmail.com
https://bugs.kde.org/show_bug.cgi?id=195735





--- Comment #18 from  <rishi j sanyal gmail com>  2009-06-11 04:01:19 ---
UPDATE: I've added the line:

#define _UINT32

to graphics/kipi-plugins/dngconverter/dngwriter/extra/dng_sdk/dng_types.h, as
suggested by xbc on http://chdk.setepontos.com/index.php?topic=817.45
2009_03_09.

This allows 'make' to proceed up to a whopping 85%, with dngconverter plugin
seemingly compiled just fine.

However, make fails here, apparently on 'dngvalidate', a part of
'dngconverter':

[ 85%] Building CXX object
kipi-plugins/dngconverter/test/CMakeFiles/dngvalidate.dir/__/dngwriter/extra/xmp_sdk/XMPCore/ParseRDF.o
Linking CXX executable dngvalidate
Undefined symbols:
  "_ConvertFromTextToUnicode", referenced from:
      Assign_Multibyte(dng_string&, char const*, unsigned long)in dng_string.o
  "_UpgradeScriptInfoToTextEncoding", referenced from:
      dng_string::Set_SystemEncoding(char const*)in dng_string.o
      dng_string::Get_SystemEncoding(dng_memory_data&) const   in dng_string.o
  "_MPEnterCriticalRegion", referenced from:
      XMP_EnterCriticalRegion(OpaqueMPCriticalRegionID*&)      in
XMPCore_Impl.o
  "_ConvertFromUnicodeToText", referenced from:
      dng_string::Get_SystemEncoding(dng_memory_data&) const   in dng_string.o
  "_CreateTextToUnicodeInfo", referenced from:
      Assign_Multibyte(dng_string&, char const*, unsigned long)in dng_string.o
  "_CreateUnicodeToTextInfo", referenced from:
      dng_string::Get_SystemEncoding(dng_memory_data&) const   in dng_string.o
  "_CreateTextEncoding", referenced from:
      Assign_Multibyte(dng_string&, char const*, unsigned long)in dng_string.o
      dng_string::Get_SystemEncoding(dng_memory_data&) const   in dng_string.o
  "_MPDeleteCriticalRegion", referenced from:
      XMP_TermMutex(OpaqueMPCriticalRegionID*&)      in XMPCore_Impl.o
  "_CFRelease", referenced from:
      LocalTimeZone(dng_date_time const&) in dng_date_time.o
  "_CFTimeZoneCopyDefault", referenced from:
      LocalTimeZone(dng_date_time const&) in dng_date_time.o
  "_CFTimeZoneGetSecondsFromGMT", referenced from:
      LocalTimeZone(dng_date_time const&) in dng_date_time.o
  "_MPExitCriticalRegion", referenced from:
      XMP_ExitCriticalRegion(OpaqueMPCriticalRegionID*&)      in XMPCore_Impl.o
  "_UCCompareTextDefault", referenced from:
      dng_string::Compare(dng_string const&) constin dng_string.o
  "_DisposeTextToUnicodeInfo", referenced from:
      Assign_Multibyte(dng_string&, char const*, unsigned long)in dng_string.o
  "_DisposeUnicodeToTextInfo", referenced from:
      dng_string::Get_SystemEncoding(dng_memory_data&) const   in dng_string.o
  "_CFGregorianDateGetAbsoluteTime", referenced from:
      LocalTimeZone(dng_date_time const&) in dng_date_time.o
  "_MPCreateCriticalRegion", referenced from:
      XMP_InitMutex(OpaqueMPCriticalRegionID**)      in XMPCore_Impl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [kipi-plugins/dngconverter/test/dngvalidate] Error 1
make[1]: *** [kipi-plugins/dngconverter/test/CMakeFiles/dngvalidate.dir/all]
Error 2
make: *** [all] Error 2

Again, here is a .txt file of the errors, for easier reading:
http://staff.washington.edu/rjsanyal/dngvalidate_error.txt

I'm stumped at this point...

-Rishi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
12