Please help building digikam4

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

Please help building digikam4

Geoff King-4
I've been wanting to try digikam4 while still leaving digikam3
installed systemwide and have run into the following problem. .

Every time it configures, it finds kexiv2, libkipi and kdcraw in the
system locations and not the locally built version (
/home/gsking/programs/src/svn/digikam4/build/lib) where it should.
For example see below... (kexiv2, libkipi and kdcraw found in
/usr/lib/, but libksane found locally where it should be).

--
-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
-- Found Kipi library in cache: /usr/lib/libkipi.so
-- Found JPEG: /usr/lib/libjpeg.so
-- Found PNG: /usr/lib/libpng.so
-- Found Sane: /usr/include
-- Found EXPAT: /usr/lib/libexpat.so
-- Found LibXml2: /usr/lib/libxml2.so
-- Found LibXslt: /usr/lib/libxslt.so
-- Found X11: /usr/lib/libX11.so
-- Found libksane: /home/gsking/programs/src/svn/digikam4/build/lib/libksane.so
--


I'm using the following  script to build it (some of which might be
unnecessary, but it works on another machine)
==========
DIGIKAMKDE4=$HOME/programs/src/svn/digikam4/build
export DBUSDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIRS=$DIGIKAMKDE4:/usr/lib/kde4
export KDEHOME=$HOME/.kde4
export KDETMP=$HOME/tmp/gsking-kde4
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib:/usr/lib/kde4:/usr/lib/kde4/lib:/usr/local/lib
export LDPATH=$DIGIKAMKDE4/lib
export LIBDIR=$DIGIKAMKDE4/lib:/usr/lib/kde4/lib
export QTDIR=/usr/lib/qt4
export QT_PLUGIN_PATH=/usr/lib/kde4/lib/kde4/plugins
export PKG_CONFIG_PATH=$DIGIKAMKDE4/lib/pkgconfig:/usr/lib/kde4/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
export PATH=$DIGIKAMKDE4/bin:/usr/share/qt4/bin:/usr/lib/kde4/bin:$PATH
export LDFLAGS=-Wl,-rpath,/home/gsking/programs/src/svn/digikam4/build/lib

cd ~/programs/src/svn/digikam4/graphics
svn up digikam
svn up kipi-plugins
svn up cmake

rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../graphics
make
make install
==========

This on Ubuntu 8.04. Digikam3 is running perfectly and I want to keep
it that way so don't want to uninstall anything.

Thanks for any suggestions. Geoff
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please help building digikam4

Gilles Caulier-4
Are you removed CMakeCache.txt file on root build directory where source are located ?

Are you tried to use on of my bootstrap script located in project subfolder ?

Gilles Caulier

2008/10/13 Geoff King <[hidden email]>
I've been wanting to try digikam4 while still leaving digikam3
installed systemwide and have run into the following problem. .

Every time it configures, it finds kexiv2, libkipi and kdcraw in the
system locations and not the locally built version (
/home/gsking/programs/src/svn/digikam4/build/lib) where it should.
For example see below... (kexiv2, libkipi and kdcraw found in
/usr/lib/, but libksane found locally where it should be).

--
-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
-- Found Kipi library in cache: /usr/lib/libkipi.so
-- Found JPEG: /usr/lib/libjpeg.so
-- Found PNG: /usr/lib/libpng.so
-- Found Sane: /usr/include
-- Found EXPAT: /usr/lib/libexpat.so
-- Found LibXml2: /usr/lib/libxml2.so
-- Found LibXslt: /usr/lib/libxslt.so
-- Found X11: /usr/lib/libX11.so
-- Found libksane: /home/gsking/programs/src/svn/digikam4/build/lib/libksane.so
--


I'm using the following  script to build it (some of which might be
unnecessary, but it works on another machine)
==========
DIGIKAMKDE4=$HOME/programs/src/svn/digikam4/build
export DBUSDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIRS=$DIGIKAMKDE4:/usr/lib/kde4
export KDEHOME=$HOME/.kde4
export KDETMP=$HOME/tmp/gsking-kde4
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib:/usr/lib/kde4:/usr/lib/kde4/lib:/usr/local/lib
export LDPATH=$DIGIKAMKDE4/lib
export LIBDIR=$DIGIKAMKDE4/lib:/usr/lib/kde4/lib
export QTDIR=/usr/lib/qt4
export QT_PLUGIN_PATH=/usr/lib/kde4/lib/kde4/plugins
export PKG_CONFIG_PATH=$DIGIKAMKDE4/lib/pkgconfig:/usr/lib/kde4/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
export PATH=$DIGIKAMKDE4/bin:/usr/share/qt4/bin:/usr/lib/kde4/bin:$PATH
export LDFLAGS=-Wl,-rpath,/home/gsking/programs/src/svn/digikam4/build/lib

cd ~/programs/src/svn/digikam4/graphics
svn up digikam
svn up kipi-plugins
svn up cmake

rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../graphics
make
make install
==========

This on Ubuntu 8.04. Digikam3 is running perfectly and I want to keep
it that way so don't want to uninstall anything.

Thanks for any suggestions. Geoff
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel


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

Re: Please help building digikam4

Arnd Baecker
In reply to this post by Geoff King-4
Hi Geoff,

On Sun, 12 Oct 2008, Geoff King wrote:

> I've been wanting to try digikam4 while still leaving digikam3
> installed systemwide and have run into the following problem. .
>
> Every time it configures, it finds kexiv2, libkipi and kdcraw in the
> system locations and not the locally built version (
> /home/gsking/programs/src/svn/digikam4/build/lib) where it should.
> For example see below... (kexiv2, libkipi and kdcraw found in
> /usr/lib/, but libksane found locally where it should be).

