Build Darwin (original) (raw)
Build Instructions - OS X 10.9.2 - Xcode 5.1 - Qt 4.8.6
Note:
- Apple Xcode and Command Line Tools will be required
- Check Travis script to see how the
develop
branch is being build on every change.
Install Qt
- Download from Digia
- Package manager, see details below
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
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
For CMake builds, also add
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
- Download a snapshot from the repository:
- Extract into
~/git/qucs
Build with Autotools
Build Qucs GUI (and tools)
cd ~/git/qucs/qucs
sh autogen.sh
./configure --prefix=/Users/[username]/local/qucs-auto
make install
Build Qucs Core
cd ~/git/qucs/qucs-core/
sh bootstrap.sh
./configure --prefix=/Users/[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
If using MacPorts, the following must be typed at the terminal:
export PATH=$PATH:/opt/local/libexec/qt4/bin:/opt/local
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=/Users/[username]/local/qucs-cmake
make install
Build Qucs Core
cd ~/git/qucs/qucs-core/
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/Users/[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=/Users/[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.