kyamagu / mexopencv

Collection and a development kit of matlab mex functions for OpenCV library
http://kyamagu.github.io/mexopencv
Other
659 stars 318 forks source link

v3.2.0 and xfeatures2d #458

Closed SanZamoyski closed 4 years ago

SanZamoyski commented 4 years ago

Long story short:

/media/Data/Src/cv/mexopencv-3.2.0$ make WITH_OCTAVE=true WITH_CONTRIB=true all contrib
make: Nie ma nic do zrobienia w 'all'.
/usr/bin/mkoctfile --mex -O2 -s -fpermissive -Iinclude -Iopencv_contrib/include -I/usr/include/opencv  -o opencv_contrib/+cv/private/LATCH_ opencv_contrib/src/+cv/private/LATCH_.cpp -Llib -lMxArray -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_datasets -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_line_descriptor -lopencv_optflow -lopencv_video -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_rgbd -lopencv_viz -lopencv_surface_matching -lopencv_text -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core    && \
        rm -f ./LATCH_.o
opencv_contrib/src/+cv/private/LATCH_.cpp:10:10: fatal error: opencv2/xfeatures2d.hpp: Nie ma takiego pliku ani katalogu
 #include "opencv2/xfeatures2d.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:168: opencv_contrib/+cv/private/LATCH_.mex] Błąd 1

I am compiling with Ubuntu packages (v3.2), thats why old version. Also while trying to workaround I have installed sudo apt install libopencv*. So I have no idea what can I do next...

(also tried to compile OpenCV 3.4 and mexopencv for it, but failed somewhere so decided to make it easy way. No luck also...

edit There is bug simmilar, but is there ny way to avoid compiling? (exclude or something) https://github.com/kyamagu/mexopencv/issues/183

SanZamoyski commented 4 years ago

Compiled OpenCV.