Request for a FreeBSD Qt5 build job on build.kde.org
Open, Needs TriagePublic

Description

digiKam do not have a CI build for FreeBSD operating system, as Krita project.

Thanks in advance

Gilles Caulier

cgilles created this task.Nov 19 2019, 6:50 AM
Restricted Application added a subscriber: sysadmin. · View Herald TranscriptNov 19 2019, 7:09 AM
cgilles reopened this task as Open.

FreeBSD build fail due to missing OpenCV dependency...

Gilles Caulier

bcooksley added subscribers: tcberner, adridg.

Tobias and Adriaan, could we get OpenCV added to the FreeBSD images please?

Sure, I'll do that later today.

@cgilles https://build.kde.org/job/Extragear/job/digikam/job/kf5-qt5%20FreeBSDQt5.13/8/console opencv has been installed -- failures are now the missing link directories (basically -L/usr/local/lib)

yes, right :

03:32:36 [ 42%] Linking CXX shared library libdigikamcore.so
03:32:36 ld: error: unable to find library -llqr-1
03:32:36 ld: error: unable to find library -lglib-2.0
03:32:36 ld: error: unable to find library -lintl
03:32:36 ld: error: unable to find library -llqr-1
03:32:36 ld: error: unable to find library -lglib-2.0
03:32:36 ld: error: unable to find library -lintl
03:32:36 c++: error: linker command failed with exit code 1 (use -v to see invocation)
03:32:36 gmake[2]: * [core/app/CMakeFiles/digikamcore.dir/build.make:1279: core/app/libdigikamcore.so.7.0.0] Error 1
03:32:36 gmake[1]:
* [CMakeFiles/Makefile2:6377: core/app/CMakeFiles/digikamcore.dir/all] Error 2
03:32:36 gmake[1]: *** Waiting for unfinished jobs....

Probably cmake find script do not populate right path to shared libraries. I suspect a problem in FindLqr cmake script here :

https://invent.kde.org/kde/digikam/blob/master/core/cmake/modules/FindLqr-1.cmake

Gilles Caulier

bcooksley removed subscribers: sysadmin, bcooksley.

As this is all sorted out now from a CI Infrastructure point of view, going to unsubscribe myself and Sysadmin.
Let us know if anything further needs to be sorted out.

Tobias,

Your lqr-1 patch is applied while digiKam is compiled for freebsd ?

Gilles Caulier

Yes, all the patch-* in the files direcotry in the above link get applied before building.

What's about if you disable liblqr-1 detection under FREEBSD. In fact it's only used with one plugin (liquid-rescale) which represent 0.1 % of code.

Just to see if all the rest compile fine.
Gilles Caulier

I think it would be preferable if the cmake were fixed to properly respect the values read via the find package call. It's an easy fix after all.

Mfg Tobias

yes, sure. Fell free to patch cmake file in digiKam repository.

Gilles Caulier

The linking problem is the same under MacOS. All is installed into /opt/digikam, and when lqr-1 dependency is installed digiKam do not link as under FreeBSD
Gilles Caulier