-
Notifications
You must be signed in to change notification settings - Fork 58
/
README.CMAKE
75 lines (62 loc) · 2.91 KB
/
README.CMAKE
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
67
68
69
70
71
72
73
CMAKE help and hints
--------------------------------------------------------------
0. Prerequisites
- qt5 devel packages(for example qtbase5-dev)
- boost-dev (for example libboost1.55-dev)
- libloki-dev (unless WANT_INTERNAL_LOKI=true is used)
- libqt5scintilla2-dev (unless WANT_INTERNAL_QSCINTILLA=true is user)
**BEWARE** use QT5 version of qscintilla with qt5 build.
it might compile even with qt4 version, but it will cause random crashes.
- Oracle client libs
**BEWARE** user 64bit client libs for 64bit build, and vice-versa.
1. On Linux use build Tora aside from sources:
1.1 Debug Build:
mkdir -p tora3/DBUILD
cd tora3/DBUILD
cmake -DBOOST_ROOT=/usr/include -DCMAKE_BUILD_TYPE=Debug ..
make tora poracle
1.2.
Release Build:
mkdir -p tora3/RBUILD
cd tora3/RBUILD
cmake -DBOOST_ROOT=/usr/include -DCMAKE_BUILD_TYPE=Release ..
make tora poracle
2. Options:
BOOST_ROOT for some unknown reason the CMAKE's FindBoots module
does not search in /usr/include. You must provide the path manually
Cmake installs TOra into /usr/local as default. You can change it
for your location:
-DCMAKE_INSTALL_PREFIX:PATH=/home/username/toradevelopment
If you want to set special paths for help files or whatever see
"Paths for installation" below.
Note for Windows: if you don't specify install prefix, you can get
compile-time errorrs in some cases. It looks like some MSVC
environments don't like spaces in its default paths
(C:\Program oieeek, error here).
3. QScintilla2
TOra requires QScintilla2. QScintilla2 is the new Qt4Qt5 port of old
Qt3 release with new API. It's strongly recomended to use standalone
package of QScintilla2. Unfortunatelly it's sometimes missing in
older distros. You can use TOra internal copy of QScintilla2 with:
-DWANT_INTERNAL_QSCINTILLA=1
4. Oracle client libs
TOra can be built against various Oracle clients. Some clients
(e.g. instant-client) do not provide ORACLE_HOME settings. Cmake will
warn you in this case so you can specify required paths manually:
-DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
-DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
Or set ORACLE_HOME before runnning cmake. The main program Tora no more depends
on libclnt.so. Only the DB provider plugin poracle.so Needs it.
5. PgSQL (support not finished yet)
TOra requires PostgreSQL development environment to enable
full PgSQL support (native cancel etc.).
This environment shoud be found automatically on UNIXes. But you can
specify path for alternative location and/or for Windows too.
-DPOSTGRESQL_PATH_INCLUDES=/home/devel/pgsql/include
-DPOSTGRESQL_PATH_INCLUDES=d:\pgsql\include
-DPOSTGRESQL_PATH_LIB=/home/devel/pgsql/lib
Windows note: Sometimes (dunno why) it doesn't find pgsql libs.
You can use "set LIB=%LIB%;pathtopgsqllibs" then.
etc.
Native PostgreSQL support can be disabled with:
-DENABLE_PGSQL=0