Build Darwin

Tim Molter edited this page Oct 10, 2016 · 3 revisions

Build Instructions - OS X 10.9.2 - Xcode 5.1 - Qt 4.8.6

Note:

  • Apple Xcode and Command Line Tools will be required

Install Qt


Build from repository with Autotools

Dependencies with Homebrew

Follow Homebrew instructions to install Xcode, Command Line Tools, Homebrew, etc.

See also latest stable Qucs Formula.

  brew update
  brew install flex bison git

If you wish to build with Autotools

  brew install autoconf automake

Building ADMS with Autotools require some further Perl modules

  brew install gd
  sudo cpan -f GD  # install into system wide Perl

Otherwise you can give CMake a try

  brew install cmake

In case you want Qt from Homebrew, you need to compile it to get Qt3Support. It is faster to download the installer from Digia.

  brew install qt --with-qt3support

Dependencies with MacPorts

Haven't tested myself! [Guilherme]

Follow MacPorts instructions to install Xcode, Command Line Tools, MacPorts, etc.

See also latest stable Qucs Portfile.

  sudo port -d selfupdate
  sudo port install pkgconfig
  sudo port install qt4-mac
  sudo port install libtool

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

Build Qucs GUI (and tools)

  cd ~/git/qucs/qucs
  sh autogen.sh
  ./configure --enable-maintainer-mode --prefix=/User/[username]/local/qucs-auto
  make install

Build Qucs Core

  cd ~/git/qucs/qucs-core/
  sh bootstrap.sh
  ./configure --enable-maintainer-mode --prefix=/User/[username]/local/qucs-auto
  make install

Test

From the terminal

  export QUCSDIR=/User/[username]/local/qucs-auto
  ~/local/qucs-auto/bin/qucs

Build from repository with CMake

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=/User/[username]/local/qucs-cmake
  make install

Build Qucs Core

  cd ~/git/qucs/qucs-core/
  mkdir build; cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/User/[username]/local/qucs-cmake -DADMSXML=/path/to/admsXml
  make install

Remember to copy admsXml into ~/local/qucs-cmake/bin/

Test

From the terminal

  export QUCSDIR=/User/[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.