To me it seems that you are mixing the build directory
with the destination to which the installation should go:
I.e. instead of
DIGIKAMKDE4=$HOME/programs/src/svn/digikam4/build
I would suggest
DIGIKAMKDE4=$HOME/programs/soft_digikam4
(or whatever name you choose).
The reason is that later on you do
  cd ~/programs/src/svn/digikam4/graphics
  rm -rf build
  mkdir build
  cd build
  cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4 ../../graphics
which means that anything which you installed into
$HOME/programs/src/svn/digikam4/graphics/build
before will be removed. In particular this should remove
the previously installed libkexiv2 & Co.!

HTH, best, Arnd
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please help building digikam4

Gilles Caulier-4
In reply to this post by Gilles Caulier-4
Forget to said that here, under Mandriva 2008.1, i have installed digiKam for KDE3 (/usr) and digiKam for KDE4 (/opt) without problems...

Gilles Caulier

2008/10/13 Gilles Caulier <[hidden email]>
Are you removed CMakeCache.txt file on root build directory where source are located ?

Are you tried to use on of my bootstrap script located in project subfolder ?

Gilles Caulier

2008/10/13 Geoff King <[hidden email]>

I've been wanting to try digikam4 while still leaving digikam3
installed systemwide and have run into the following problem. .

Every time it configures, it finds kexiv2, libkipi and kdcraw in the
system locations and not the locally built version (
/home/gsking/programs/src/svn/digikam4/build/lib) where it should.
For example see below... (kexiv2, libkipi and kdcraw found in
/usr/lib/, but libksane found locally where it should be).

--
-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
-- Found Kipi library in cache: /usr/lib/libkipi.so
-- Found JPEG: /usr/lib/libjpeg.so
-- Found PNG: /usr/lib/libpng.so
-- Found Sane: /usr/include
-- Found EXPAT: /usr/lib/libexpat.so
-- Found LibXml2: /usr/lib/libxml2.so
-- Found LibXslt: /usr/lib/libxslt.so
-- Found X11: /usr/lib/libX11.so
-- Found libksane: /home/gsking/programs/src/svn/digikam4/build/lib/libksane.so
--


I'm using the following  script to build it (some of which might be
unnecessary, but it works on another machine)
==========
DIGIKAMKDE4=$HOME/programs/src/svn/digikam4/build
export DBUSDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIR=$DIGIKAMKDE4:/usr/lib/kde4
export KDEDIRS=$DIGIKAMKDE4:/usr/lib/kde4
export KDEHOME=$HOME/.kde4
export KDETMP=$HOME/tmp/gsking-kde4
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib:/usr/lib/kde4:/usr/lib/kde4/lib:/usr/local/lib
export LDPATH=$DIGIKAMKDE4/lib
export LIBDIR=$DIGIKAMKDE4/lib:/usr/lib/kde4/lib
export QTDIR=/usr/lib/qt4
export QT_PLUGIN_PATH=/usr/lib/kde4/lib/kde4/plugins
export PKG_CONFIG_PATH=$DIGIKAMKDE4/lib/pkgconfig:/usr/lib/kde4/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
export PATH=$DIGIKAMKDE4/bin:/usr/share/qt4/bin:/usr/lib/kde4/bin:$PATH
export LDFLAGS=-Wl,-rpath,/home/gsking/programs/src/svn/digikam4/build/lib

cd ~/programs/src/svn/digikam4/graphics
svn up digikam
svn up kipi-plugins
svn up cmake

rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../graphics
make
make install
==========

This on Ubuntu 8.04. Digikam3 is running perfectly and I want to keep
it that way so don't want to uninstall anything.

Thanks for any suggestions. Geoff
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel



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

Re: Please help building digikam4

Geoff King-4
In reply to this post by Geoff King-4
Arnd and Gilles,
Thank you for your suggestions, but I'm still having problems.

These example lines sum up the issue.  Kexiv is found in the system
location (incorrect), whereas libksane is found correctly.

-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
-- Found Kipi library in cache: /usr/lib/libkipi.so
-- Found libksane: /home/gsking/programs/src/svn/soft_digikam4/lib/libksane.so

An environment problem with Ubuntu??
What is "library in cache"?  Is there a way to easily override this
like libksane.
Could the checks for Kexiv2, Kdcraw, and Kipi be more restrictive so
that the digikam3 versions are not used?

Please don't waste your time on this.  I am able to install and test
digikam4 on a computer which does not have digikam3 installed.

Thanks, Geoff
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please help building digikam4

Bugzilla from mikmach@wp.pl
Dnia Tuesday 14 of October 2008, Geoff King napisaƂ:

> Arnd and Gilles,
> Thank you for your suggestions, but I'm still having problems.
>
> These example lines sum up the issue.  Kexiv is found in the system
> location (incorrect), whereas libksane is found correctly.
>
> -- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
> -- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
> -- Found Kipi library in cache: /usr/lib/libkipi.so
> -- Found libksane:
> /home/gsking/programs/src/svn/soft_digikam4/lib/libksane.so
>
> An environment problem with Ubuntu??
> What is "library in cache"?  Is there a way to easily override this
> like libksane.

Locations of kexiv2, kdcraw and kipi were cached in configuration
system. Try to find that cache and remove it. Fastest method is just...
to remove everything and start from scratch.

m.

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel