[sbopkg-users] opencv 3.0.0 compile error

Willy Sudiarto Raharjo willysr at sbopkg.org
Wed Jan 27 14:47:15 UTC 2016


On 11/14/2015 12:41 PM, Subash wrote:
> hi,
> 
> my name is subash, from chennai india. been on slackware since about
> 2003, on slackware-current now.
> 
> just recently came across sbopkg and been using it for the last week or
> so. looks like a nice way to browse and install libraries/applications.
> thanks.
> 
> i had opencv 2.4.x on my system but since the latest digikam needed
> opencv-3.0.0, was trying to compile that using sbopkg and i run into
> the following error:
> /usr/lib/gcc/i586-slackware-linux/4.9.3/../../../../i586-slackware-linux/bin/ld:
> warning: libhogweed.so.2, needed by /usr/lib/libavformat.so.56, not found (try using -rpath or -rpath-link)
> /usr/lib/gcc/i586-slackware-linux/4.9.3/../../../../i586-slackware-linux/bin/ld:
> warning: libgnutls.so.28, needed by /usr/lib/libavformat.so.56, not found (try using -rpath or -rpath-link)
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_server_name_set at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_transport_set_ptr at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_record_recv at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_deinit at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_set_x509_system_trust at GNUTLS_3_0_0'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_global_deinit at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_handshake at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_set_x509_key_file at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_set_x509_trust_file at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_type_get at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_set_verify_flags at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_allocate_credentials at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_x509_crt_check_hostname at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_priority_set_direct at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_init at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_get_peers at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_record_send at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_bye at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_record_get_direction at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_free_credentials at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_strerror at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_credentials_set at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_x509_crt_deinit at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_certificate_verify_peers2 at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_x509_crt_init at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_global_init at GNUTLS_1_4'
> /usr/lib/libavformat.so.56: undefined reference to
> `gnutls_x509_crt_import at GNUTLS_1_4'
> collect2: error: ld returned 1 exit status
> modules/core/CMakeFiles/opencv_perf_core.dir/build.make:806: recipe for
> target 'bin/opencv_perf_core' failed
> make[2]: *** [bin/opencv_perf_core] Error 1
> make[2]: Leaving directory '/tmp/SBo/opencv-3.0.0/build'
> CMakeFiles/Makefile2:1873: recipe for target
> 'modules/core/CMakeFiles/opencv_perf_core.dir/all' failed
> make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
> make[1]: Leaving directory '/tmp/SBo/opencv-3.0.0/build'
> Makefile:149: recipe for target 'all' failed
> make: *** [all] Error 2
> 
> i do have the latest gnutls installed (compiled from source). any
> pointers will be helpful. thanks, subash

Hi Subash

Your posting was in moderator queue for so long until i realize there
was a pending post. Sorry for the long wait.

Since opencv is now upgraded to 3.0.0, digiKam is now patched to use
OpenCV 3.0.0 as well and this should be fixed in master branch.


-- 
Willy Sudiarto Raharjo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://sbopkg.org/pipermail/sbopkg-users/attachments/20160127/be4c3318/attachment.asc>


More information about the sbopkg-users mailing list