Improving the project with opencv_contrib#6
Conversation
- using webarkit opencv and opencv_contrib forks as submodules
- with xfeatures2d from opencv_contrib
|
Now the script sohould be capable to build the emscripten and standard (linux) static libs. I will try to set up a github action to test the script and eventually make an automatic release, so everyone can download the zipped static libs. |
|
The build script fails creating the opencv_java shared lib, on my local machine doesn't happens ( maybe because i have not the required libs for java?), so i will force to disable the java module and rerun the build script. |
|
Ok now all the libs are built but the action script fails with this message: I will fix soon. |
|
Now the script is succesful, but i discovered that the xfeatures2d module is not built. |
| OPENCV_EXTRA_MODULES_EXCLUDE="-DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_fuzzy=OFF -DBUILD_opencv_hfs=OFF -DBUILD_opencv_img_hash=OFF -DBUILD_opencv_intensity_transform=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_optflow=OFF -DBUILD_opencv_phase_unwrapping=OFF -DBUILD_opencv_plot=OFF -DBUILD_opencv_rapid=OFF -DBUILD_opencv_reg=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_stereo=OFF -DBUILD_opencv_structured_light=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_tracking=OFF -DBUILD_opencv_ximgproc=OFF -DBUILD_opencv_xobjdetect=OFF -DBUILD_opencv_xphoto=OFF" | ||
| OPENCV_EXTRA_MODULES_INCLUDE="-DBUILD_opencv_xfeatures2d=ON " | ||
| OPENCV_EXTRA_MODULES_PATH="-DOPENCV_EXTRA_MODULES_PATH=../../libs/opencv_contrib/modules" | ||
| OPENCV_CONF="${OPENCV_DEFINES} ${OPENCV_EXCLUDE} ${OPENCV_INCLUDE} ${OPENCV_MODULES_EXCLUDE} ${OPENCV_EXTRA_MODULES_INCLUDE} ${OPENCV_EXTRA_MODULES_EXCLUDE} ${OPENCV_MODULES_INCLUDE} ${OPENCV_EXTRA_MODULES} -DBUILD_opencv_apps=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_IPP_IW=OFF -DBUILD_PACKAGE=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_WITH_DEBUG_INFO=OFF -DWITH_PTHREADS_PF=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF" |
There was a problem hiding this comment.
I was providing the wrong path and i haven't added the command to cmake, (see OPENCV_EXTRA_MODULES does not exist... it should be instead OPENCV_EXTRA_MODULES_PATH)
There was a problem hiding this comment.
Maybe the OPENCV_EXTRA_MODULES_INCLUDE="-DBUILD_opencv_xfeatures2d=ON " is not needed with OPENCV_EXTRA_MODULES_PATH=" -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/xfeatures2d ../ "
|
Now because the github action script is succesful i will try to add the .zip files to every new release, so an user can download the pre-built libs. |
|
I have tested the compiled files, all is fine, tested WebARKitLib/tests with this gist |
I will works in this PR on this tasks:
opencv_contribFor more informations see PR webarkit/WebARKitLib#19