Skip to content

Building from Source

rgriebl edited this page May 17, 2022 · 7 revisions

BrickStore can easily be built from source. Its only dependency is Qt:

  • for the stable main branch, only Qt 5.15.2 is supported
  • for the testing next branch, the minimum supported version is Qt 6.2.4

Getting Qt

Qt SDK

The easiest way to get a Qt SDK, is to use Qt's online installer that will install everything you need: Get it from https://www.qt.io/download-open-source (scroll way down to Download the Qt Online Installer).

  • When selecting the components, make sure to enable Qt Quick 3D under Additonal Libraries, if you want to build the next branch.
  • MingW on Windows is untested - please use MSVC 2017 or 2019. If you still want to use MingW, be my guest and create a pull request!

Dependencies on Windows

When building on Windows, you need two additional pieces of software

  1. InnoSetup 6, installed to the default location: download here
  2. OpenSSL libraries: install the Win32/Win64 1.1 "Light" variant from SLProWeb download here

Qt from Linux package repos

You can of course also compile against your system's Qt version to get nicer themeing integration. The needed packages for Debian and Ubuntu are:

sudo apt get install qt5-default libqt5opengl5-dev qttools5-dev qtscript5-dev qtbase5-private-dev

If something is missing, then have a look at the GitHub build action which always has the latests dependencies.

Building

Either use Qt's Creator IDE (you got this automatically when installing an SDK) or stick to the command line:

  • In Creator, just open the brickstore.pro, assign a Qt version to the project, then first hit the Build (Ctrl-B) and then afterwards the Run (Ctrl-R) button.
  • On the command line, cd to the BrickStore sources, then run ./configure && make. If you want to build against a specific Qt version, you can of course call qmake directly on the brickstore.pro file. After building, the binary is available in the bin directory.
Clone this wiki locally