Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiling Qucs on OS X
Clone this wiki locally
Here are my notes on how to compile Qucs 0.0.18 (master) on OS X 10.8.4.
I used Homebrew to install most of the other dependencies. They provide instructions on how to get it setup.
You can also get the dependencies from MacPorts. The available Qucs Port should be updated as soon as there is new stable release of 0.0.17 (volunteers here?)
You need to have Qt4 with Qt3Support. The latest version is Qt 4.8.5.
With Homebrew you need to compile Qt4 to get Qt3Support (the bottled version doesn't have it).
brew install qt --with-qt3support
The Qt4 official SDK dmg package is also fine.
The OS X shipped pkg-config, autoconf, automake might need and update, you will get complains about versions. (I don't know what are the minimum versions, I had the latest already installed). You also need git for the source code repository.
brew install pkg-config autoconf automake git
Getting the Qucs Source.
The official Qucs repository lives on Sourceforge Qucs git repo.
There is also a official mirror on Github fransschreuder/qucs.
You can get the master branch with:
cd ~ mkdir git; cd git git clone git://git.code.sf.net/p/qucs/git qucs-git
Compiling the Qucs GUI and tools
With the above dependencies and the code, it is a matter of configure/make/install. Just follow the Build Development Sources from Git Repository.
cd ~/git/qucs-git/qucs sh autogen.sh ./configure --prefix=/usr/local --enable-maintainer-mode make make install
The GUI should be functional, try to run
There should be also a alias created under /Applications/qucs.
However, the core solver still needs to be compiled for simulations to work.
Compiling the Qucs core
You might need a newer version of flex for compilation, just
brew install flex.
To compile qucs-core:
cd ~/git/qucs-git/qucs-core/ sh autogen.sh ./configure --prefix=/usr/local --enable-maintainer-mode make make install
Now the GUI should be able to reach the core solver. Qucs should be ready to run simulations!
Qucs can make use ASCO for optimization. It can also use FreeHDL and Icarus Verilog to run digital simulations. (I'm preparing instructions for these)
You need LaTex and ??? not sure... it's been a while I don't compile the documentation
Just like the original instructions
cd ~/git/qucs-git/qucs-doc/ sh autogen.sh ./configure --prefix=/usr/local --enable-maintainer-mode make make install
OS X package
There are configuration files for PackageMaker under
Running them should collect all the installed files into a package.
There is also a uninstall script on the above directory.
The current autotools setup already creates Mac bundles for the GUI applications during
The build with CMake can aslo create Mac bundles for all apps (qusc, qucs-attenuator, qucs-edit, qucs-filter, qucs-help, qucs-lib, qucs-transcalc).