Qucs needs Qt® by Trolltech®. The current version is known to work with Qt 3.1 and later.
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:
$ ./configure
Now compile the package:
$ make
Install 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.
For further information on installing the package, please consult the
file INSTALL included in the distribution.qucs-<version>-setup.exeThe relocations of the package (the location where the package gets installed) is mainly steered by environment variables. During a normal installation the appropriate environment variables are automatically set for the user who installed the package.
freehdl-<version>-setup.exemust be downloaded and installed. It requires the MinGW32 compiler. If it is not already installed, it's possible to install a prepared binary package for this, too.
mingw32-g++-<version>-setup.exeIt contains the minimal MinGW32 installation required to work with FreeHDL and should be installed proir to the FreeHDL package.
iverilog-<version>_setup.exemust be installed on the computer additionally. Please note that it is necessary to install it in a path location without spaces due to a limitation in the software. Current versions can be obtained at http://bleyer.org/icarus/.
To install X11 (if you do not already have it), insert your MacOS installation DVD, scroll down, open "Optional Installs" and choose the package "X11" for installation. Finish the installation.
An easy way of installing Qt3 is using DarwinPorts. With DarwinPorts
you can install MacOS versions of many known open source
projects by using simple commands.
Get it here: http://darwinports.com/
Download the .dmg file from there, open it and install the DarwinPorts
package. After that, DarwinPorts needs to be updated to the
most recent version. Open a shell and type the following commmand
(you will be asked for your password):
$ sudo port -d selfupdateNow it is time to get Qt3. In the shell, type this command:
$ sudo port install qt3Now DarwinPorts will fetch a lot of packages which are needed to install Qt3. Be patient, this will take some time. Once finished, you need to export a new environment variable. Do this by typing the following two lines into your shell:
$ QTDIR=/opt/local/lib/qt3 $ export QTDIRDo not close the shell, we'll need it with the above environment variable for the installation of Qucs.
You should get the latest version of Qucs now. I wrote this article
using qucs-0.0.11, but this should work for future versions, too.
I assume you have downloaded the Qucs source code to
Documents/qucs-0.0.11.tar.gz, so we can use our shell to extract
the source files with the following commands:
$ cd Documents $ tar xvzf qucs-0.0.11.tar.gzNow compile Qucs:
$ cd qucs-0.0.11 $ ./configure $ make $ sudo make install $ sudo ln -s /usr/local/bin/qucs /Applications/qucs
$ 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.
$ sudo ln -s /opt/local/bin/qucs /Applications/qucs
qucs-<version>-macosx-<platform>.pkgCopy this file onto your desktop and double-click it. Follow the installer instructions.