forked from treefrogframework/treefrog-framework
/
INSTALL
65 lines (52 loc) · 1.79 KB
/
INSTALL
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
Requirements
- Windows XP/Vista/7/8, Linux, Mac OS X,
or POSIX compliant Unix-like OS
- Qt version 4.6 or later, 5.0 or later
Installation
1. Extract the downloaded file.
2. Run build commands.
Windows:
Build binaries of two modes, release and debug.
Run the following commands in Qt Command Prompt.
> cd treefrog-x.x.x
> configure --enable-debug
> cd src
> mingw32-make install
> cd ..\tools
> mingw32-make instal
> cd ..
> configure
> cd src
> mingw32-make install
> cd ..\tools
> mingw32-make instal
Or, double-click to run the build.bat after editing it for your Qt
environment.
Linux, Mac OS X, or Unix-like OS:
Run the following commands.
$ cd treefrog-x.x.x
$ ./configure
$ cd src
$ make
$ sudo make install
$ cd ../tools
$ make
$ sudo make install
[Optional]
Run the configure script by using the '--enable-mongo' option to
enable the MongoDB driver of TreeFrog Framework.
3. Create a shortcut to TreeFrog Command Prompt (on Windows only).
Locate the program:
C:\Windows\System32\cmd.exe /K C:\TreeFrog\x.x.x\bin\tfenv.bat
("x.x.x" is version)
* In the TreeFrog Command Prompt, build Web applications and run
TreeFrog commands such as tspawn or treefrog.
4. Install SQL Database Drivers (if necessary)
If you want to use MySQL or PostgreSQL on Windows / Mac OS X, the
database driver is needed. Download SQL database drivers from here.
http://www.treefrogframework.org/download
Please refer README file in the package to install the drivers.
On Linux, you can install it by 'apt-get' or 'yum'.
Example:
$ sudo apt-get install libqt4-sql-mysql libqt4-sql-psql
Enjoy.