Source Build Requirements
- Linux, Macintosh OS (64-bit), Windows
- Qt4 installation, version >= 4.6 (with Qt3Support)
- C++ compiler
- Autoconf version 2.64 (at least)
- GNU automake 1.7.0 (at least)
- flex 2.5.31 (but at least 2.5.9)
- GNU Bison 1.875d
- GNU M4 (any version)
- GNU gperf 3.0.1
- ADMS 2.3.0 (included in Qucs source)
- Perl (modules XML-LibXML, GD)
- GNU Libtool
Documentation Build Requirements
- LaTex installation.
- IEEEtran bibstyle
- GNU Octave
- epsTk 2.0.1 (at least)
Updtaded build instructions for: Darwin (Mac OSX), Linux , Windows
Get The Latest Source Tarball: Qucs Source
Build From Distributable Sources
Unpack the distribution tarball:
$ tar xvzf qucs-<version>.tar.gz (using GNU tar) $ gzip -cd qucs-<version>.tar.gz | tar xvf - (using another tar)
Change into the source directory:
$ cd qucs-<version>Configure the source package for your system:
$ ./configureNow compile the package:
$ makeInstall Qucs:
$ make install
You must have root privileges if you want to install the package in the standard location (/usr/local) or in any location that is only writable by root. Run configure --help for information on installing elswhere. For further information on installing the package, please consult the file INSTALL included in the distribution.
Please note: Users of the FreeBSD OS may use a GNU make (probably gmake) to compile and install the package.
Please make sure you have Git installed.
Cloning for the first time
$ cd ~ $ git clone git://git.code.sf.net/p/qucs/git qucs-git
- Build the Qucs GUI applications:
$ cd ~/git/qucs-git/qucs $ sh autogen.sh $ ./configure --enable-maintainer-mode --prefix=/installation/path $ make $ make install
- Build the Qucs core:
$ cd ~/git/qucs-git/qucs-core $ sh bootstrap.sh $ ./configure --enable-maintainer-mode --prefix=/installation/path $ make $ make install
- Build the Qucs documentation:
$cd ~/git/qucs-git/qucs-doc/ $sh autogen.sh $ ./configure --enable-maintainer-mode --prefix=/installation/path $make $make install
- For testing the installation the
user can the to installed binaries.
$ cd /installation/path/bin $ qucs $ qucsatorTo run with a specific language set:
$ cd /tmp/qucs/bin $ LANG=de ./qucs
--disable-admsoption to configure.
- MinGW32 natively -- tested (Windows XP, Qt 4.8.5, Qucs Git master post 0.0.17)
A draft for the build instructions can be found here.
In this instructions pre-compiled binaries are used to reduce dependencies and save time.
- MinGW32 cross-compiling -- tested (used for Win32 release build)
For latest information consult release scritps ont the repository (qucs/qucs/contrib)
This is the preferred method to build Qucs for Win32. On an Debian system the mingw32-cross compiler is available. The Q../Free version can be built using either cross-compiling or also natively. Once this has been accomplished it is possible to compile Qucs.
$ QTDIR=/path/to/qt i386-mingw32-configure --prefix=/mingw $ make $ make install
- Cygwin natively -- not tested recently
This works out of the box very likely on a usual GNU/Linux system. Of course Qt® and the X-Server including development files must be installed.
- MSVC natively -- not teste recently
The Git sources contain some extra *.ap files and a perl script which produces the appropriate project files (*.dsp and *.dsw).
$ sh autodsp.sh
With the Q../Free version compiled using MSVC and setting QTDIR appropriately it is possible to use the qucs.dsw and qucscore.dsw files to compile Qucs with MSVC.
Users interested in using FreeHDL, and the Verilog-A dynamic loader will need to install a compiler (Apple Xcode).
In such case we recommend the use of a package manager to handle the instalation of the dependencies and build the tools. We recoment either MacPorts or Homebrew. Please contact the package maintainer if it is not yet updated to the latest version of Qucs.
Note that due to limitation in Qt4 your platfomr should be newer than Mac OS 10.5 64-bit.
In order to build Qucs on a Mac OS you need to have Apple's latest Xcode and/or Command Line Tools. The compilation toolchain can be obtained by downloading Xcode (free Apple account required). The Command Line Tools can be installed from within Xcode preferences.
- Building using MacPorts
To install Qucs, you need to install MacPorts (after Xcode and Command Line Tools, see below).
Installing MacPorts and Qucs
With MacPorts you can install MacOS versions of many known open source projects by using simple commands.
Get it here: http://www.macports.org/
Please follow the installation instructions to get Xcode and the Command Line Tools. After its installation, MacPorts needs to be updated to the most recent version. Open a Terminal shell and type the following commmand (you will be asked for your password):
$ sudo port -d selfupdateNow it is time to get Qucs. In the shell, type this command:
$ sudo port install qucsMacPorts will fetch, decompress, compile and install a lot of packages which are needed to install Qucs. Be patient, this will take some time.
After installation Qucs will be placed into /opt/local/bin. If you want, you can create a link to your Applications folder with the following command:
$ sudo ln -s /opt/local/bin/qucs /Applications/qucs
- Installing MacPorts and Qucs
- Building using Homebrew
To install Qucs, you need to install Homebrew (after Xcode and Command Line Tools, see instructions).
Installing Homebrew and Qucs
Follow the instruction to install Homebrew: http://brew.sh/
Update the homebrew formulas, add a homebrew tap containing the Qucs formula.
$ brew update $ brew tap guitorri/tapIt is necessary to rebuild Qt4 with Qt3Support. The default prebuild Qt bottle does not include it. This step might take ~20min depending on your machine.
$ brew install qt --with-qt3supportBuild and install Qucs.
$ brew install qucsHomebrew can create symbolic links of installed packages into /Applications, run:
$ brew linkapps
- Installing Homebrew and Qucs