forked from KDAB/Charm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
66 lines (47 loc) · 2.59 KB
/
BUILD
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
= Requirements =
Charm supports both Qt 4 and Qt 5 right now. We recommend to use the latest Qt release for the respective major version, i.e.
Qt 4.8.7 or Qt 5.5 as of now. We don't run CI or manual tests for older minor releases.
The Qt modules required on all platforms are: QtWidgets, QtXml, QtSql with SQLite3 plugin, QtNetwork, QtTest, QtScript (or equivalent Qt 4 features)
Optional: QtPrintSupport
Charm code uses C++11, so using a recent enough compiler is advised (see below for details).
== Linux ==
* g++ >= 4.8
* CMake 3.x
* Qt 4.8.7 or Qt 5; we still use Qt 4 for the distro packages on OpenSUSE Build Service [1] because the Qt 5 packages of the various
distros tend to have issues with desktop integration (tray icons in Unity, for example). If you're building from source, we're encouraging
you to use Qt 5.
* Extra Qt modules/features required: QtDBus
[1] https://build.opensuse.org/package/repositories/isv:KDAB/charmtimetracker
== OS X ==
* A new enough clang to support the C++11 features we use. We recommend to use the latest XCode if possible. (7.0.2 right now)
* Qt 5 (Qt 4's support for recent OS X versions is lacking, thus Qt4-based builds for OS X are not supported or tested by us);
Using the official Qt build is recommended
* Extra Qt 5 modules required: QtMacExtras
* CMake 3.x
== Windows ==
On Windows we require:
* MSVC 2013 or MinGW (gcc >= 4.8; lower versions untested)
* A Qt 5 build for MSVC 2013 or MinGW, matching the compiler you want to use
(Qt 4-based builds for Windows might work but is not supported or tested by us)
* Extra Qt 5 modules required: QtWinExtras
* Install OpenSSL and make sure the libraries are in the PATH (TODO: add more details like suggested downloads)
* CMake 3.x
= Build Instructions =
== Building from the Terminal ==
The build steps for a Debug build when building from the Terminal are:
cd Charm
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make # Windows: nmake, mingw32-make or jom, see below
Windows-specific hints:
* Ensure that your compiler's environment is sourced (Call vcvarsall.bat for MSVC2013).
* For MinGW: pass -G "MinGW Makefiles". "make" becomes "mingw32-make"
* When using MSVC: call "nmake" instead of make.
* You can use jom.exe (parallel builds using multiple cores) which is shipped as part of Qt Creator for both MSVC and MinGW builds
== Building in Qt Creator ==
* Choose File -> Open File or Project
* Select the top-level CMakeLists.txt
* Select the Generator matching your architecture (32bit vs. 64bit) and enter the wanted arguments, e.g.
"-DCMAKE_BUILD_TYPE=Debug"
* Click "Run CMake"