This document details the process to compile OpenRGB from source on supported operating systems.
- You will need the Microsoft Visual 2019 C++ runtime installed. You can get it here
- To build the application yourself on Windows:
- Download the latest Visual Studio Community Edition and Qt Creator.
- When installing the QT toolset select the latest revision of Qt 5.15.x as OpenRGB is not yet compatible with QT6.
- Optionally install Git if you intend to contribute your changes to the mainline codebase.
- Open the OpenRGB.pro project in Qt Creator.
- Use the MSVC compiler kit, either 32- or 64-bit, to build the application.
- Run the project from Qt Creator. If you want to use your custom build standalone, download the latest matching Release package and replace the OpenRGB.exe in it with your new build.
- Install build dependencies
- Debian/Ubuntu:
sudo apt install git build-essential qtcreator qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libusb-1.0-0-dev libhidapi-dev pkgconf libmbedtls-dev qttools5-dev-tools
- Fedora:
sudo dnf install automake gcc-c++ git hidapi-devel libusbx-devel mbedtls-devel pkgconf qt5-qtbase-devel qt5-linguist
- Debian/Ubuntu:
git clone https://gitlab.com/CalcProgrammer1/OpenRGB
cd OpenRGB
mkdir build
cd build
qmake ../OpenRGB.pro
make -j$(nproc)
- You can then run the application from the compile directory with
./openrgb
or install withmake install
- You will also need to install the latest udev rules.
You can also build OpenRGB generic AppImage packages and distribution-specific packages for Debian-based and Fedora-based distros. Install the build dependencies from the section above for your distribution before proceeding.
-
AppImage:
-
Debian/Ubuntu:
- Make sure OpenRGB is cloned in ~/OpenRGB before proceeding. Output .deb is in ~/.
sudo apt install debhelper
cd ~/OpenRGB
scripts/build-package-files.sh debian/changelog
dpkg-buildpackage -us -B
-
Fedora:
- Make sure OpenRGB is cloned in ~/OpenRGB before proceeding. Output .rpm is in ~/rpmbuild/RPMS/.
sudo dnf install rpmdevtools dnf-plugins-core
cd ~/
rpmdev-setuptree
tar -cf rpmbuild/SOURCES/OpenRGB.tar.gz OpenRGB/
cd OpenRGB
./scripts/build-package-files.sh fedora/OpenRGB.spec
cd ~/
cp OpenRGB/fedora/OpenRGB.spec rpmbuild/SPECS/
sudo dnf builddep rpmbuild/SPECS/OpenRGB.spec -y
cd rpmbuild/SOURCES
tar -xf OpenRGB.tar.gz
cd ~/
rpmbuild -ba rpmbuild/SPECS/OpenRGB.spec
- Install build dependencies with Homebrew
- Install Homebrew by following the instructions at https://brew.sh/
brew install git qt5 hidapi libusb mbedtls@2
brew link qt5
- Create a local certificate called OpenRGB with code signing capability
- git clone https://gitlab.com/CalcProgrammer1/OpenRGB
- cd OpenRGB
- qmake OpenRGB.pro
- make -j8
- macdeployqt OpenRGB.app -codesign=OpenRGB
- Copy the OpenRGB.app application package to Applications