Skip to content

Latest commit

 

History

History
77 lines (57 loc) · 2 KB

INSTALL.md

File metadata and controls

77 lines (57 loc) · 2 KB

Requirements

  • Windows, Linux, macOS, or POSIX compliant Unix-like OS
  • Qt Toolkit version 5.4 or later
  • C compiler and C++14 compiler
  • Make utility

On Linux, you can install by 'apt-get' or 'yum'. Case of Ubuntu:
Install Qt libraries and dev tools.

  $ sudo apt-get install -y qt5-default qt5-qmake libqt5sql5-mysql libqt5sql5-psql
       libqt5sql5-odbc libqt5sql5-sqlite libqt5core5a libqt5qml5 libqt5xml5
       qtbase5-dev qtdeclarative5-dev qtbase5-dev-tools gcc g++ make

Install DB client libraries. (optional)

  $ sudo apt-get install -y libmysqlclient-dev libpq5 libodbc1

For more understanding see https://doc.qt.io/qt-6/sql-driver.html

Installation

  1. Extract the downloaded tar.gz file.

  2. Run build commands.
    Linux, macOS, 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
    

Windows:
Build binaries of two modes, release and debug.
Run the following commands in Qt Command Prompt.

Visual Studio:  
Call vcvarsall.bat to complete environment setup in Qt Command Prompt. e.g.

     > cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64"
     > vcvars64.bat

     > cd (treefrog-x.x.x)
     > configure --enable-debug
     > cd src
     > nmake install
     > cd ..\tools
     > nmake install
     > cd ..
     > configure
     > cd src
     > nmake install
     > cd ..\tools
     > nmake install

  Or, double-click to run the build.bat after editing it for your Qt
  environment.
  1. 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.

Enjoy!