[sbopkg-users] opencv 3.0.0 compile error

Willy Sudiarto Raharjo willysr at sbopkg.org
Sat Nov 14 16:21:45 UTC 2015


> 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

Have you tried to rebuild your ffmpeg?

and secondly why would you built newer gnutls?
That will complicate things as we can't reproduce your environment


-- 
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/20151114/db94cf55/attachment.asc>


More information about the sbopkg-users mailing list