Hi,
Well your a brave soul to try to make opencv build.
As it turns out, I am going to try (yet again) to get opencv to build at the current level in their repo (4.1.2)
To build it, you need opencv and opencv_contrib. The only version which consistently has built is 3.4.1
which also still contains surf and sift. These two functions were deleted over a patent and are used in
findobj. They are currently ifdef'd out to avoid any dispute. A few years ago I sent in a bug report to opencv
to point out a segv in code that is downloaded as a binary library (ipp) where they do not release source.
The bug title was " 'almost' open cv ", but it should be " mostly closed cv ". They changed the bug title.
They actually removed source which we were using. Definitely not open.
Anyway... I digress.
The build for opencv is invoked from the *obj plugin makefiles via the "include $(TOPDIR)/opencv_build"
It will build opencv when the demand occurs, since the default is to not build opencv plugins. They are
expensive and complicated to build. The newer versions require an include path change in opencv_build
which is currently commented out. beware that the build uses the network to download the "binary" closed
source components for the build, and a few other tools that are just not included. If you use:
-DWITH_IPP=OFF
the huge hidden library is factored out, but it runs much more slowly. The ipp library is "intel proprietary poop".
Once the build has operated, you can see the downloaded files in a hidden directory ./.cache
Sooo... ( I did a test build and this did work on my devel system this morning)
To get the build we used this month,
to get the 4.x.x version to work, you need to uncomment the:
#CFLAGS += -I$(opencv_prefix)/include/opencv4
lines (two of them) in the opencv_build file before you run the build.
Before you this, you will first need to create a tarball
with both opencv and opencv_contrib in the build.
By chance, I was actually getting set to try again on opencv 4.x.x since it now is early in the month,
and I have a while to get it to build and to test it. If you are interested in this build, I will post the new
tarball in the download area if I can get usable results. It may take a few hours, but I will let you know
once I have updated and reworked the build.
gg
PS.
I am not sure about the compiler options (or clang).
It is hard enough just to get it to build in the first place.