Problems compiling to /usr/local

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

Problems compiling to /usr/local

Bugzilla from pwaldo@waldoware.com
Hi all,

I'm trying to compile digikam and digikamimageplugins (both 0.9.1) from
the release tarball.  I want them to go in /usr/local because, on my
Kubuntu system, the kubuntu-desktop package is dependent upon the
libkipi and digikam packages that come with the distro.

I was able to install digikam just fine, but when I compile
digikamimageplugins, I get this error:

/bin/bash ../../libtool --silent --tag=CXX --mode=link g++  
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2
-march=nocona -Wformat-security -Wmissing-format-attribute
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
-DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o
digikamimageplugin_adjustlevels.la -rpath /usr/local/lib/kde3 -module
-avoid-version -module -no-undefined -Wl,--no-undefined
-Wl,--allow-shlib-undefined -R /usr/local/lib -R /usr/lib -R
/usr/share/qt3/lib  -L/usr/share/qt3/lib      
imageplugin_adjustlevels.lo adjustlevels.lo -lkparts -ldigikam
../../digikamimageplugins/common/widgets/libdigikamimagepluginswidget.la
grep: /usr/lib/libkipi.la: No such file or directory
/bin/sed: can't read /usr/lib/libkipi.la: No such file or directory
libtool: link: `/usr/lib/libkipi.la' is not a valid libtool archive


At the beginning, I ran ./configure --prefix=/usr/local and indeed have
the appropriate libkipi in /usr/local:

pwaldo@office
/home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
$ ls -l /usr/local/lib/libkipi*
-rwxr-xr-x 1 root root   1349 2007-04-06 12:03 /usr/local/lib/libkipi.la
lrwxrwxrwx 1 root root     16 2007-04-06 12:03 /usr/local/lib/libkipi.so
-> libkipi.so.0.1.1
lrwxrwxrwx 1 root root     16 2007-04-06 12:03
/usr/local/lib/libkipi.so.0 -> libkipi.so.0.1.1
-rwxr-xr-x 1 root root 328631 2007-04-06 12:03
/usr/local/lib/libkipi.so.0.1.1


How can I get the compile to look in /usr/local/lib before /usr/lib?  
Thanks in advance!

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

Re: Problems compiling to /usr/local

Bugzilla from pwaldo@waldoware.com
Paul Waldo wrote:

> Hi all,
>
> I'm trying to compile digikam and digikamimageplugins (both 0.9.1) from
> the release tarball.  I want them to go in /usr/local because, on my
> Kubuntu system, the kubuntu-desktop package is dependent upon the
> libkipi and digikam packages that come with the distro.
>
> I was able to install digikam just fine, but when I compile
> digikamimageplugins, I get this error:
>
> /bin/bash ../../libtool --silent --tag=CXX --mode=link g++  
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2
> -march=nocona -Wformat-security -Wmissing-format-attribute
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
> -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
> -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o
> digikamimageplugin_adjustlevels.la -rpath /usr/local/lib/kde3 -module
> -avoid-version -module -no-undefined -Wl,--no-undefined
> -Wl,--allow-shlib-undefined -R /usr/local/lib -R /usr/lib -R
> /usr/share/qt3/lib  -L/usr/share/qt3/lib      
> imageplugin_adjustlevels.lo adjustlevels.lo -lkparts -ldigikam
> ../../digikamimageplugins/common/widgets/libdigikamimagepluginswidget.la
> grep: /usr/lib/libkipi.la: No such file or directory
> /bin/sed: can't read /usr/lib/libkipi.la: No such file or directory
> libtool: link: `/usr/lib/libkipi.la' is not a valid libtool archive
>
>
> At the beginning, I ran ./configure --prefix=/usr/local and indeed have
> the appropriate libkipi in /usr/local:
>
> pwaldo@office
> /home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
> $ ls -l /usr/local/lib/libkipi*
> -rwxr-xr-x 1 root root   1349 2007-04-06 12:03 /usr/local/lib/libkipi.la
> lrwxrwxrwx 1 root root     16 2007-04-06 12:03 /usr/local/lib/libkipi.so
> -> libkipi.so.0.1.1
> lrwxrwxrwx 1 root root     16 2007-04-06 12:03
> /usr/local/lib/libkipi.so.0 -> libkipi.so.0.1.1
> -rwxr-xr-x 1 root root 328631 2007-04-06 12:03
> /usr/local/lib/libkipi.so.0.1.1
>
>
> How can I get the compile to look in /usr/local/lib before /usr/lib?  
> Thanks in advance!
>
> Paul
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
>  

