Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Build Linux

guitorri edited this page Oct 27, 2014 · 5 revisions

Build Instructions - Debian - Qt 4.8.5 - GCC 4.7

Debian requisites

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

Extra for ADMS compiled with Autotools

sudo apt-get install libxml2 libxml2-dev
sudo apt-get install zlib1g zlib1g-dev
sudo cpan -i XML::LibXML
sudo apt-get install libgd2-xpm-dev
sudo cpan -f GD

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 with Autotools

  cd ~/git/qucs-git/qucs
  sh autogen.sh
  ./configure --enable-maintainer-mode --prefix=/home/`id -un`/local/qucs-auto
  make install
  cd ~/git/qucs-git/qucs-core/
  sh bootstrap.sh
  ./configure --enable-maintainer-mode --prefix=/home/`id -un`/local/qucs-auto
  make install

Test

From the terminal

  export QUCSDIR=/home/`id -un`/local/qucs-auto
  ~/local/qucs-auto/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-git/qucs
  mkdir build; cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/home/[username]/local/qucs-cmake
  make install

Build Qucs Core

  cd ~/git/qucs-git/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.
Clone this wiki locally