en:compilation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:compilation [2015/03/23 10:12] – jmgr | en:compilation [2022/05/09 18:20] (current) – jmgr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Get & compile the latest version ====== | ====== Get & compile the latest version ====== | ||
- | ===== Windows ===== | ||
- | Todo. | ||
+ | Please note: this is to compile actiona 3.9.0 and higher. Older versions depended on Qt 4 and are not supported anymore. | ||
+ | |||
+ | ===== Windows ===== | ||
+ | - Install Visual Studio 2015 (Community edition should work) | ||
+ | - Install Qt (5.2.0 or more recent, QtScript is needed) | ||
+ | - Install QtCreator | ||
+ | - Install OpenCV binaries for Windows (version 2.x) | ||
+ | - Open CMakeLists.txt using QtCreator | ||
+ | - In the " | ||
+ | - OPENCV_LIB=" | ||
+ | - OPENCV_INCLUDE=" | ||
+ | - 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) | ||
+ | - 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 | ||
+ | - Run | ||
===== GNU/Linux ===== | ===== GNU/Linux ===== | ||
==== Debian/ | ==== Debian/ | ||
Line 8: | 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 | + | sudo apt-get install git-core build-essential |
</ | </ | ||
If you want to use SQL databases you will also have to install the corresponding bindings, for instance, MySQL: | If you want to use SQL databases you will also have to install the corresponding bindings, for instance, MySQL: | ||
<code bash> | <code bash> | ||
- | sudo apt-get install | + | sudo apt-get install |
</ | </ | ||
Get the code. | Get the code. | ||
<code bash> | <code bash> | ||
- | git clone git:// | + | git clone https:// |
</ | </ | ||
- | Enter the actionaz | + | Enter the actiona |
<code bash> | <code bash> | ||
- | cd actionaz | + | cd actiona |
</ | </ | ||
Then build. | Then build. | ||
<code bash> | <code bash> | ||
- | qmake -r && make | + | mkdir build && cd build && cmake .. && make |
</ | </ | ||
- | To run actionaz, enter: | + | To run actiona, enter: |
<code bash> | <code bash> | ||
- | ./actionaz | + | ./actiona |
</ | </ | ||
=== Update === | === Update === | ||
- | To update your version, open a terminal, go to the actionaz | + | 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.1427105527.txt.gz · Last modified: 2021/02/13 11:23 (external edit)