Compiling digiKam

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

Compiling digiKam

Mark Fraser

I'm trying to build digiKam 2 from git on Kubuntu 11.10, but I'm having trouble. It gets to 92% and then this error:

 

[ 92%] Building CXX object core/digikam/CMakeFiles/digikam.dir/digikamadaptor.cpp.o

Linking CXX executable digikam

/usr/bin/ld: /usr/lib/libgphoto2.so: undefined reference to symbol 'gp_port_free'

/usr/bin/ld: note: 'gp_port_free' is defined in DSO /usr/lib/libgphoto2_port.so so try adding it to the linker command line

/usr/lib/libgphoto2_port.so: could not read symbols: Invalid operation

collect2: ld returned 1 exit status

make[2]: *** [core/digikam/digikam] Error 1

make[1]: *** [core/digikam/CMakeFiles/digikam.dir/all] Error 2

make: *** [all] Error 2

 

Any ideas?

 

BTW, I've installed libcv-dev, libboost-dev, libcvaux-dev, libhighgui-dev along with digikam and kipi-plugins build dependencies.

 


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

Re: Compiling digiKam

Gilles Caulier-4
linking with gphoto2 library failed. It's probably a problem with your gphoto2 install. 

Also, try to clean cmake cache in digiKam source code dir and try again

Gilles Caulier

2011/8/25 Mark Fraser <[hidden email]>

I'm trying to build digiKam 2 from git on Kubuntu 11.10, but I'm having trouble. It gets to 92% and then this error:

 

[ 92%] Building CXX object core/digikam/CMakeFiles/digikam.dir/digikamadaptor.cpp.o

Linking CXX executable digikam

/usr/bin/ld: /usr/lib/libgphoto2.so: undefined reference to symbol 'gp_port_free'

/usr/bin/ld: note: 'gp_port_free' is defined in DSO /usr/lib/libgphoto2_port.so so try adding it to the linker command line

/usr/lib/libgphoto2_port.so: could not read symbols: Invalid operation

collect2: ld returned 1 exit status

make[2]: *** [core/digikam/digikam] Error 1

make[1]: *** [core/digikam/CMakeFiles/digikam.dir/all] Error 2

make: *** [all] Error 2

 

Any ideas?

 

BTW, I've installed libcv-dev, libboost-dev, libcvaux-dev, libhighgui-dev along with digikam and kipi-plugins build dependencies.

 


_______________________________________________
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: Compiling digiKam

Mark Fraser
On 25 August 2011 19:14, Gilles Caulier <[hidden email]> wrote:
linking with gphoto2 library failed. It's probably a problem with your gphoto2 install. 

Also, try to clean cmake cache in digiKam source code dir and try again

Gilles Caulier

I've checked to see if I have all the gphoto2 dev packages and I tried again. Got to the same point as last tiime and it stopped with the same error.

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

Re: Compiling digiKam

Gilles Caulier-4
And cleaning CMakeCache.txt file on root source dir and re-run configuration by cmake do not solve the problem ?

Which Gphoto2 version you use ?

Gilles Caulier

2011/8/26 Mark Fraser <[hidden email]>
On 25 August 2011 19:14, Gilles Caulier <[hidden email]> wrote:
linking with gphoto2 library failed. It's probably a problem with your gphoto2 install. 

Also, try to clean cmake cache in digiKam source code dir and try again

Gilles Caulier

I've checked to see if I have all the gphoto2 dev packages and I tried again. Got to the same point as last tiime and it stopped with the same error.

_______________________________________________
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: Compiling digiKam

Mark Fraser

On Friday 26 Aug 2011 07:22:17 Gilles Caulier wrote:

> And cleaning CMakeCache.txt file on root source dir and re-run

> configuration by cmake do not solve the problem ?

 

No, I actually just deleted the whole build directory.

 

> Which Gphoto2 version you use ?

 

Gphoto2 - 2.4.11-1ubuntu1

libgphoto2-2 - 2.4.11-3

 

 


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

Re: Compiling digiKam

Gilles Caulier-4
Mark,

I suspect that without my recent commit :

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/772f592f639f52d0c1a991265098b46672fecb6e/diff

... you cannot link digiKam with Gphoto2.

