1.3 Linux notes - sacredhotdog/fritzing-app GitHub Wiki
On Linux, the simplest way to build and run Fritzing is through the command line. Using Qt Creator or any other IDE is not required.
Prerequisites
On Ubuntu/Debian you need the following:
sudo apt-get install build-essential git cmake libssl-dev libudev-dev qt5-default libqt5serialport5-dev libqt5svg5-dev
If you're running Debian Wheezy, you need to add a -t wheezy-backports
to get the latest packages. On Debian Jessie you may try apt install -t testing libgit2-dev
, this made the compile work for me at least.
You then also need to download boost and compile libgit2 as described in the main build instructions.
on Fedora
sudo dnf install qt5 qt5-qtserialport-devel libgudev-devel qt5-qtsvg-devel qt-devel qt5-devel libgit2-devel openssl-devel make
Building Fritzing
Make sure you have a recent version of the Qt SDK installed and that its bin folder is in your path.
For Fedora, that means adding
PATH=/usr/lib64/qt5/bin:$PATH
to the .bash_profile
file. That is not in effect until the session is restarted. There are other ways, but logging out and back in will do the trick.
Then type:
cd /path/to/fritzing-app
qmake
make
Running Fritzing
./fritzing.sh
The above does not work on (at least) Fedora 31. The script can not find either the created binary, or the needed code library. The sudo make install
build step installed Fritzing to the /usr/bin/
folder. It can be run with just
Fritzing
On recent Fedora with wayland, QT is not quite (yet) compatible. This probably currently applies to any environment that is running Wayland. To tell QT to use the X11 display manager instead of wayland.
QT_QPA_PLATFORM=xcb; Fritzing
When run, the program will give you an error about the parts library. You must download Parts from the github repository and put it in the Home Folder.
If you have already cloned the parts library from github, you can tell Fritzing to use that by appending
--parts "path/to/fritzing-parts"
to the command line. A 2 line script file can simplify that.
#! /bin/sh
QT_QPA_PLATFORM=xcb; Fritzing --parts "path/to/fritzing-parts" "$@"