Download And Build
Pick your platform and select a download link in the respective section.
Linux packages are signed with the GPG public key (Matthias Koefferlein). Windows packages are signed with a code signing certificate (issued by Certum) as: "Open Source Developer, Matthias Koefferlein".
Details about the versions can be found in the Release Notes.
Source repository on GitHub
The source repository can be found on GitHub: https://github.com/KLayout/klayout.
Packaged Releases for Windows
For the Windows platform, a self-extracting installer binary is available. To install KLayout using the installer, download the executable and run it. It will install the binaries at the target location, which can be selected in the installer user interface. In addition, it will create three KLayout shortcuts in the "Programs" section of the start menu. It will also register itself as handler for file types ".gds" and ".oas" and other related formats.
If the installer is executed from a normal user account, it will install itself for that user only. No particular rights are required in this case. If started with administrator rights, it will install itself for all users.
Alternatively, a zip archive is provided that contains all the required executables and DLL's. A description how to actually build KLayout on Windows using the MSYS2 can be found below.
Linux packages (RPM and DEB)
For CentOS and OpenSuSE systems, RPM packages (.rpm) are provided on the download page. For Ubuntu, Debian packages (.deb) are supplied. Only 64bit systems are supported, because 32bit is about to vanish now. All packages are signed with the GPG public key (Matthias Koefferlein).
Building KLayout on Linux (Version 0.25)
KLayout system requirements are:
A few packages are required:
To build KLayout, unpack the source tar archive and run the build script:
tar hzxvf klayout-*.tar.gz cd klayout-* ./build.sh
You can supply various options to configure the build:
For more options see build.sh -help.
After the build has finished successfully, the binaries will be found in bin-release by default. A different installation target can be specified with the -bin option.
Building KLayout on Windows (Version 0.25)
With version 0.25, building on Windows is based on the MINGW emulation library. MSYS2 is recommended as the build environment. MSYS2 can be downloaded here: "http://www.msys2.org/.
MSYS2 has three target systems: "mingw64" as a build environment for 64bit applications, "mingw32" for 32bit applications and "msys2" for build runtime. A variety of packages need to installed using the "pacman" package manager or MSYS2. To install these packages, open a MSYS2 shell and install the packages with pacman:
For 64 bit:
pacman -S make zip mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-python3 mingw-w64-x86_64-qt5 mingw-w64-x86_64-ruby
For 32 bit:
pacman -S make zip mingw-w64-i686-gcc mingw-w64-i686-make mingw-w64-i686-python3 mingw-w64-i686-qt5 mingw-w64-i686-ruby
To build KLayout, open a MINGW64 (for 64 bit builds) or MINGW32 shell (for 32 bit builds) and proceed the same way as for a Linux build (see above).
A build script that includes installer generation into the build step is provided by the "deploy-win-mingw.sh" script inside the "scripts" directory. This script requires MSYS2, the packages mentioned above and the NSIS installer. Run this script from the MSYS2 shell in the root menu as:
./scripts/deploy-win-mingw.sh -32 # (32 bit only) or ./scripts/deploy-win-mingw.sh -64 # (64 bit only) or ./scripts/deploy-win-mingw.sh # (both)
The details (NSIS path, python and ruby interpreter) are found at the beginning of the script and can be adjusted there.
Build instructions for version 0.24 and earlier
Build instructions for earlier versions can be found here.