Skip to content

Commit

Permalink
Build hdf from source on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv committed Nov 1, 2020
1 parent 3093d51 commit 6de8f92
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@
[submodule "eigen"]
path = eigen
url = https://gitlab.com/libeigen/eigen.git
[submodule "hdf5"]
path = hdf5
url = https://github.com/HDFGroup/hdf5.git
1 change: 1 addition & 0 deletions hdf5
Submodule hdf5 added at 3c42c4
8 changes: 8 additions & 0 deletions platforms/windows/Build_Binary_x86.bat
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ cd ..
cd ..
REM SET HARFBUZZ_DIR=%cd%\harfbuzz\%BUILD_FOLDER%
REM SET EMGU_CV_CMAKE_CONFIG_FLAGS=%EMGU_CV_CMAKE_CONFIG_FLAGS% -DHarfbuzz_DIR:STRING=%HARFBUZZ_DIR%

cd hdf5
IF NOT EXIST %BUILD_FOLDER% mkdir %BUILD_FOLDER%
cd %BUILD_FOLDER%
%CMAKE% -G %CMAKE_CONF% %GENERAL_CMAKE_CONFIG_FLAGS% -DCMAKE_INSTALL_PREFIX:STRING="%INSTALL_FOLDER:\=/%" -DCMAKE_FIND_ROOT_PATH:STRING=%INSTALL_FOLDER:\=/% ..
%CMAKE% --build . --config Release --parallel --target install
cd ..
cd ..

cd %BUILD_FOLDER%
SET OPENCV_EXTRA_MODULES_DIR=%cd%\..\opencv_contrib\modules
Expand Down

0 comments on commit 6de8f92

Please sign in to comment.