Bug 1238758 - /usr/bin/ld: /tmp/ccSDJuLu.o: undefined reference to symbol 'cvSaveImage' with OpenCV 3.0.0
Summary: /usr/bin/ld: /tmp/ccSDJuLu.o: undefined reference to symbol 'cvSaveImage' wit...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: simarrange
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: opencv3
TreeView+ depends on / blocked
 
Reported: 2015-07-02 14:37 UTC by Jozef Mlich
Modified: 2016-05-05 12:08 UTC (History)
4 users (show)

Fixed In Version: simarrange-0.0-9.20140729git9500190.fc25
Clone Of:
Environment:
Last Closed: 2016-05-05 12:08:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
use of pkg-config to get opencv CFLAGS and LIBS (1.68 KB, application/mbox)
2015-07-02 14:37 UTC, Jozef Mlich
no flags Details

Description Jozef Mlich 2015-07-02 14:37:18 UTC
Created attachment 1045529 [details]
use of pkg-config to get opencv CFLAGS and LIBS

Description of problem:
We are trying to compile dependent packages with OpenCV 3.0.0 (See #1230078). The compilation of simarrange failed with following error message:

/usr/bin/ld: /tmp/ccSDJuLu.o: undefined reference to symbol 'cvSaveImage'
/usr/lib64/libopencv_imgcodecs.so.3.0: error adding symbols: DSO missing from command line

In attachment is patch which should fix this issue. I would like to ask you for review of that patch.

I have created an COPR repository for testing of the package:
https://copr.fedoraproject.org/coprs/jmlich/opencv3/build/102202/

It seems, fedora is using downstream script to compile this package. I have asked upstream to modify their build scripts accordingly. 
https://github.com/kliment/simarrange/issues/9

Comment 1 Miro Hrončok 2015-07-02 16:32:27 UTC
Thanks for the patch. I'll wait a bit for the upstream to accept your changes (as it seems likely) and use that instead.

Comment 2 Miro Hrončok 2015-07-07 14:06:49 UTC
OK, applying the patch. Will take changes from upstream later, when available.

Comment 3 Sergio Basto 2016-05-04 16:21:35 UTC
Hi, Could you, please, rebuilt it for rawhide and opencv-3.1 seems that build fine in rawhide [1] 

Thanks. 
[1] 
https://copr.fedorainfracloud.org/coprs/sergiomb/opencv/build/183110/

Comment 4 Miro Hrončok 2016-05-05 11:50:10 UTC
Well, is this related to the original bug?


Note You need to log in before you can comment on or make changes to this bug.