Build Windows (original) (raw)

Build Instructions

Note:

Download MSYS2

Install the needed packages

The following commands will be typed in the MSYS2 shell environment.

Note

Apparently on Windows 10 setting --prefix=/usr/local is needed, otherwise the default installation directory is /mingw64. It can be omitted for other Windows versions.

Download and compile admsXml

wget.exe http://sourceforge.net/projects/mot-adms/files/adms-source/2.3/adms-2.3.4.tar.gz
tar -xf adms-2.3.4.tar.gz
cd adms-2.3.4
./configure --prefix=/usr/local && make install
cd ..

Get the Qucs source code

Clone the Git repository

git clone https://github.com/Qucs/qucs.git

Build the Qucs GUI application

Building the documentation will be disabled, as it requires a lot of dependencies. Ready-made PDF files for all the Qucs documentation for the current release can be found at https://sourceforge.net/projects/qucs/files/qucs-binary/0.0.19/

cd qucs 
./bootstrap
QTDIR=/c/msys64/mingw64/ ./configure --disable-doc --prefix=/usr/local
make install
cd ..

Qucs will be installed in /usr/local/bin

run qucs -v to check it's working correctly

Build Qucs-core

cd qucs-core 
./bootstrap
./configure --disable-dependency-tracking --with-mkadms=`which admsXml`
 make install
cd ..

the Qucs simulator will be installed in /usr/local/bin

run qucsator -v to check it's working correctly


OLD Build Instructions - Windows 8.1 - MinGW 4.8.2 - Qt 4.8.6

This page contains instructions on how to build and install with the Autotools and CMake build systems. The install path can be any of your choice, here we use C:\qucs-auto\ and C:\qucs-cmake to make a distinction.

Tested with Windows 8.1 Enterprise 90-day evaluation version, installed on a [Virtual box instance](instructions http://betanews.com/2013/10/21/install-windows-8-1-on-oracle-virtualbox/).

Dependencies

MinGW compiler

Qt

Git

Get pre-compiled gperf and admsXml


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


Build with Autotools / MSYS

Install MSYS terminal and further development tools

Build Qucs GUI (and tools)

  export QTDIR=/c/Qt/4.8.6/
  cd /c/git/qucs/qucs
  sh autogen.sh
  ./configure --enable-maintainer-mode --prefix=/c/qucs-auto/
  make
  make install

Build Qucs Core

  cd /c/git/qucs/qucs-core
  sh bootstrap.sh
  ./configure --enable-maintainer-mode --with-mkadms=/mingw/bin/admsXml.exe --prefix=/c/qucs-auto/
  make
  make install

After install, remember to copy amdsXml.exe also into C:\qucs-auto\bin so it can be used by Qucs.

Test

From the MSYS terminal

  export QUCSDIR=c:\qucs-auto
  /c/qucs-auto/bin/qucs

Build with Cmake / cmd terminal

Build Qucs GUI (and tools)

Open a cmd window

  cd C:\git\qucs\qucs
  mkdir build
  cd build
  cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\qucs-cmake
  make install

Build Qucs Core

  cd C:\git\qucs\qucs-core
  mkdir build
  cd build
  cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\qucs-cmake
  make install

Test

From the cmd terminal

  set QUCSDIR=c:\qucs-cmake
  c:\qucs-cmake\bin\qucs.exe

Debug

The debug messages on Windows are normally sent to the debugger, not the console. Qucs has a redirection routine to handle the situation (see qucs/main.cpp method qucsMessageOutput).

The user has to install the DebugView tool to intercept the debug messages from Qucs. Open DebugView before running Qucs. It should capture the debug messages that are normally printed to the console on Linux/OSX.

Final notes