[Digikam-users] How to build Digikam?

Dotan Cohen dotancohen at gmail.com
Wed Jul 9 14:18:57 BST 2008


2008/7/9 Andi Clemens <andi.clemens at gmx.net>:
> this is really your complete output?

Yes, that was everything.

> ok two issues here:
>
> 1) don't compile as root, the env vars for KDE will not be set correctly,
> especially if you don't log into the kde session as root user.

On the http://www.digikam.org/drupal/download/svn page the commands
were preceded with "#" instead of "$" so I assumed that mean root.

> 2) don't compile as root (:-)), you never want to do this... it might break a
> lot of stuff on badly written Makefiles (sure not in digiKam, but there is a
> lot of crappy software out there :-))
> Only install as root, for example
>
> su -c "make install".... but don't build...
>
> So make sure you are compiling as the user starting the KDE session and post
> env again...
>

hardy at hardy-laptop:~$ env | grep -i kde
KDE_MULTIHEAD=false
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/hardy/.gtkrc-2.0:/home/hardy/.gtkrc-2.0-kde4:/home/hardy/.kde4/share/config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/hardy/.gtkrc::/home/hardy/.kde4/share/config/gtkrc
KDE_FULL_SESSION=true
LD_LIBRARY_PATH=/usr/lib/kde4/lib
PATH=/usr/lib/kde4/bin:/usr/lib/kde4/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
DESKTOP_SESSION=kde4
KDE_SESSION_UID=1000
KDEDIRS=/usr/lib/kde4
KDE_SESSION_VERSION=4
XDG_DATA_DIRS=/usr/lib/kde4/share:/usr/share:/usr/local/share
QT_PLUGIN_PATH=/home/hardy/.kde4/lib/kde4/plugins/:/usr/lib/kde4/lib/kde4/plugins/
hardy at hardy-laptop:~$

> But right now I'm tired, so if nobody else will answer you'll have to wait
> till tomorrow.
>

Yes, I fell asleep as well...
Now, trying with different cmake possibilities as user, this is what
I'm getting. It seems that a line is missing from cmake, but the error
is explicit in that it requires a dev to fix:

hardy at hardy-laptop:~/graphics/build$ cmake
-DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/opt/kde4
../../graphics
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72
(MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/hardy/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:9 (find_package)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
hardy at hardy-laptop:~/graphics/build$ cmake
-DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/lib/kde4
../../graphics
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72
(MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/hardy/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:9 (find_package)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
hardy at hardy-laptop:~/graphics/build$ cd ..
hardy at hardy-laptop:~/graphics$ cd ..
hardy at hardy-laptop:~$ cd graphics/
hardy at hardy-laptop:~/graphics$ cmake -DCMAKE_BUILD_TYPE=debugfull
-DCMAKE_INSTALL_PREFIX=/usr/lib/kde4
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/hardy/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:9 (find_package)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
hardy at hardy-laptop:~/graphics$




Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the Digikam-users mailing list