[Bug 210505] graphics/opencv: Update to 3.1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 8 18:57:04 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210505

--- Comment #42 from otacilio.neto at bsd.com.br ---
Dears

I have installed math/ceres-solve in my machine. When ceres-solver is
installed, Opencv tries compile SFM module. I'm trying compile OpenCV with sfm
module enabled, but I'm stucked at this point. First, I have add this line to
Makefile because sfm module needs C++11 explicitly.

CXXFLAGS+=        -std=c++11

Then, I have changed
/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/highgui/src/window_gtk.cpp
at 488 replacing a NULL to 0


But, compiles fail in this point, I think that it is only a including missing,
but I'm not a CMake guy and I will appreciate if someone can give me a hint
about how fix it.

Building CXX object
modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.o
cd /usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect &&
/usr/bin/c++   -DCVAPI_EXPORTS -D__OPENCV_BUILD=1
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0 -isystem
/usr/local/include/eigen3 -isystem /usr/local/include/CL
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect/include
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect/src
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/core/include
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/imgproc/include
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/ml/include
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/imgcodecs/include
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/videoio/include
-I/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/highgui/include -O2
-pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing 
-std=c++11 -isystem /usr/local/include   -fsigned-char -W -Werror=return-type
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo
-Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args
-fdiagnostics-show-option -Wno-long-long -pthread -Qunused-arguments
-fomit-frame-pointer -msse -msse2 -mavx -ffunction-sections -fvisibility=hidden
-fvisibility-inlines-hidden -O2 -pipe -fstack-protector -isystem
/usr/local/include -fno-strict-aliasing  -std=c++11 -isystem /usr/local/include
 -DNDEBUG -fPIC -o
CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.o -c
/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect/src/detection_based_tracker.cpp
/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect/src/detection_based_tracker.cpp:124:11:
error: no member named 'DetectionBasedTracker' in namespace 'cv'
class cv::DetectionBasedTracker::SeparateDetectionWork
      ~~~~^
/usr/ports/graphics/opencv3/work/opencv-3.1.0/modules/objdetect/src/detection_based_tracker.cpp:192:5:
error: no member named 'DetectionBasedTracker' in namespace 'cv'
cv::DetectionBasedTracker::SeparateDetectionWork::SeparateDetectionWork(DetectionBasedTracker&
_detectionBasedTracker, cv::Ptr<DetectionBasedTracker::IDetector> _detector)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list