Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-23-2013, 08:50 AM
|
#1
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
|
digikam not starting after installing kde4.10.5 - unable to compile digikam now.
I had digikam working with the stock install of KDE. I installed 4.10.5 version from alienBob. Now starting digikam gives this error:
Code:
digikam
digikam: error while loading shared libraries: libkipi.so.8: cannot open shared object file: No such file or directory
libkipi installed is
Code:
lspg libkipi
-rw-r--r-- 1 root root 2266 Jul 16 14:49 libkipi-4.10.5-x86_64-1alien
The installed .so file is :
Code:
locate libkipi.so
/usr/lib64/libkipi.so.10.0.0
/usr/lib64/libkipi.so
/usr/lib64/libkipi.so.10
I have removed the kipi-plugins package, ASAIK the plugins are in digikam now.
I have tried to recompile digikam 2.9.0 it fails with the following errors:
Code:
/tmp/SBo/digikam-2.9.0/extra/kipi-plugins/common/libkipiplugins/tools/kprawthumbthread.cpp:112:24: error: ‘loadDcrawPreview’ is not a member of ‘KDcrawIface::KDcraw’
make[2]: *** [extra/kipi-plugins/common/libkipiplugins/CMakeFiles/kipiplugins.dir/tools/kprawthumbthread.cpp.o] Error 1
make[2]: Leaving directory `/tmp/SBo/digikam-2.9.0/build'
make[1]: *** [extra/kipi-plugins/common/libkipiplugins/CMakeFiles/kipiplugins.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/digikam-2.9.0/build'
make: *** [all] Error 2
Not sure what to try next.
Is there some change I need to make to the slackbuild?
I prefer not to go to current, this is a 14 64 bit system with kde 4.10.5.
One option, would be to go back to stock KDE for 14, not sure how to do that.
Any advice?
|
|
|
07-23-2013, 08:56 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
you should upgrade to digiKam 3.2.0 which is in sync with KDE 4.10.5
another option is to rebuild digiKam since the libraries are now upgraded to 4.10.5 (libkipi and libkcdraw)
|
|
|
07-23-2013, 09:03 AM
|
#3
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
Quote:
you should upgrade to digiKam 3.2.0 which is in sync with KDE 4.10.5
|
Where do I get 3.2.0 from? Slackbuilds shows only 2.9.0.
Quote:
another option is to rebuild digiKam since the libraries are now upgraded to 4.10.5 (libkipi and libkcdraw)
|
I thought that was what I was trying to do, in my first post, last error.
I'm more than happy to try 3.2.0 if I know where to get the slackbuild and source.
|
|
|
07-23-2013, 09:28 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
|
|
1 members found this post helpful.
|
07-23-2013, 12:08 PM
|
#5
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
Got your slackbuild, and the 3.2.0 source. Ran the slackbuild, and it failed with this error:
Quote:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: warning: libavutil.so.51, 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 `av_freep@LIBAVUTIL_51'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `av_sub_q@LIBAVUTIL_51'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `av_log_set_level@LIBAVUTIL_51'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `av_rescale_q@LIBAVUTIL_51'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `av_free@LIBAVUTIL_51'
/usr/lib64/libopencv_highgui.so.2.4: undefined reference to `av_malloc@LIBAVUTIL_51'
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
|
The problem seems to be libavutil.so.51 missing. I have .52 installed.
Quote:
locate libavutil.so.*
/usr/lib64/libavutil.so.52
/usr/lib64/libavutil.so.52.18.100
|
I have checked the 'requirements', here is what I have.
Quote:
ls /var/log/packages | grep ffmpeg
-rw-r--r-- 1 root root 11157 Jul 23 11:09 ffmpeg-1.2-x86_64-1alien
root@duelie:/home/cliff/src/digikam# ls /var/log/packages | grep qjson
-rw-r--r-- 1 root root 1562 Jul 16 14:40 qjson-0.8.1-x86_64-1alien
root@duelie:/home/cliff/src/digikam# ls /var/log/packages | grep opencv
-rw-r--r-- 1 root root 10272 Jun 17 15:18 opencv-2.4.5-x86_64-1_SBo
root@duelie:/home/cliff/src/digikam# ls /var/log/packages | grep liblqr
-rw-r--r-- 1 root root 5356 May 21 2011 liblqr-0.4.1-x86_64-1_SBo
|
I see you used ffmpeg 1.1.2, now aliens package is 1.2. Not sure if this is part of the problem or not.
Last edited by camorri; 07-23-2013 at 02:06 PM.
|
|
|
07-23-2013, 06:00 PM
|
#6
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
i'm also using ffmpeg 1.2. The README wasn't updated since last time
It seems your OpenCV needs to be rebuild against newer ffmpeg 
it still links to the old ffmpeg version
|
|
|
07-23-2013, 06:17 PM
|
#7
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
O.K. I'll try rebuilding OpenCV first, then try to build digikam. I'll report back, probably tomorrow.
Thank-you for your help.
|
|
|
07-23-2013, 07:04 PM
|
#8
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
you might want to upgrade to OpenCV 2.4.6.1 as well
it's also available on my SlackHacks repository
|
|
|
07-24-2013, 08:45 AM
|
#9
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
I have tried to build opencv 2.4.6.1 with the fsh.patch on slackhacks. I get the following error:
Quote:
patching file cmake/OpenCVGenPkgconfig.cmake
Hunk #1 FAILED at 47.
1 out of 1 hunk FAILED -- saving rejects to file cmake/OpenCVGenPkgconfig.cmake.rej
patching file CMakeLists.txt
Hunk #1 FAILED at 221.
Hunk #2 FAILED at 237.
2 out of 2 hunks FAILED -- saving rejects to file CMakeLists.txt.rej
patching file data/CMakeLists.txt
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file data/CMakeLists.txt.rej
patching file samples/c/CMakeLists.txt
Hunk #1 FAILED at 54.
1 out of 1 hunk FAILED -- saving rejects to file samples/c/CMakeLists.txt.rej
patching file samples/cpp/CMakeLists.txt
Hunk #1 FAILED at 64.
1 out of 1 hunk FAILED -- saving rejects to file samples/cpp/CMakeLists.txt.rej
patching file samples/gpu/CMakeLists.txt
Hunk #1 FAILED at 64.
1 out of 1 hunk FAILED -- saving rejects to file samples/gpu/CMakeLists.txt.rej
patching file samples/gpu/performance/CMakeLists.txt
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file samples/gpu/performance/CMakeLists.txt.rej
|
Looks like the patch is failing. Do I need it? If yes, is there a way to fix the patch?
For clarity, I copied the test lines of the patch, and pasted them into a file I names fsh.patch using nano. I have compared the file I have, with what I see on slackhacks, and they look the same.
I downloaded opencv-2.4.6.1.tar.gz from sourceforge. I noticed a line . Any chance the patch is now part of the download?
|
|
|
07-24-2013, 09:35 AM
|
#10
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
Here's on my machine:
Code:
opencv-2.4.6.1/samples/winrt/ImageManipulations/sample-utils/SampleTemplateStyles.xaml
patching file cmake/OpenCVGenPkgconfig.cmake
patching file CMakeLists.txt
Hunk #1 succeeded at 239 (offset 18 lines).
Hunk #2 succeeded at 255 (offset 18 lines).
patching file data/CMakeLists.txt
patching file samples/c/CMakeLists.txt
patching file samples/cpp/CMakeLists.txt
Hunk #1 succeeded at 83 (offset 19 lines).
patching file samples/gpu/CMakeLists.txt
Hunk #1 succeeded at 71 (offset 7 lines).
patching file samples/gpu/performance/CMakeLists.txt
Hunk #1 succeeded at 29 (offset 8 lines).
|
|
|
07-24-2013, 11:03 AM
|
#11
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
I re-crested the patch file, this time it is one byte less than the first time I created it. I re-downloaded the .tar.gz file, no change there. I re-ran the slackbuild, it still fails on the patch.
Here are the files I have. Could you tell me if the sizes are the same?
Quote:
drwxr-xr-x 2 cliff users 4096 Jul 24 11:59 ./
drwxr-xr-x 96 cliff users 4096 Jul 24 09:18 ../
-rw-r--r-- 1 cliff users 241 Jul 24 09:19 README
-rw-r--r-- 1 root root 5056 Jul 24 11:53 fsh.patch
-rw-r--r-- 1 cliff users 80762052 Jul 24 11:59 opencv-2.4.6.1.tar.gz
-rwxr-xr-x 1 cliff users 2177 Jul 24 09:21 opencv.Slackbuild*
-rw-r--r-- 1 cliff users 708 Jul 24 09:23 opencv.desc
-rw-r--r-- 1 cliff users 252 Jul 24 09:22 opencv.info
|
|
|
|
07-24-2013, 11:34 AM
|
#12
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
Code:
-rw-r--r-- 1 willysr users 241 Nov 26 2012 README
-rw-r--r-- 1 willysr users 5175 Nov 26 2012 fsh.patch
-rwxr-xr-x 1 willysr users 2178 Jul 13 07:58 opencv.SlackBuild
-rw-r--r-- 1 willysr users 251 Jul 13 07:58 opencv.info
-rw-r--r-- 1 willysr users 711 Nov 26 2012 slack-desc
|
|
1 members found this post helpful.
|
07-24-2013, 12:43 PM
|
#13
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
Your patch file is 100 bytes larger than the one I made by coping the file from slackhacks. There must be some differences. Could you post your patch file here? Then I could give that a try. Many thanks.
|
|
|
07-24-2013, 07:31 PM
|
#14
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,890
|
Code:
diff -Nbaur OpenCV-2.4.3.orig/cmake/OpenCVGenPkgconfig.cmake OpenCV-2.4.3/cmake/OpenCVGenPkgconfig.cmake
--- OpenCV-2.4.3.orig/cmake/OpenCVGenPkgconfig.cmake 2012-11-05 18:42:32.460958392 +0000
+++ OpenCV-2.4.3/cmake/OpenCVGenPkgconfig.cmake 2012-11-05 18:52:43.766689315 +0000
@@ -47,7 +47,7 @@
#need better solution....
if(libpath MATCHES "3rdparty")
- set(installDir "share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH}")
+ set(installDir "share/opencv/3rdparty/${OPENCV_LIB_INSTALL_PATH}")
else()
set(installDir "${OPENCV_LIB_INSTALL_PATH}")
endif()
diff -Nbaur OpenCV-2.4.3.orig/CMakeLists.txt OpenCV-2.4.3/CMakeLists.txt
--- OpenCV-2.4.3.orig/CMakeLists.txt 2012-11-05 18:42:32.700956757 +0000
+++ OpenCV-2.4.3/CMakeLists.txt 2012-11-05 18:55:42.358787848 +0000
@@ -221,9 +221,9 @@
if(ANDROID OR WIN32)
set(OPENCV_DOC_INSTALL_PATH doc)
elseif(INSTALL_TO_MANGLED_PATHS)
- set(OPENCV_DOC_INSTALL_PATH share/OpenCV-${OPENCV_VERSION}/doc)
+ set(OPENCV_DOC_INSTALL_PATH share/doc/opencv-${OPENCV_VERSION})
else()
- set(OPENCV_DOC_INSTALL_PATH share/OpenCV/doc)
+ set(OPENCV_DOC_INSTALL_PATH share/doc/opencv)
endif()
if(ANDROID)
@@ -237,14 +237,14 @@
set(LIBRARY_OUTPUT_PATH "${OpenCV_BINARY_DIR}/lib")
set(3P_LIBRARY_OUTPUT_PATH "${OpenCV_BINARY_DIR}/3rdparty/lib${LIB_SUFFIX}")
set(OPENCV_LIB_INSTALL_PATH lib${LIB_SUFFIX})
- set(OPENCV_3P_LIB_INSTALL_PATH share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH})
+ set(OPENCV_3P_LIB_INSTALL_PATH share/opencv/3rdparty/${OPENCV_LIB_INSTALL_PATH})
set(OPENCV_INCLUDE_INSTALL_PATH include)
math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
if(LIB_SUFFIX AND NOT SIZEOF_VOID_P_BITS EQUAL LIB_SUFFIX)
set(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/cmake/opencv)
else()
- set(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
+ set(OPENCV_CONFIG_INSTALL_PATH share/opencv)
endif()
endif()
diff -Nbaur OpenCV-2.4.3.orig/data/CMakeLists.txt OpenCV-2.4.3/data/CMakeLists.txt
--- OpenCV-2.4.3.orig/data/CMakeLists.txt 2012-11-05 18:42:32.460958392 +0000
+++ OpenCV-2.4.3/data/CMakeLists.txt 2012-11-05 18:52:43.816688977 +0000
@@ -5,6 +5,6 @@
install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT main)
install(FILES ${LBP_CASCADES} DESTINATION sdk/etc/lbpcascades COMPONENT main)
elseif(NOT WIN32)
- install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT main)
- install(FILES ${LBP_CASCADES} DESTINATION share/OpenCV/lbpcascades COMPONENT main)
+ install(FILES ${HAAR_CASCADES} DESTINATION share/opencv/haarcascades COMPONENT main)
+ install(FILES ${LBP_CASCADES} DESTINATION share/opencv/lbpcascades COMPONENT main)
endif()
diff -Nbaur OpenCV-2.4.3.orig/samples/c/CMakeLists.txt OpenCV-2.4.3/samples/c/CMakeLists.txt
--- OpenCV-2.4.3.orig/samples/c/CMakeLists.txt 2012-11-05 18:42:32.697623446 +0000
+++ OpenCV-2.4.3/samples/c/CMakeLists.txt 2012-11-05 18:52:43.826688906 +0000
@@ -54,7 +54,7 @@
if (INSTALL_C_EXAMPLES AND NOT WIN32)
file(GLOB C_SAMPLES *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd )
install(FILES ${C_SAMPLES}
- DESTINATION share/OpenCV/samples/c
+ DESTINATION share/opencv/samples/c
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif ()
diff -Nbaur OpenCV-2.4.3.orig/samples/cpp/CMakeLists.txt OpenCV-2.4.3/samples/cpp/CMakeLists.txt
--- OpenCV-2.4.3.orig/samples/cpp/CMakeLists.txt 2012-11-05 18:42:32.677623583 +0000
+++ OpenCV-2.4.3/samples/cpp/CMakeLists.txt 2012-11-05 18:52:43.823355598 +0000
@@ -64,7 +64,7 @@
if (INSTALL_C_EXAMPLES AND NOT WIN32)
file(GLOB C_SAMPLES *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd )
install(FILES ${C_SAMPLES}
- DESTINATION share/OpenCV/samples/cpp
+ DESTINATION share/opencv/samples/cpp
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif()
diff -Nbaur OpenCV-2.4.3.orig/samples/gpu/CMakeLists.txt OpenCV-2.4.3/samples/gpu/CMakeLists.txt
--- OpenCV-2.4.3.orig/samples/gpu/CMakeLists.txt 2012-11-05 18:42:32.670956962 +0000
+++ OpenCV-2.4.3/samples/gpu/CMakeLists.txt 2012-11-05 18:52:43.820022288 +0000
@@ -64,7 +64,7 @@
if (INSTALL_C_EXAMPLES AND NOT WIN32)
file(GLOB install_list *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd )
install(FILES ${install_list}
- DESTINATION share/OpenCV/samples/${project}
+ DESTINATION share/opencv/samples/${project}
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif()
diff -Nbaur OpenCV-2.4.3.orig/samples/gpu/performance/CMakeLists.txt OpenCV-2.4.3/samples/gpu/performance/CMakeLists.txt
--- OpenCV-2.4.3.orig/samples/gpu/performance/CMakeLists.txt 2012-11-05 18:42:32.674290272 +0000
+++ OpenCV-2.4.3/samples/gpu/performance/CMakeLists.txt 2012-11-05 18:52:43.823355598 +0000
@@ -21,6 +21,6 @@
if(INSTALL_C_EXAMPLES AND NOT WIN32)
file(GLOB GPU_FILES performance/*.cpp performance/*.h)
install(FILES ${GPU_FILES}
- DESTINATION share/OpenCV/samples/gpu/performance
+ DESTINATION share/opencv/samples/gpu/performance
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif()
|
|
1 members found this post helpful.
|
07-25-2013, 09:59 AM
|
#15
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,404
Original Poster
|
I can not get the patch file to work. Here are the errors I get.
Code:
Hunk #1 succeeded at 239 (offset 18 lines).
Hunk #2 FAILED at 237.
1 out of 2 hunks FAILED -- saving rejects to file CMakeLists.txt.rej
patching file data/CMakeLists.txt
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file data/CMakeLists.txt.rej
patching file samples/c/CMakeLists.txt
patching file samples/cpp/CMakeLists.txt
Hunk #1 succeeded at 83 (offset 19 lines).
patching file samples/gpu/CMakeLists.txt
Hunk #1 succeeded at 71 (offset 7 lines).
patching file samples/gpu/performance/CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 29 with fuzz 2 (offset 8 lines).
I had some problems copying the patch from the web page to a the .patch file. Line wraps etc. I have been through the patch file, several times and can not see any differences between what you posted, and the file I have. It fails.
There has to be differences in either the source file; or the patch file. Don't know which is in error.
Your thoughts?
|
|
|
All times are GMT -5. The time now is 03:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|