Bug 1238758

Summary: /usr/bin/ld: /tmp/ccSDJuLu.o: undefined reference to symbol 'cvSaveImage' with OpenCV 3.0.0
Product: [Fedora] Fedora Reporter: Jozef Mlich <jmlich>
Component: simarrangeAssignee: Miro Hrončok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, mhroncok, sergio, vjancik
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: simarrange-0.0-9.20140729git9500190.fc25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-05 12:08:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1230078    
Attachments:
Description Flags
use of pkg-config to get opencv CFLAGS and LIBS none

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?