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)
Get The Latest Source Tarball
- Qucs version 0.0.17
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 $ qucsator
--disable-admsoption to configure.
- Cygwin natively -- tested
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.
- 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
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
- MSVC natively -- tested
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.
Mac OS 10.5 64-bit is the minimum version supported by Qt4.
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.
With all dependencies in place, the build process is similar to the steps outlined above.
Under Mac OS applications are actually directory structures (bundles) where the binaries, icons, etc. are all stored. These are created during the make install step (starting from Qucs version 0.0.15 on).
Finally you can link the main Qucs application into your Applications folder by running the following command.
$ ln -s /usr/local/bin/qucs.app /Applications/qucs.app