The following packages are necessary for compiling:
sudo apt install build-essential qtbase5-dev qttools5-dev qtdeclarative5-dev qtmultimedia5-dev qt5-default qttools5-dev-tools
If you install Qt 5.12 you should have the above packages.
Along with either clang
or g++
. At least g++-7
is required, due to C++17 support.
For linting with clang-tidy
the following are necessary:
sudo apt install bear clang-tidy
All applications are required to be in the PATH
.
The following environmental variables are relevant for building the project.
Environment Variable | Purpose |
---|---|
QMAKE_SPEC |
The mkspec to compile to. Either linux-g++ or linux-clang . Defaults to linux-g++ . |
USE_TIDY |
If set a compilation database will be created and the project linted. Can only be used with clang . |
If an environment variable isn't set a default value will be provided. The default values are shown in the table below.
With the programs above installed and environment variables set, go into the root folder of the repository and run ./build_scripts/linux/build_linux.sh
.
You'll have to copy the res
directory into ~/.local/share/AdvancedSettings-Team/OpenVRAdvancedSettings/, and add third-party/openvr/lib/linux64/libopenvr_api.so
to your systems library path.
For full details, see CONTRIBUTING.md.