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 on Linux:
Building on Windows with MSYS2:
Building on Windows with MSVC 2017:
For more build instructions see http://www.klayout.de/build.html.
./build.sh
./build.sh -qt5
./build.sh -without-qtbinding
./build.sh -debug
./build.sh -ruby <path-to-ruby>
(path-to-ruby is the full path of the particular ruby interpreter)
./build.sh -python <path-to-python>
(path-to-python is the full path of the particular python interpreter)
./build.sh -qmake <path-to-qmake>
(path-to-qmake is the full path of the particular qmake installation)
./build.sh -with-64bit-coord
./build.sh -j4
(for running 4 jobs in parallel)
For more options use
./build.sh -h
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
From the MSYS2 MinGW bash (32 bit or 64 bit) use the same commands as for Linux to build the binaries.
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:
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。