Commit befbbe54ea35e69e1443d5b485106ecbde19fb59
1 parent
4b05551c
updated mingw64 build instructions
Showing
1 changed file
with
18 additions
and
19 deletions
openbr/openbr_export.cpp
| ... | ... | @@ -90,7 +90,7 @@ $ br -help |
| 90 | 90 | * -# Download and install <a href="http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx">Windows 8 SDK</a>. |
| 91 | 91 | * -# <a href="http://www.cmake.org/files/v2.8/cmake-2.8.10.2-win32-x86.exe">Download and Install CMake 2.8.10.2</a> |
| 92 | 92 | * -# During installation setup select "add CMake to PATH". |
| 93 | - * -# <a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.5/opencv-2.4.5.tar.gz">Download OpenCV 2.4.5</a>. | |
| 93 | + * -# <a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.5/opencv-2.4.5.tar.gz">Download OpenCV 2.4.5</a> | |
| 94 | 94 | * -# Consider the free open source program <a href="http://www.7-zip.org/">7-Zip</a> if you need a program to unarchive tarballs. |
| 95 | 95 | * -# Move the "opencv-2.4.5" folder to "C:\". |
| 96 | 96 | * -# 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: |
| ... | ... | @@ -151,20 +151,20 @@ $ br -help |
| 151 | 151 | |
| 152 | 152 | /*! |
| 153 | 153 | * \page windows_mingw Windows 7 - MinGW-w64 2.0 - x64 |
| 154 | - * -# <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.7-release/x86_64-w64-mingw32-gcc-4.7.2-release-win64_rubenvb.7z/download">Download MinGW-w64 GCC 4.7.2</a> and unarchive. | |
| 154 | + * -# <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.7-release/x86_64-w64-mingw32-gcc-4.7.2-release-win64_rubenvb.7z/download">Download and Unarchive MinGW-w64 GCC 4.7.2</a> | |
| 155 | 155 | * -# Use the free open source program <a href="http://www.7-zip.org/">7-Zip</a> to unarchive. |
| 156 | 156 | * -# Move "x86_64-w64-mingw32-gcc-4.7.2-release-win64_rubenvb\mingw64" to "C:\". |
| 157 | - * -# <a href="http://www.cmake.org/files/v2.8/cmake-2.8.10.2-win32-x86.exe">Download CMake 2.8.10.2</a> and install. | |
| 157 | + * -# <a href="http://www.cmake.org/files/v2.8/cmake-2.8.10.2-win32-x86.exe">Download and Install CMake 2.8.10.2</a> | |
| 158 | 158 | * -# During installation setup select "add CMake to PATH". |
| 159 | - * -# <a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.4/OpenCV-2.4.4.tar.bz2">Download OpenCV 2.4.4</a>. | |
| 159 | + * -# <a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.5/opencv-2.4.5.tar.gz">Download OpenCV 2.4.5</a> | |
| 160 | 160 | * -# Consider the free open source program <a href="http://www.7-zip.org/">7-Zip</a> if you need a program to unarchive tarballs. |
| 161 | - * -# Move the "OpenCV-2.4.4" folder to "C:\". | |
| 161 | + * -# Move the "opencv-2.4.5" folder to "C:\". | |
| 162 | 162 | * -# From the MinGW-w64 Command Prompt (double-click "C:\mingw64\mingw64env.cmd"): |
| 163 | 163 | * \code |
| 164 | - * $ cd C:\OpenCV-2.4.4 | |
| 164 | + * $ cd C:\opencv-2.4.5 | |
| 165 | 165 | * $ mkdir build-mingw64 |
| 166 | 166 | * $ cd build-mingw64 |
| 167 | - * $ cmake -G "MinGW Makefiles" -DBUILD_opencv_java=OFF -DBUILD_opencv_world=ON -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DWITH_FFMPEG=OFF -DCMAKE_BUILD_TYPE=Debug .. | |
| 167 | + * $ cmake -G "MinGW Makefiles" -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DWITH_FFMPEG=OFF -DCMAKE_BUILD_TYPE=Debug .. | |
| 168 | 168 | * $ mingw32-make |
| 169 | 169 | * $ mingw32-make install |
| 170 | 170 | * $ cmake -DCMAKE_BUILD_TYPE=Release .. |
| ... | ... | @@ -172,17 +172,17 @@ $ br -help |
| 172 | 172 | * $ mingw32-make install |
| 173 | 173 | * $ mingw32-make clean |
| 174 | 174 | * \endcode |
| 175 | - * -# <a href="http://releases.qt-project.org/qt5/5.0.1/single/qt-everywhere-opensource-src-5.0.1.zip">Download Qt 5.0.1</a> and unzip. | |
| 175 | + * -# <a href="http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.zip">Download and Unzip Qt 5.0.2</a>. | |
| 176 | 176 | * -# Install Perl/Python/Ruby dependencies as explained in the "Windows" section of "README". Make sure they are added to "path" when given the option during installation. |
| 177 | 177 | * -# <a href="http://www.microsoft.com/en-us/download/confirmation.aspx?id=6812">Download Direct X Software Developement Kit</a> and install. You may also need to install the latest OpenGL drivers from your graphics card manufacturer. |
| 178 | 178 | * -# From the MinGW-w64 Command Prompt: |
| 179 | 179 | * \code |
| 180 | - * $ cd qt-everywhere-opensource-src-5.0.1 | |
| 181 | - * $ configure -prefix C:\Qt\5.0.1\mingw64 -opensource -confirm-license -nomake examples -nomake tests -opengl desktop | |
| 180 | + * $ cd qt-everywhere-opensource-src-5.0.2 | |
| 181 | + * $ configure -prefix C:\Qt\Qt5.0.2\5.0.2\mingw64 -opensource -confirm-license -nomake examples -nomake tests -opengl desktop | |
| 182 | 182 | * $ mingw32-make |
| 183 | 183 | * $ mingw32-make install |
| 184 | 184 | * $ cd .. |
| 185 | - * $ rmdir /Q /S qt-everywhere-opensource-src-5.0.1 | |
| 185 | + * $ rmdir /Q /S qt-everywhere-opensource-src-5.0.2 | |
| 186 | 186 | * \endcode |
| 187 | 187 | * -# mingw32-make will take several hours to finish. |
| 188 | 188 | * -# Create a <a href="github.com">GitHub</a> account and follow their instructions for <a href="https://help.github.com/articles/set-up-git">setting up Git</a>. |
| ... | ... | @@ -200,31 +200,30 @@ $ br -help |
| 200 | 200 | * $ cd C:\openbr |
| 201 | 201 | * $ mkdir build-mingw64 |
| 202 | 202 | * $ cd build-mingw64 |
| 203 | - * $ cmake -G "CodeBlocks - MinGW Makefiles" -DCMAKE_RC_COMPILER="C:/mingw64/bin/windres.exe" -DCMAKE_PREFIX_PATH="C:/OpenCV-2.4.4/build-mingw64/install;C:/Qt/5.0.1/mingw64" -DCMAKE_INSTALL_PREFIX="./install" -DBR_INSTALL_DEPENDENCIES=ON -DCMAKE_BUILD_TYPE=Release .. | |
| 203 | + * $ cmake -G "CodeBlocks - MinGW Makefiles" -DCMAKE_RC_COMPILER="C:/mingw64/bin/windres.exe" -DCMAKE_PREFIX_PATH="C:/opencv-2.4.5/build-mingw64/install;C:/Qt/Qt5.0.2/5.0.2/mingw64" -DCMAKE_INSTALL_PREFIX="./install" -DBR_INSTALL_DEPENDENCIES=ON -DCMAKE_BUILD_TYPE=Release .. | |
| 204 | 204 | * $ mingw32-make |
| 205 | 205 | * $ mingw32-make install |
| 206 | 206 | * \endcode |
| 207 | 207 | * -# Check out the "install" folder. |
| 208 | 208 | * -# Hack OpenBR! |
| 209 | - * -# <a href="http://releases.qt-project.org/qtcreator/2.6.2/qt-creator-windows-opensource-2.6.2.exe">Download Qt Creator</a> IDE and install. | |
| 210 | 209 | * -# From the MinGW-w64 Command Prompt: |
| 211 | 210 | * \code |
| 212 | - * $ "C:\Qt\qtcreator-2.6.2\bin\qtcreator.exe" | |
| 211 | + * $ C:\Qt\Qt5.0.2\Tools\QtCreator\bin\qtcreator.exe | |
| 213 | 212 | * \endcode |
| 214 | 213 | * -# From the Qt Creator "Tools" menu select "Options..." |
| 215 | 214 | * -# Under "Kits" select "Desktop (default)" |
| 216 | - * -# For "Compiler:" select "MinGW (x86 64bit)" and click "OK" | |
| 215 | + * -# For "Compiler:" select "MinGW (x86 64bit in C:\mingw64\bin)" and click "OK" | |
| 217 | 216 | * -# From the Qt Creator "File" menu select "Open File or Project...". |
| 218 | 217 | * -# Select "C:\openbr\CMakeLists.txt" then "Open". |
| 218 | + * -# If prompted for the location of CMake, enter "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe". | |
| 219 | 219 | * -# Browse to your pre-existing build directory "C:\openbr\build-mingw64" then select "Next". |
| 220 | 220 | * -# Clear any text in the "arguments" box then select "Run CMake" then "Finish". |
| 221 | - * -# You're all set! You can find more information on Qt Creator <a href="http://qt-project.org/doc/qtcreator-2.6/">here</a> if you need. | |
| 221 | + * -# You're all set! You can find more information on Qt Creator <a href="http://qt-project.org/doc/qtcreator">here</a> if you need. | |
| 222 | 222 | * -# (Optional) Package OpenBR! |
| 223 | - * -# <a href="http://sourceforge.net/projects/nsis/files/NSIS%202/2.46/nsis-2.46-setup.exe/download?use_mirror=iweb&download=">Download NSIS 2.46</a> and install. | |
| 224 | 223 | * -# From the MinGW-w64 Command Prompt: |
| 225 | 224 | * \code |
| 226 | 225 | * $ cd C:\openbr\build-mingw64 |
| 227 | - * $ mingw32-make package | |
| 226 | + * $ cpack -G ZIP | |
| 228 | 227 | * \endcode |
| 229 | 228 | */ |
| 230 | 229 | |
| ... | ... | @@ -396,7 +395,7 @@ $ br -help |
| 396 | 395 | * \page qmake_integration QMake Integration |
| 397 | 396 | * \brief Add OpenBR to your Qt <tt>.pro</tt> project. |
| 398 | 397 | * |
| 399 | - * After completing the \ref installation instructions, try launching Qt Creator and opening <tt><path_to_openbr_installation>/share/openbr/qmake_tutorial/hello.pro</tt>. | |
| 398 | + * After completing the \ref installation instructions, try launching Qt Creator and opening <tt>\<path_to_openbr_installation\>/share/openbr/qmake_tutorial/hello.pro</tt>. | |
| 400 | 399 | * |
| 401 | 400 | * Happy hacking! |
| 402 | 401 | */ | ... | ... |