Skip to content

Fedora Qt Build setup

Phil Duby edited this page Mar 16, 2020 · 1 revision

Qt Creator Environment for Fedora

All of the Building-Fritzing information applies to Fedora linux as well. The bulk of the content from there is not duplicated here. This is just a few extra notes to help streamline the initial setup.

This document was created from notes saved while building on a Fedora 31 vm. It should apply to other releases as well. It is assumed that Qt 5.12.7 is being used, and will be installed to a user folder. Change to use sudo to run the online installer for a system wide install.

  • First, install a few dependencies that will be needed to build the tools and application
  • Create a folder that will be the parent of the Fritzing application, parts, and dependencies folders. This is where to unpack the boost and libgit archives, and where to clone the Fritzing repositories
  • Create the folder that Qt Creator defaults to for building the project
  • After downloading, make the online Qt installer executable
  • After all of the sources are downloaded, unpacked and cloned, build the dependencies and tools.
  • After Installing Qt Creator, update the path to find the new binary images
  • Launch Qt Creator once the updated path is active
  • View or close the getting started information
  • Go to project ¦ open ¦ /path/to/project/folders/fritzing-app/phoenix.pro
  • Click to activate the "Desktop Qt 5.12.7 GCC 64 bit" kit
  • Click run under the kit name, and fill in the first run command line arguments
  • Click run on the build menu
  • When the build is finished, click "Yes" to ignore all errors (assuming the build finished successfully)
  • When the database is finished building, go back to the phoenix project screen, and remove the "-db …" from the command line arguments
  • Using the Build; Run command will now bring up the Fritzing application ready to create and edit sketches
sudo dnf install qt5-devel openssl-devel make
mkdir /path/to/project/folders
mkdir /path/to/project/folders/build-phoenix-Desktop_Qt_5_12_7_GCC_64bit-Debug
ln -sT /path/to/project/folders/libgit2-«archive-version» /path/to/project/folders/libgit2
chmod +x $HOME/Downloads/qt-unified-linux-x64-«version»-online.run
cd /path/to/project/folders/libgit2
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=OFF ..
cmake --build .
$HOME/Downloads/qt-unified-linux-x64-«version»-online.run
vi $HOME/.bash_profile
<<<
PATH=$PATH:/path/to/Qt/5.12.7/gcc_64/bin/:/path/to/Qt/Tools/QtCreator/bin/
>>>
qtcreator