Any advice from anyone?  My other option is to compile straight to /usr,
overwriting the digikam 0.8.2 package that is required by my Kubuntu
Edgy install.  Doing that gives me pause; anyone had good long-term
results overwriting an installed package?  TIA!

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

Re: Problems compiling to /usr/local

Gilles Caulier-4
are you take a look on the web project about the script to install current svn implementation in your home dir. ? It can be adapted to 0.9.1 tarball...

http://www.digikam.org/?q=download/svn

Gilles



2007/4/10, Paul Waldo <[hidden email]>:
Paul Waldo wrote:

> Hi all,
>
> I'm trying to compile digikam and digikamimageplugins (both 0.9.1) from
> the release tarball.  I want them to go in /usr/local because, on my
> Kubuntu system, the kubuntu-desktop package is dependent upon the
> libkipi and digikam packages that come with the distro.
>
> I was able to install digikam just fine, but when I compile
> digikamimageplugins, I get this error:
>
> /bin/bash ../../libtool --silent --tag=CXX --mode=link g++
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2
> -march=nocona -Wformat-security -Wmissing-format-attribute
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
> -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
> -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o
> digikamimageplugin_adjustlevels.la -rpath /usr/local/lib/kde3 -module
> -avoid-version -module -no-undefined -Wl,--no-undefined
> -Wl,--allow-shlib-undefined -R /usr/local/lib -R /usr/lib -R
> /usr/share/qt3/lib  -L/usr/share/qt3/lib
> imageplugin_adjustlevels.lo adjustlevels.lo -lkparts -ldigikam
> ../../digikamimageplugins/common/widgets/libdigikamimagepluginswidget.la
> grep: /usr/lib/libkipi.la: No such file or directory
> /bin/sed: can't read /usr/lib/libkipi.la: No such file or directory
> libtool: link: `/usr/lib/libkipi.la' is not a valid libtool archive
>
>
> At the beginning, I ran ./configure --prefix=/usr/local and indeed have
> the appropriate libkipi in /usr/local:
>
> pwaldo@office
> /home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
> $ ls -l /usr/local/lib/libkipi*
> -rwxr-xr-x 1 root root   1349 2007-04-06 12:03 /usr/local/lib/libkipi.la
> lrwxrwxrwx 1 root root     16 2007-04-06 12:03 /usr/local/lib/libkipi.so
> -> libkipi.so.0.1.1
> lrwxrwxrwx 1 root root     16 2007-04-06 12:03
> /usr/local/lib/libkipi.so.0 -> libkipi.so.0.1.1
> -rwxr-xr-x 1 root root 328631 2007-04-06 12:03
> /usr/local/lib/libkipi.so.0.1.1
>
>
> How can I get the compile to look in /usr/local/lib before /usr/lib?
> Thanks in advance!
>
> Paul
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
>

Any advice from anyone?  My other option is to compile straight to /usr,
overwriting the digikam 0.8.2 package that is required by my Kubuntu
Edgy install.  Doing that gives me pause; anyone had good long-term
results overwriting an installed package?  TIA!

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


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

Re: Problems compiling to /usr/local

Arnd Baecker
In reply to this post by Bugzilla from pwaldo@waldoware.com
On Tue, 10 Apr 2007, Paul Waldo wrote:

[...]

> > At the beginning, I ran ./configure --prefix=/usr/local and indeed have
> > the appropriate libkipi in /usr/local:

Not 100% sure, but you might also need
./configure --prefix=$DKPATH --with-extra-includes=$DKPATH/include  \
--with-extra-libs=$DKPATH/lib

where DKPATH=/usr/local
in your case.

HTH, Arnd


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

Re: Problems compiling to /usr/local

Bugzilla from dennis@meulensteen.nl
In reply to this post by Bugzilla from pwaldo@waldoware.com
> Paul Waldo wrote:
> Any advice from anyone?  My other option is to compile straight to /usr,
> overwriting the digikam 0.8.2 package that is required by my Kubuntu
> Edgy install.  Doing that gives me pause; anyone had good long-term
> results overwriting an installed package?  TIA!

I have done just that about five times with OpenSuse 10.1 and 10.2, never
a problem with any of my other related apps. Not sure about Kubuntu
though. I'd just do it, but hey, I'm somewhat of a risk taker...

Dennis

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

Re: Problems compiling to /usr/local

Bugzilla from pwaldo@waldoware.com
In reply to this post by Arnd Baecker
Arnd Baecker wrote:

> On Tue, 10 Apr 2007, Paul Waldo wrote:
>
> [...]
>
>  
>>> At the beginning, I ran ./configure --prefix=/usr/local and indeed have
>>> the appropriate libkipi in /usr/local:
>>>      
>
> Not 100% sure, but you might also need
> ./configure --prefix=$DKPATH --with-extra-includes=$DKPATH/include  \
> --with-extra-libs=$DKPATH/lib
>
> where DKPATH=/usr/local
> in your case.
>
> HTH, Arnd
>
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
>  

Arnd,

Thanks for the tip.  That did help in compilation [sound of forehead
slap].  When I try to run though, I get library problems:

pwaldo@office
/home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
$ which showfoto
/usr/local/bin/showfoto

pwaldo@office
/home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
$ showfoto
showfoto: ICC profiles repository is: color_management
showfoto: Found dcraw version: 8.41
showfoto: WARNING: KIPI::PluginLoader:: createInstanceFromLibrary
returned 0 for ImagePlugin_Core (digikamimageplugin_core) with error
number 3
showfoto: WARNING: KLibLoader says:
/usr/local/lib/kde3/digikamimageplugin_core.so: undefined symbol:
_ZN7Digikam12CtrlPanelDlg11customEventEP12QCustomEvent
showfoto: ERROR: ImagePluginLoader: Failed to load plugin
ImagePlugin_RainDrop

pwaldo@office
/home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
$ digikam
digikam: symbol lookup error: digikam: undefined symbol:
_ZN7Digikam12AlbumManagerC1Ev

pwaldo@office
/home/local_pwaldo/src/graphics/digikam/digikamimageplugins-0.9.1
$ env|grep /usr/local
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib:/usr/local/lib:
PATH=/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/pwaldo/bin
MAN_PATH=/usr/local/man:/usr/local/man:/usr/local/man:
KDEDIRS=/usr/local:/usr
DKPATH=/usr/local
LDPATH=/usr/local/lib:

Any ideas?  Thanks!

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

Re: Problems compiling to /usr/local

Arnd Baecker
On Tue, 10 Apr 2007, Paul Waldo wrote:

[...]
> Any ideas?  Thanks!

Hmm, you did a `make clean` before compiling again, right?

Another option is to use current svn,
following the description at
  http://www.digikam.org/?q=download/svn

This works without problems for me
(and there are several great new features  ;-)

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

Re: Problems compiling to /usr/local

Bugzilla from pwaldo@waldoware.com
Arnd Baecker wrote:

> On Tue, 10 Apr 2007, Paul Waldo wrote:
>
> [...]
>  
>> Any ideas?  Thanks!
>>    
>
> Hmm, you did a `make clean` before compiling again, right?
>
> Another option is to use current svn,
> following the description at
>   http://www.digikam.org/?q=download/svn
>
> This works without problems for me
> (and there are several great new features  ;-)
>
> Arnd
>  
Yes, I did "make clean" and rebuilt both digikam and digikamimageplugins.
I had previously tried the SVN version, but I had similar problems :-(

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