-
Notifications
You must be signed in to change notification settings - Fork 213
Build Darwin
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.
-
Download from Digia
-
Package manager, see details below
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
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
sudo port install cmake
Either (1) clone the Git repository or (2) download a repository snapshot.
cd
mkdir git; cd git
git clone git://git.code.sf.net/p/qucs/git qucs
-
Download a snapshot from the repository:
-
Extract into
~/git/qucs
cd ~/git/qucs/qucs
sh autogen.sh
./configure --prefix=/Users/[username]/local/qucs-auto
make install
cd ~/git/qucs/qucs-core/
sh bootstrap.sh
./configure --prefix=/Users/[username]/local/qucs-auto
make install
From the terminal
export QUCSDIR=/User/[username]/local/qucs-auto
~/local/qucs-auto/bin/qucs
If using MacPorts, the following must be typed at the terminal:
export PATH=$PATH:/opt/local/libexec/qt4/bin:/opt/local
A version of ADMS with CMake build can be found here
cd ~/git/qucs/qucs
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/Users/[username]/local/qucs-cmake
make install
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/
From the terminal
export QUCSDIR=/Users/[username]/local/qucs-cmake
~/local/qucs-cmake/bin/qucs.app/Contents/MacOS/qucs
- Note that the
CMakeLists.txt
files can be used as projects on the QtCreator IDE. It makes it easier for new contributors.
[ Home | Development | Examples ]