User Tools

Site Tools


en:compilation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:compilation [2021/02/13 11:23]
127.0.0.1 external edit
en:compilation [2022/05/09 18:20] (current)
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)
-  - Install Boost (headers only, no need to compile it) +  - Open CMakeLists.txt using QtCreator
-  - Open actiona.pro using QtCreator+
   - In the "Projects" tab, in "additional arguments", add:   - In the "Projects" tab, in "additional arguments", add:
     - OPENCV_LIB="Path to the OpenCV library folder" (where all the .lib are)     - OPENCV_LIB="Path to the OpenCV library folder" (where all the .lib are)
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="Path to the Boost include folder" (containing the "boost" folder) 
   - 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 cmake 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
 </code> </code>
  
Line 44: Line 42:
 Then build. Then build.
 <code bash> <code bash>
-qmake -r && make+mkdir build && cd build && cmake .. && make
 </code> </code>
  
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/build directory and enter
 <code bash> <code bash>
 git pull git pull
-qmake -r+cmake ..
 make make
 </code> </code>
en/compilation.1613215410.txt.gz · Last modified: 2021/02/13 11:23 by 127.0.0.1