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

rishi.j.sanyal at gmail.com rishi.j.sanyal at gmail.com
Tue Jun 9 02:31:23 BST 2009


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: digikam-devel at kde.org
        ReportedBy: rishi.j.sanyal at gmail.com


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.


More information about the Digikam-devel mailing list