-
Notifications
You must be signed in to change notification settings - Fork 124
Compile
Apin Prastya edited this page Jun 1, 2017
·
12 revisions
There are 2 ways to compile the project
- Using Qt Framework Bundle
- Using Qt from OS (Only for Linux)
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.
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
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.