Please try to use git master code, or backport this patch on your computer.

Gilles Caulier

2011/8/26 Mark Fraser <[hidden email]>:

> On Friday 26 Aug 2011 07:22:17 Gilles Caulier wrote:
>
>> And cleaning CMakeCache.txt file on root source dir and re-run
>
>> configuration by cmake do not solve the problem ?
>
>
>
> No, I actually just deleted the whole build directory.
>
>
>
>> Which Gphoto2 version you use ?
>
>
>
> Gphoto2 - 2.4.11-1ubuntu1
>
> libgphoto2-2 - 2.4.11-3
>
>
>
>
>
> _______________________________________________
> 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: Compiling digiKam

Mark Fraser

On Friday 26 Aug 2011 16:58:59 Gilles Caulier wrote:

> Mark,

>

> I suspect that without my recent commit :

>

> https://projects.kde.org/projects/extragear/graphics/digikam/repository/rev

> isions/772f592f639f52d0c1a991265098b46672fecb6e/diff

>

> ... you cannot link digiKam with Gphoto2.

>

> Please try to use git master code, or backport this patch on your computer.

 

That allowed it to compile and install, but when I run it I don't see any thumbnails.


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

Re: Compiling digiKam

Gilles Caulier-4
It's another problem. thumbnail are managed by kde kioslave to query
digiKam database in a separate process.

sound like kio slave are not installed at the right place in KDE and
cannot be started.

this problem have been already seen in this mailling list

Gilles Caulier

2011/8/26 Mark Fraser <[hidden email]>:

> On Friday 26 Aug 2011 16:58:59 Gilles Caulier wrote:
>
>> Mark,
>
>>
>
>> I suspect that without my recent commit :
>
>>
>
>>
>> https://projects.kde.org/projects/extragear/graphics/digikam/repository/rev
>
>> isions/772f592f639f52d0c1a991265098b46672fecb6e/diff
>
>>
>
>> ... you cannot link digiKam with Gphoto2.
>
>>
>
>> Please try to use git master code, or backport this patch on your
>> computer.
>
>
>
> That allowed it to compile and install, but when I run it I don't see any
> thumbnails.
>
> _______________________________________________
> 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: Compiling digiKam

Rinus
In reply to this post by Mark Fraser
This is a known problem if you use
cmake
instead of
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

it is about de kde4 prefix of course

could that be the case here?

Rinus


Op 26-08-11 19:58, Mark Fraser schreef:

On Friday 26 Aug 2011 16:58:59 Gilles Caulier wrote:

> Mark,

>

> I suspect that without my recent commit :

>

> https://projects.kde.org/projects/extragear/graphics/digikam/repository/rev

> isions/772f592f639f52d0c1a991265098b46672fecb6e/diff

>

> ... you cannot link digiKam with Gphoto2.

>

> Please try to use git master code, or backport this patch on your computer.

 

That allowed it to compile and install, but when I run it I don't see any thumbnails.

_______________________________________________ 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: Compiling digiKam

Mark Fraser

On Friday 26 Aug 2011 19:28:33 sleepless wrote:

> This is a known problem if you use

> cmake

> instead of

> cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config

> --prefix` ..

>

> it is about de kde4 prefix of course

>

> could that be the case here?

 

I don't think so as that is the command I used.

 


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

Re: Compiling digiKam

Mark Fraser
In reply to this post by Rinus

On Friday 26 Aug 2011 19:28:33 sleepless wrote:

> This is a known problem if you use

> cmake

> instead of

> cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config

> --prefix` ..

 

Fixed it, some how I'd added a space between the '-' and DCMAKE... It now installs and I've used checkinstall instead of make install so that I can simply remove the package later.


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

Re: Compiling digiKam

Rinus
Op 27-08-11 12:14, Mark Fraser schreef:

On Friday 26 Aug 2011 19:28:33 sleepless wrote:

> This is a known problem if you use

> cmake

> instead of

> cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config

> --prefix` ..

 

Fixed it, some how I'd added a space between the '-' and DCMAKE... It now installs and I've used checkinstall instead of make install so that I can simply remove the package later.

Yes, that is why the prefix was not applied, so after all that was the case.

Rinus
_______________________________________________ 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