Bug 237933

Summary: graphics/opencv-core: includes opencv_modules.hpp from the full opencv package
Product: Ports & Packages Reporter: Yakov Galka <ybungalobill>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: hiroo.ono+freebsd, pi, rhurlin, swills, tcberner
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237847

Description Yakov Galka 2019-05-17 01:33:01 UTC
I have opencv-core installed without the full opencv package. Unfortunately when I include 

    #include <opencv2/imgproc.hpp>

It fails:

    In file included from /usr/local/include/opencv2/imgproc.hpp:46:
    In file included from /usr/local/include/opencv2/core.hpp:54:
    /usr/local/include/opencv2/core/base.hpp:52:10: fatal error: 'opencv2/opencv_modules.hpp' file not found
    #include "opencv2/opencv_modules.hpp"
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Shouldn't it be possible to use opencv-core without opencv?
Comment 1 Steve Wills freebsd_committer 2019-05-17 02:56:57 UTC
This may be my fault from ports r469420. There are updates in progress in bug 234147 and bug 237847 so those may fix it, I'll take a look.
Comment 2 Hiroo Ono 2019-05-23 08:00:21 UTC
I did not realize this problem when making the patch in in bug 234147 and bug 237847 .
I will rethink which file to leave in opencv-core.
At a glance, opencv2/opencv_modules.hpp retains information of which modules are built. I do not know if it is OK to have HAVE_OPENCV_* line for modules in opencv, if it is moved to opencv-core.
Comment 3 Hiroo Ono 2019-05-23 08:16:32 UTC
(In reply to Hiroo Ono from comment #2)
bug #237135 and bug #237847 I meant.
Comment 4 Tobias C. Berner freebsd_committer 2021-01-30 19:20:32 UTC
Overcome by https://svnweb.freebsd.org/ports?view=revision&revision=563430