Build Linux

felix edited this page Jul 17, 2016 · 13 revisions

Build Instructions - Debian - Qt 4.8.5 - GCC 4.7

Debian requisites

sudo apt-get update
sudo apt-get install build-essential libqt4-dev libqt4-qt3support automake libtool gperf flex bison git cmake

Extra for ADMS compiled with Autotools

sudo apt-get install libxml2 libxml2-dev zlib1g zlib1g-dev
sudo cpan -i XML::LibXML
sudo apt-get install libgd2-xpm-dev
sudo apt-get install libgd-perl

Get the Qucs source code

Either (1) clone the Git repository or (2) download a repository snapshot.

Clone repository

  cd
  mkdir git; cd git
  git clone git://git.code.sf.net/p/qucs/git qucs

Repository snapshot


Build and Install

This information is most likely obsolete or outdated. See the INSTALL and README (or README.md) files contained in the the respective project directories.

Build with Autotools

  cd ~/git/qucs/qucs
  sh autogen.sh
  ./configure --enable-maintainer-mode --prefix=/home/$(whoami)/local/qucs/
  make install
  cd ~/git/qucs/qucs-core/
  sh bootstrap.sh
  ./configure --enable-maintainer-mode --prefix=/home/$(whoami)/local/qucs
  make install

Test

From the terminal

  export QUCSDIR=/home/$(whoami)/local/qucs
  ~/local/qucs/bin/qucs

Build with CMake

Note that the CMake build is mostly functional, however still experimental.

Build ADMS

A version of ADMS with CMake build can be found here

Build Qucs GUI (and tools)

  cd ~/git/qucs/qucs
  mkdir build; cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/home/[username]/local/qucs-cmake
  make install

Build Qucs Core

  cd ~/git/qucs/qucs-core/
  mkdir build; cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/home/[username]/local/qucs-cmake -DADMSXML=/path/to/admsXml
  make install
  • After install, remember to copy amdsXml also into ~local/qucs-cmake/bin so it can be used by Qucs.

Test

From the terminal

  export QUCSDIR=/home/[username]/local/qucs-cmake
  ~/local/qucs-cmake/bin/qucs.app/Contents/MacOS/qucs

Final notes

  • Note that the CMakeLists.txt files can be used as projects on the QtCreator IDE. It makes it easier for new contributors.