Skip to content

Commit

Permalink
changes to build xfeatures2d module again
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Jan 22, 2025
1 parent b5c5c5f commit 437bf11
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
with:
name: build
path: |
packaging/opencv-4.7.0.zip
packaging/opencv-js-4.7.0-emcc-3.1.26.zip
packaging/opencv-js-4.7.0-emcc-3.1.26-simd.zip
packaging/opencv-4.10.0.zip
packaging/opencv-js-4.10.0-emcc-3.1.38.zip
packaging/opencv-js-4.10.0-emcc-3.1.38-simd.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
packaging/opencv-4.7.0.zip
packaging/opencv-js-4.7.0-emcc-3.1.26.zip
packaging/opencv-js-4.7.0-emcc-3.1.26-simd.zip
packaging/opencv-4.10.0.zip
packaging/opencv-js-4.10.0-emcc-3.1.38.zip
packaging/opencv-js-4.10.0-emcc-3.1.38-simd.zip
14 changes: 7 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ OPENCV_CONF="${OPENCV_DEFINES} ${OPENCV_EXCLUDE} ${OPENCV_INCLUDE} ${OPENCV_MODU

if [ $BUILD_PYTHON ] ; then
echo "Building OpenCV for the web with Emscripten"
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk:3.1.38 emcmake python3 ./libs/opencv/platforms/js/build_js.py ${BUILD_HOME_BASE} --config="./opencv.webarkit_config.py" --build_wasm \
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) -e "EMSCRIPTEN=/emsdk/upstream/emscripten" emscripten/emsdk:3.1.38 emcmake python3 ./libs/opencv/platforms/js/build_js.py ${BUILD_HOME_BASE} --config="./opencv.webarkit_config.py" --build_wasm \
${OPENCV_EM_INTRINSICES} \
${OPENCV_EM_PTHREADS} \
--cmake_option="-DBUILD_opencv_dnn:BOOL=OFF" \
--cmake_option="-DBUILD_opencv_objdetect:BOOL=OFF" \
--cmake_option="-DBUILD_opencv_photo:BOOL=OFF" \
--cmake_option="-DBUILD_opencv_imgcodecs:BOOL=ON" \
--cmake_option="-DBUILD_opencv_xfeatures2d:BOOL=ON" \
--cmake_option="-DOPENCV_EXTRA_MODULES_PATH=./../libs/opencv_contrib/modules/xfeatures2d" \
--cmake_option="-DBUILD_opencv_dnn=OFF" \
--cmake_option="-DBUILD_opencv_objdetect=OFF" \
--cmake_option="-DBUILD_opencv_photo=OFF" \
--cmake_option="-DBUILD_opencv_imgcodecs=ON" \
--cmake_option="-DBUILD_opencv_xfeatures2d=ON" \
--cmake_option="-DOPENCV_EXTRA_MODULES_PATH=./../libs/opencv_contrib/modules" \
--build_flags=" -fwasm-exceptions -mbulk-memory -mnontrapping-fptoint -sWASM_BIGINT -sSUPPORT_LONGJMP=wasm "
fi
# /BUILD_PYTHON
Expand Down
2 changes: 1 addition & 1 deletion libs/opencv_contrib

0 comments on commit 437bf11

Please sign in to comment.