Project

General

Profile

Support #835

Updated by Daniel Curtis over 8 years ago

This is a guide to install Fritzing from source on Arch Linux. Yes, there is a package in the AUR; however, I need to compile the eagle2fritzing tool and that requires a copy of the source code for Fritzing. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 sudo pacman -Syu 
 </pre> 

 h2. Install Fritzing 

 * Install a few build dependencies: 
 <pre> 
 sudo pacman -S qtcreator jdk8-openjdk libgit2 python2 qt5-serialport qt5-svg shared-mime-info boost 
 </pre> 

 * Make a working directory and switch to it: 
 <pre> 
 mkdir -p ~/git/fritzing && cd ~/git/fritzing 
 </pre> 

 * Clone the Fritzing app repo from GitHub: 
 <pre> 
 git clone https://github.com/fritzing/fritzing-app.git 
 </pre> 

 * Clone the Fritzing parts repo from GitHub: 
 <pre> 
 git clone https://github.com/fritzing/fritzing-parts.git 
 </pre> 

 * Clone the eagle2fritzing repo from GitHub: 
 <pre> 
 git clone https://github.com/fritzing/eagle2fritzing.git 
 </pre> 

 * Compile fritzing: Open the *Qt Creator* application 

 * Go to +File -> Open File or Project+ and navigate to the @~/git/frizting/fritzing-app@ directory and select *phoenix.pro* file. 

 * Then go to the *Projects* tab, under *Run Settings*, add this in the field +Command Line Arguments+: 
 <pre> 
 cd fritzing-app -f "~/git/fritzing/fritzing-app/" -parts "~/git/fritzing/fritzing-parts/" -db "~/git/fritzing/fritzing-parts/parts.db" 
 qmake 
 make 
 </pre>  
 #* And install  
 <pre> 
 sudo make install 
 </pre> 

 *NOTE*: This is required so that Fritzing can find all the parts, examples, and other data. Use the 'db' parameter +only once+ to generate the initial parts database.  

 * Package fritzing: After that, remove it so that for normal launches you have: 
 <pre> 
 tools/linux_release_script/release.sh -f "~/git/fritzing/fritzing-app/" -parts "~/git/fritzing/fritzing-parts/" 
 </pre> 

 * Press the *green play button* and Fritzing will compile and launch.  

 h2. Resources 

 * https://github.com/fritzing/fritzing-app/wiki/1.-Building-Fritzing 
 * https://github.com/fritzing/eagle2fritzing 
 * https://aur.archlinux.org/packages/fritzing/ 

Back