LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   digikam fails to compile (http://www.linuxquestions.org/questions/slackware-14/digikam-fails-to-compile-4175455794/)

Bazzaah 03-27-2013 10:07 AM

digikam fails to compile
 
Following recent updates, it looked like I need to update Digikam since my existing install won't start because it can't find libmarblewidget. A quick Google suggests that it needs redoing following updates.

When I run digikam's sanity test, I get the message;

Code:

Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.49: cannot open shared object file: No such file or directory)"
Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.49: cannot open shared object file: No such file or directory)"
Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.49: cannot open shared object file: No such file or directory)"
CMake Error: The source directory "/home/slack/Downloads/digikam-3.0.0" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

The Slackbuild fails as well.

I've built it a couple of times in the past and it's always been fine.

I know there was a recent QT update which might have caused that error to appear but my system's (64 current) up to date.

Any ideas?

willysr 03-27-2013 10:49 AM

have you tried to upgrade to 3.1.0?
i have 3.1.0 running fine even on latest update on Current today

Bazzaah 03-27-2013 10:59 AM

Yes I have. It's more successful with bootstrap.linux (i.e. more output) but still fails with the same error.

EDIT just ran compilation of 3.10 again and got this fail

Code:

/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: warning: libImath.so.6, needed by /usr/lib64/libopencv_highgui.so.2.4, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: warning: libIlmImf.so.6, needed by /usr/lib64/libopencv_highgui.so.2.4, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: warning: libIex.so.6, needed by /usr/lib64/libopencv_highgui.so.2.4, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: warning: libHalf.so.6, needed by /usr/lib64/libopencv_highgui.so.2.4, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: warning: libIlmThread.so.6, needed by /usr/lib64/libopencv_highgui.so.2.4, not found (try using -rpath or -rpath-link)
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Header::channels()'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Chromaticities::Chromaticities(Imath::Vec2<float> const&, Imath::Vec2<float> const&, Imath::Vec2<float> const&, Imath::Vec2<float> const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Header::~Header()'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::OutputFile::OutputFile(char const*, Imf::Header const&, int)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::hasChromaticities(Imf::Header const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::ChannelList::insert(char const*, Imf::Channel const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Header::Header(int, int, float, Imath::Vec2<float> const&, float, Imf::LineOrder, Imf::Compression)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::globalThreadCount()'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::OutputFile::writePixels(int)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::chromaticities(Imf::Header const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::OutputFile::setFrameBuffer(Imf::FrameBuffer const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::InputFile::header() const'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::OutputFile::~OutputFile()'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::InputFile::InputFile(char const*, int)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::InputFile::setFrameBuffer(Imf::FrameBuffer const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `half::_eLut'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int, int, bool)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Header::dataWindow() const'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Slice::Slice(Imf::PixelType, char*, unsigned long, unsigned long, int, int, double, bool, bool)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::ChannelList::findChannel(char const*) const'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::InputFile::readPixels(int, int)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::Header::channels() const'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `Imf::FrameBuffer::insert(char const*, Imf::Slice const&)'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `half::convert(int)'
collect2: error: ld returned 1 exit status
make[2]: *** [extra/libkface/test/detect] Error 1
make[1]: *** [extra/libkface/test/CMakeFiles/detect.dir/all] Error 2
make: *** [all] Error 2


willysr 03-27-2013 11:08 AM

Do you mind test using my SlackBuilds ?
please make sure you have all the deps installed

willysr 03-27-2013 11:12 AM

you have to recompile OpenCV due to changes in -Current then digiKam will work again :)

kr4ey 03-27-2013 04:55 PM

Running digiKam 3.10 on Slackware stable with no problem. Used the slackBuild at SlackBuilds.org

gargamel 03-27-2013 05:09 PM

Yep, I have digikam 3.1.0 running here on Slackware64-current with all updates up to today, too, and can only recommend all digikam users to upgrade to 3.1.0! Although rebuilding OpenCV took ages, I have already processed 250+ RAW images with the showfoto application, and didn't see any of the annoyances of all previous versions, such as the application not responding for several minutes, just getting slow, or occasionally crashing.

Thanks for making your SlackBuild script available, Willy!

gargamel

Bazzaah 03-27-2013 06:00 PM

Thanks chaps.

Bazzaah 03-28-2013 08:45 AM

EDIT For some reason, it's now compiled without difficulty and works fine - thanks for the help.

cwizardone 03-28-2013 10:11 PM

I've tried several times to compile OpenCV and it fails each and every time. SBOpkg can't find the source code and returns the 404 error. I found it at the OpenCV site and it took several tries and a long session to finally download the file. It is verison 2.4.4a.

When I run the SlackBuild script it returns the error,

./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4a: No such file or directory

If I change the version number in the SlackBuild script to 2.4.4a it returns the error:

./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4: No such file or directory

Can't win.
:)

willysr 03-28-2013 10:18 PM

use my SlackBuilds :)

Daedra 03-28-2013 11:21 PM

Quote:

Originally Posted by cwizardone (Post 4920864)
I've tried several times to compile OpenCV and it fails each and every time. SBOpkg can't find the source code and returns the 404 error. I found it at the OpenCV site and it took several tries and a long session to finally download the file. It is verison 2.4.4a.

When I run the SlackBuild script it returns the error,

./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4a: No such file or directory

If I change the version number in the SlackBuild script to 2.4.4a it returns the error:

./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4: No such file or directory

Can't win.
:)

I maintain the OpenCV slackbuild @ www.slackbuids.org. Thanks for the heads up, Ill look into the problem.

Bazzaah 03-29-2013 01:59 AM

Quote:

Originally Posted by cwizardone (Post 4920864)
I've tried several times to compile OpenCV and it fails each and every time. SBOpkg can't find the source code and returns the 404 error. I found it at the OpenCV site and it took several tries and a long session to finally download the file. It is verison 2.4.4a.

When I run the SlackBuild script it returns the error,

./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4a: No such file or directory

If I change the version number in the SlackBuild script to 2.4.4a it returns the error:

./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4: No such file or directory

Can't win.
:)

I compiled OpenCV from source and it worked fine, so you could always give that a go.

willysr 03-29-2013 02:43 AM

Its eaasier to maintain if you want to remove or change the prefix in the future

cwizardone 03-29-2013 09:35 AM

Quote:

Originally Posted by willysr (Post 4920865)
use my SlackBuilds :)

Thanks, willysr.
Your script and patch worked like a charm.
:hattip:


All times are GMT -5. The time now is 06:24 AM.