Build From Sources
Requirements
To compile LibrePCB, you need to install the following tools & libraries first:
-
g++, MinGW or Clang (any version with C++17 support should work)
-
Qt >= 6.2 (make sure the imageformats plugin is installed too as it will be needed at runtime)
-
OpenCASCADE OCCT or OCE (optional, OCCT highly preferred)
-
OpenGL Utility Library GLU (optional)
-
CMake 3.16 or newer
Actually LibrePCB 1.2.0 still compiles with Qt5, but unfortunately contains a serious bug at runtime. Therefore you really need to use Qt6 where the bug doesn’t exist. We’ll drop support for Qt5 soon anyway. |
Get the Sources
It is very important to use the correct sources:
|
For convenience, we provide an official source archive which contains all the required files (including submodules) and has stripped any unnecessary files: librepcb-1.2.0-source.zip
wget "https://download.librepcb.org/releases/1.2.0/librepcb-1.2.0-source.zip"
unzip ./librepcb-1.2.0-source.zip
cd ./librepcb-1.2.0
Build LibrePCB
Within the downloaded source directory, execute the following commands:
mkdir build && cd build
cmake ..
make -j8
Additional Resources
These are just the most important commands. For more details (e.g. the available configuration flags), check out the following resources:
-
README.md
within the source archive -
Build instructions on our developers documentation