Created attachment 1045521 [details] use pkg-config to get CFLAGS and LIBS Description of problem: We are trying to recompile packages against opencv 3.0.0. (See #1230078). The gmic is not compiling with following error message: /usr/bin/ld: /tmp/cckWdv8g.o: undefined reference to symbol 'cvWriteFrame' /lib/libopencv_videoio.so.3.0: error adding symbols: DSO missing from command line It seems the LIBS variable contains incorrect values. The attached patch is changing Makefile to get those values from pkg-config. I would like to ask for review of this patch. The previous version contained hard-coded values of CFLAGS and LIBS. I haven't found any justification for this. I guess those settings was given by some ancient version of opencv (the comment in Makefile is speaking about debian?). My suggestion is to drop the hard coded part. I am not sure whether I found correct upstream repository. Here is my pull request: https://github.com/dtschump/gmic/pull/1
The github repo seems to be a mirror of the main repo https://forge.greyc.fr/projects/gmic/repository I usually send patches to the mailing list directly. The change does look reasonable - the makefiles have a lot of old cruft in them, so wouldn't worry about why the current code is the way it is.
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle. Changing version to '23'. (As we did not run this process for some time, it could affect also pre-Fedora 23 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23
gmic built on rawhide with OpenCV 3.1.0 , closing . Thanks.