From 2d023be53c4d7a189b56faf0747f05abedce5341 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sun, 3 Mar 2013 01:41:06 -0500 Subject: [PATCH] works on windows --- sdk/openbr_export.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sdk/openbr_export.cpp b/sdk/openbr_export.cpp index 2c45a97..6b50ff8 100644 --- a/sdk/openbr_export.cpp +++ b/sdk/openbr_export.cpp @@ -84,13 +84,12 @@ $ br -help * -# Grab any available Visual Studio Updates. * -# Download CMake 2.8.10.2 and install. * -# During installation setup select "add CMake to PATH". - * -# Download OpenCV 2.4.3 and unarchive. + * -# Download OpenCV 2.4.4. * -# Consider the free open source program 7-Zip if you need a program to unarchive tarballs. - * -# Move the "OpenCV-2.4.3" folder to "C:\". - * -# In "C:\OpenCV-2.4.3\modules\objdetect\src\haar.cpp" line 55, change "#ifdev CV_AVX" to "#ifdef 0". + * -# Move the "OpenCV-2.4.4" folder to "C:\". * -# Open "VS2012 x64 Cross Tools Command Prompt" (from the Start Menu, select "All Programs" -> "Microsoft Visual Studio 2012" -> "Visual Studio Tools" -> "VS2012 x64 Cross Tools Command Prompt") and enter: * \code - * $ cd C:\OpenCV-2.4.3 + * $ cd C:\OpenCV-2.4.4 * $ mkdir build-msvc2012 * $ cd build-msvc2012 * $ cmake -G "NMake Makefiles" -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D WITH_FFMPEG=OFF -D CMAKE_BUILD_TYPE=Debug .. @@ -129,7 +128,7 @@ $ br -help * $ cd C:\openbr * $ mkdir build-msvc2012 * $ cd build-msvc2012 - * $ cmake -G "CodeBlocks - NMake Makefiles" -D CMAKE_PREFIX_PATH="C:/OpenCV-2.4.3/build-msvc2012/install;C:/Qt/5.0.1/msvc2012" -D CMAKE_INSTALL_PREFIX="./install" -D BR_INSTALL_DEPENDENCIES=ON -D CMAKE_BUILD_TYPE=Release .. + * $ cmake -G "CodeBlocks - NMake Makefiles" -D CMAKE_PREFIX_PATH="C:/OpenCV-2.4.4/build-msvc2012/install;C:/Qt/5.0.1/msvc2012" -D CMAKE_INSTALL_PREFIX="./install" -D BR_INSTALL_DEPENDENCIES=ON -D CMAKE_BUILD_TYPE=Release .. * $ nmake * $ nmake install * \endcode @@ -164,12 +163,12 @@ $ br -help * -# Move "x86_64-w64-mingw32-gcc-4.7.2-release-win64_rubenvb\mingw64" to "C:\". * -# Download CMake 2.8.10.2 and install. * -# During installation setup select "add CMake to PATH". - * -# Download OpenCV 2.4.3 and unarchive. + * -# Download OpenCV 2.4.4. * -# Consider the free open source program 7-Zip if you need a program to unarchive tarballs. - * -# Move the "OpenCV-2.4.3" folder to "C:\". + * -# Move the "OpenCV-2.4.4" folder to "C:\". * -# From the MinGW-w64 Command Prompt (double-click "C:\mingw64\mingw64env.cmd"): * \code - * $ cd C:\OpenCV-2.4.3 + * $ cd C:\OpenCV-2.4.4 * $ mkdir build-mingw64 * $ cd build-mingw64 * $ cmake -G "MinGW Makefiles" -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D WITH_FFMPEG=OFF -D CMAKE_BUILD_TYPE=Debug .. @@ -208,7 +207,7 @@ $ br -help * $ cd C:\openbr * $ mkdir build-mingw64 * $ cd build-mingw64 - * $ cmake -G "CodeBlocks - MinGW Makefiles" -D CMAKE_RC_COMPILER="C:/mingw64/bin/windres.exe" -D CMAKE_PREFIX_PATH="C:/OpenCV-2.4.3/build-mingw64/install;C:/Qt/5.0.1/mingw64" -D CMAKE_INSTALL_PREFIX="./install" -D BR_INSTALL_DEPENDENCIES=ON -D CMAKE_BUILD_TYPE=Release .. + * $ cmake -G "CodeBlocks - MinGW Makefiles" -D CMAKE_RC_COMPILER="C:/mingw64/bin/windres.exe" -D CMAKE_PREFIX_PATH="C:/OpenCV-2.4.4/build-mingw64/install;C:/Qt/5.0.1/mingw64" -D CMAKE_INSTALL_PREFIX="./install" -D BR_INSTALL_DEPENDENCIES=ON -D CMAKE_BUILD_TYPE=Release .. * $ mingw32-make * $ mingw32-make install * \endcode -- libgit2 0.21.4