Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

[EN] Build Sielo

Rayan Desfossez edited this page Jan 3, 2019 · 5 revisions

Build Sielo

Before starting

If you want to build Sielo, you must first check if you have all dependencies. To build Sielo you will need at least CMake, Qt 5.10.1 and OpenSSL 1.1.

Qt can be downloaded and installed from the official site. For OpenSSL, their is a pre-compiled version in Sielo for Windows and macOS only. If you are using Linux, you should check your OpenSSL version.

Sielo can be compiled on Windows with MSVC only, macOS 10.11 or later and Linux.

Compile Sielo

You must first update your configuration in the user-config.cmake file at the root of the project. You will have to tell your path to Qt.

With Visual Studio

With the CMake GUI

First, you should open CMake GUI. Then you can set the path to the root CMakeLists in "Where is the source code". The second line edit correspond to the path where the .sln will be generated (it can be at the root or in a "build" folder). Now you can click on "Configure" (choose the appropriate compiler) and "Generate". Here is how you CMake window should looks like (don't worry of all this red) :

Don't worry of all this red

The screen is from Windows, but it works the same on macOS.

In CLI

You have to be sure you can run cmake command in the terminal. Then, you can create a "vs2017" folder in the root of the project and move your terminal in. After that, the command is cmake -G "Visual Studio 15 2017 Win64" ..

Now you have a Visual Studio solution generated that you can open in Visual Studio.

With QtCreator

You simply have to open the root CMakeLists.txt in QtCreator as a project.

With CLion

You simply have to open the root CMakeLists.txt in CLion as a project.

In command line

Open a terminal in the root of Sielo and simple execute this command : cmake make CMakeLists.txt && make

On macOS, the cmake command is located in Applications/Cmake.app/Contents/bin/cmake !