en:compilation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:compilation [2017/11/07 20:01] – jmgr | en:compilation [2022/05/09 18:20] – jmgr | ||
---|---|---|---|
Line 8: | Line 8: | ||
- Install QtCreator | - Install QtCreator | ||
- Install OpenCV binaries for Windows (version 2.x) | - Install OpenCV binaries for Windows (version 2.x) | ||
- | | + | - Open CMakeLists.txt using QtCreator |
- | | + | |
- In the " | - In the " | ||
- OPENCV_LIB=" | - OPENCV_LIB=" | ||
Line 15: | Line 14: | ||
- OPENCV_LIB_CORE=Name of the core library filename (for example opencv_core249) | - OPENCV_LIB_CORE=Name of the core library filename (for example opencv_core249) | ||
- OPENCV_LIB_IMGPROC=Name of the imgproc library filename (for example opencv_imgproc249) | - OPENCV_LIB_IMGPROC=Name of the imgproc library filename (for example opencv_imgproc249) | ||
- | - BOOST_INCLUDE=" | ||
- Compile | - Compile | ||
- Copy the opencv_corexxx.dll and opencv_imgproc.dll files from the OpenCV install path to the build directory containing all the binaries that where built in the previous step | - Copy the opencv_corexxx.dll and opencv_imgproc.dll files from the OpenCV install path to the build directory containing all the binaries that where built in the previous step | ||
Line 24: | Line 22: | ||
We need Git, a C++ compiler (that can compile C++11 code, so for GCC, version 4.7 or better), Qt and all dependencies: | We need Git, a C++ compiler (that can compile C++11 code, so for GCC, version 4.7 or better), Qt and all dependencies: | ||
<code bash> | <code bash> | ||
- | sudo apt-get install git-core build-essential qtbase5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev qtscript5-dev qttools5-dev qtmultimedia5-dev qttools5-dev-tools libnotify-dev libopencv-core-dev libopencv-imgproc-dev libxtst-dev libboost-dev | + | sudo apt-get install git-core build-essential |
</ | </ | ||
Line 44: | Line 42: | ||
Then build. | Then build. | ||
<code bash> | <code bash> | ||
- | qmake -r && make | + | mkdir build && cd build && cmake .. && make |
</ | </ | ||
Line 53: | Line 51: | ||
=== Update === | === Update === | ||
- | To update your version, open a terminal, go to the actiona directory and enter | + | To update your version, open a terminal, go to the actiona/ |
<code bash> | <code bash> | ||
git pull | git pull | ||
- | qmake -r | + | cmake .. |
make | make | ||
</ | </ |
en/compilation.txt · Last modified: 2023/10/01 09:15 by jmgr