forked from gqueiroz/qtluae
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD-INSTRUCTIONS
53 lines (32 loc) · 1.74 KB
/
BUILD-INSTRUCTIONS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
QtLua-Extras Build Instructions
===============================
The build/cmake folder contains a CMake project for building QtLua-Extras.
Until now its build has been tested only on Linux Ubuntu 12.04.
Future releases will be tested on Mac OS X, Microsoft Windows
and others Linux flavours.
You should use at least CMake version 2.8.7 for building QtLua-Extras.
Older versions than this may not work properly.
Make sure you have all the third-party library dependencies
listed in the DEPENDENCIES file on the root of the codebase.
Follow the build steps below according to your platform.
1. Build instructions on Linux with g++ (GNU gcc)
-------------------------------------------------
1.1. Open a Command Prompt (Shell).
1.2. We will assume that the codebase (all the source tree) is located at:
/home/user/qtlua-extras/codebase
1.3. Create a folder out of the source tree, for example:
$ cd /home/user/qtlua-extras
$ mkdir build-linux
$ cd build-linux
1.4. For Linux systems you must choose the build configuration:
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" -DCMAKE_INCLUDE_PATH:PATH="/usr/local/include" -DCMAKE_LIBRARY_PATH:PATH="/usr/local/lib" -DCMAKE_CXX_FLAGS:STRING="-std=c++0x" ../codebase/build/cmake
Notes:
a) For GNU gcc releases newer than 4.7 the -std=c++0x option in the above command must be replaced by -std=c++11
b) For building with Qt5 you can provide the Qt5_DIR variable as:
-DQt5_DIR:PATH="/usr/local/lib/cmake/Qt5"
1.5 Building:
$ make
1.6 Installing:
$ make install
For more information on QtLua-Extras, please, visit its main web page at: https://trac.dpi.inpe.br/qtlua-extras.
March 2014, Gilberto Ribeiro de Queiroz <[email protected]>