KLayout Main Sources
Go to file
Matthias Koefferlein eeaab8a417 Bugfix: Region#flatten and Edges#flatten did not update the merged cache to flat and Region#flatten did not produce PolygonRefs 2021-05-29 19:28:56 +02:00
ci-scripts Using recent auditwheel program as the original one does not support manylinux2014 2021-05-01 20:09:30 +02:00
etc Update klayout.desktop for gnome GNOME DE 2020-12-05 15:11:59 +00:00
macbuild Synced with the latest Homebrew formula names. 2021-05-08 22:28:32 +02:00
samples/lvs Some refactoring, better templates 2019-07-13 18:40:00 +02:00
scripts Clarification of negative edge output for two-layer DRC's. 2021-05-26 01:12:35 +02:00
src Bugfix: Region#flatten and Edges#flatten did not update the merged cache to flat and Region#flatten did not produce PolygonRefs 2021-05-29 19:28:56 +02:00
testdata Bugfix: Region#flatten and Edges#flatten did not update the merged cache to flat and Region#flatten did not produce PolygonRefs 2021-05-29 19:28:56 +02:00
.gitignore #730: providing a new Qt module named QtUiTools for QUiLoader class s… (#735) 2021-02-25 21:29:21 +01:00
.travis.yml Cleanup of Travis build matrix (32bit not working because ccache is not available in manylinux2014, python 2.7mu not available in manylinux2014) 2021-05-01 23:29:56 +02:00
CONTRIB Updated CONTRIB file, preparations for RPM building. 2017-09-10 17:42:38 +00:00
COPYRIGHT Updated copyright to 2021 2021-01-05 22:57:48 +01:00
Changelog Somewhat better formatting of release notes 2021-05-01 16:04:02 +02:00
Changelog.Debian Final touches before 0.27 release 2021-05-01 00:42:10 +02:00
Jenkinsfile Netlist compare: Ambiguity resolution through name matching now default (can be turned off) (#594) 2020-06-29 20:47:57 +02:00
Jenkinsfile-publish-doc Disable concurrent builds on Jenkins 2020-03-29 10:41:27 +02:00
Jenkinsfile-publish-sources Disable concurrent builds on Jenkins 2020-03-29 10:41:27 +02:00
LICENSE Initial commit 2017-02-12 12:54:21 +01:00
MANIFEST.in include version.sh in MANIFEST.in 2020-11-27 18:40:28 +01:00
Makefile WIP: Parametrizing macbuild to make custom installations easier (#680) 2020-11-21 22:09:03 +01:00
README.md Windows build script and setup.py for Anaconda (install needs testing). 2018-09-13 01:11:18 +02:00
azure-pipelines.yml Trying to fix Azure build issue due to revoked permissions on https://dl.bintray.com 2021-05-04 23:18:20 +02:00
build.bat Updated build.bat script with new Qt module selection options 2021-04-14 21:49:12 +02:00
build.sh Fine-grained Qt module selection for Qt binding and disabling of view_25d plugin without OpenGL 2021-03-02 23:28:35 +01:00
build4mac.py adding symlinks to build4mac scripts 2018-03-16 17:01:56 -04:00
dropbox-deployment.yml pushing wheel to dropbox 2018-07-16 22:26:17 -04:00
makeDMG4mac.py adding symlinks to build4mac scripts 2018-03-16 17:01:56 -04:00
setup.py Provide version #defines for setup.py too 2021-02-01 22:57:55 +01:00
travis-build.sh minor edit in logging 2019-04-05 12:47:06 -04:00
version.sh PyPI version 0.27.0, dropped CentOS5+6 from manilinux builds as STL wasn't compatible with std::unique_ptr anymore 2021-05-01 17:00:12 +02:00

README.md

klayout

This repository will hold the main sources for the KLayout project.

Plugins can be included into the "plugins" directory from external sources.

For more details see http://www.klayout.org.

Building requirements

Building on Linux:

  • Qt 4.7 or later (4.6 with some restrictions) or Qt 5
  • gcc 4.6 or later or clang 3.8 or later

Building on Windows with MSYS2:

  • MSYS2 with gcc, Qt4 or 5, zlib, ruby and python packages installed

Building on Windows with MSVC 2017:

  • MSVC 2017
  • Build requisites from klayout-kit

For more build instructions see http://www.klayout.de/build.html.

Build options

  • Ruby: with this option, Ruby scripts can be executed and developped within KLayout. Ruby support is detected automatically by the build script.
  • Python: with this option, Python scripts can be executed and developped within KLayout. Python support is detected automatically by the build script.
  • Qt binding: with this option, Qt objects are made available to Ruby and Python scripts. Qt bindings are enabled by default. Qt binding offers an option to create custom user interfaces from scripts and to interact with KLayout's main GUI. On the other hand, they provide a considerable overhead when building and running the application.
  • 64 bit coordinate support: with this option, the coordinate type used internally is extended to 64bit as compared to 32bit in the standard version. This will duplicate memory requirements for coordinate lists, but allow a larger design space. 64bit coordinate support is experimental and disabled by default.

Building instructions (Linux)

Plain building for Qt4

./build.sh

Plain building for Qt5

./build.sh -qt5

Building without Qt binding

./build.sh -without-qtbinding

Debug build

./build.sh -debug

Building with a particular Ruby version

./build.sh -ruby <path-to-ruby>

(path-to-ruby is the full path of the particular ruby interpreter)

Building with a particular Python version

./build.sh -python <path-to-python>

(path-to-python is the full path of the particular python interpreter)

Building with a particular Qt version

./build.sh -qmake <path-to-qmake>

(path-to-qmake is the full path of the particular qmake installation)

Building with 64bit coordinate support (experimental)

./build.sh -with-64bit-coord

Pass make options

./build.sh -j4

(for running 4 jobs in parallel)

More options

For more options use

./build.sh -h

Running the Test Suite (Linux)

Go to the build directory (i.e. "bin-release") and enter

export TESTTMP=testtmp    # path to a directory that will hold temporary data (will be created)
export TESTSRC=..         # path to the source directory
./ut_runner

For more options use

./ut_runner -h

Build instructions (Windows, MSYS2)

From the MSYS2 MinGW bash (32 bit or 64 bit) use the same commands as for Linux to build the binaries.

Build instructions (Windows, MSVC 2017)

The combination supported and tested was Qt 5.11/MSVC 2017 64bit. It's sufficient to install the build tools from MSVC's community edition.

A build script similar to build.sh is provided for Windows (build.bat).

For details about this build script use

build.bat -h

For MSVC builds a number of third party libraries are required:

  • Ruby
  • Python
  • zlib
  • expat
  • curl
  • pthread-win

The "klayout-bits4msvc2017" project (https://github.com/klayoutmatthias/klayout_bits4msvc2017) targets towards providing a binary distribution for this purpose. See the release notes there for download links. Download the .zip archive from there and unpack it to some folder, e.g. "c:\klayout-bits".

The build script needs the path to this package. "qmake" and (for obtaining the build version) "git" should be in the path. If qmake is not in the path, you can use "build.bat -qmake ..." to specify qmake's path.

Here is an example for the build.bat call:

build.bat -bits c:\klayout-bits

The 3rd party bits kit can also be used to build the Python standalone package on setuptools. Specify the full path to the 3rd party package up to the compiler and architecture. On 64bit with the bits package installed in "c:\klayout-bits" the build call is this:

set KLAYOUT_BITS=c:\klayout-bits\msvc2017\x64
python setup.py build