Bug 237933 - graphics/opencv-core: includes opencv_modules.hpp from the full opencv package
Summary: graphics/opencv-core: includes opencv_modules.hpp from the full opencv package
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-17 01:33 UTC by Yakov Galka
Modified: 2021-01-30 19:20 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 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 freebsd_triage 2021-01-30 19:20:32 UTC
Overcome by https://svnweb.freebsd.org/ports?view=revision&revision=563430