Skip to content

Latest commit

 

History

History
130 lines (72 loc) · 3.53 KB

BUILD_WINDOWS.md

File metadata and controls

130 lines (72 loc) · 3.53 KB

Building Tivoli for Windows

Step 1. Installing dependencies

Download and install these programs:

Make sure cmake, python and node are available in your PATH.

Step 2. Configuring environment variables

You can set these as system environment variables or write a helper batch file.

  • For Vcpkg

    CMake will automatically download Vcpkg to compile required dependencies for compiling Tivoli.

    It will use the directory: C:\Users\[username]\tivoli\vcpkg

    This folder will get big! It's possible to change it by setting a variable:

    set TIVOLI_VCPKG_BASE=D:\path\to\vcpkg

  • For Qt

    CMake will also download a custom version of Qt which is required.

    It will use the directory: C:\Users\[username]\tivoli\qt

    It will also get big! Use this environment variable to change it:

    set TIVOLI_QT_BASE=D:\path\to\qt

  • Developer or production build

    By default, it will create a developer build.

    Set these environment variables for a production build:

    set RELEASE_TYPE=PRODUCTION

    set STABLE_BUILD=1

    set RELEASE_NUMBER=1.2.3 which is unnecessary

    Please do not set these as system variables.

Step 3. Cloning and preparing

Open the command prompt and git clone interface

git clone https://git.tivolicloud.com/tivolicloud/interface
cd interface

You can use the main branch (default) or checkout to the latest tag

git tag
git checkout tags/???

Once you're checked out on the right version

mkdir build
cd build

cmake .. -G "Visual Studio 16 2019" -A x64

CMake will now download dependencies including Qt and prepare build files.

Please wait. It will take a while... It really will!

Step 4. Making a Build

  • Using Visual Studio 2019

    Open interface\build\hifi.sln.

    Change the Solution Configuration (next to the green play button at the top) from Debug to RelWithDebInfo for best performance and debugging capabilities.

    On the right sidebar in the Solution Explorer, right mouse click interface and click Build

  • Using the command prompt

    Open the command prompt

    cd C:\path\to\tivoli\interface\build
    
    cmake --build . --target interface --config RelWithDebInfo

    Some available targets are: interface, domain-server, assignment-client

Step 5. Running interface

You can run interface using the launcher: https://tivolicloud.com/download

In the launcher under Settings, enable Developer settings. Then in the new menu, set Interface dir to C:\path\to\tivoli\interface\build\interface\RelWithDebInfo which should contain interface.exe

If you want to run Tivoli without the launcher, run:

interface.exe --tokens [current access token]

You can find your access token in the launcher's developer menu. Please don't share it and keep it safe!

When debugging, you'll likely have to open Tivoli without the launcher.

Troubleshooting

If your build fails, you could ask around on our Discord for help.

Deleting the build folder and trying again may help.