Skip to content

Compile

Apin Prastya edited this page Jun 1, 2017 · 12 revisions

How to compile and run

There are 2 ways to compile the project

  1. Using Qt Framework Bundle
  2. Using Qt from OS (Only for Linux)

Using Qt Framework Bundle

This can be work on Mac, Windows and Linux

  • Clone the project to your local computer
  • On Ubuntu need to install : $ sudo apt-get install build-essential libcups2-dev
  • Download and install the latest framework based on your architecture here : download
  • Open Qt Creator and go to 'File' -> 'Open Project'. Navigate to sultan.pro.
  • When show the configuration window, just click on configure
  • Click Run icon at the bottom left of the Qt Creator window.

Using Qt from OS

This is for Ubuntu distribution

  • Install requirement software
    $ sudo apt-get install build-essential qt5-default libqt5sql5-mysql libqt5sql5-sqlite libqt5websockets5-dev libqt5printsupport5 libcups2-dev sqlite3
  • Clone the project to your local computer
  • CD to root directory project and create a build directory
    $ mkdir build
  • CD to build folder
    $ cd build
  • run qmake
    $ qmake ../sultan.pro
  • run make
    $ make -j4
  • add execute permission
    $ chmod +x bin/Sultan.sh
  • run the app
    $ bin/Sultan.sh

Mysql

Currently the app support for SQlite and Mysql. Using SQlite is the easier way to make the app running. But if you want to use Mysql, it will need several steps :

  • Install mysql server
  • Create a database
  • When start the Sultan app on configuration window. Select database to MySql and setup the value as your mysql setting.

Clone this wiki locally