GNU General Public License v3.0

项目介绍

KLayout/klayout 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 GNU General Public License v3.0 许可证,目前获得 1.3k 个 Star、312 次 Fork。

仓库全名
KLayout/klayout
开源许可证
GNU General Public License v3.0
Star 数
1.3k
Fork 数
312
未关闭 Issue
215

README 摘要

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), Qt 5 or Qt 6 gcc 4.6 or later or clang 3.8 or later Building on Windows with MSYS2: MSYS2 with gcc, Qt4, 5 or 6, zlib, ruby and python…

完整内容见 GitHub 原始 README 或本页 。

常见问题

klayout 用什么语言开发?

主要使用 C++ 编写,采用 GNU General Public License v3.0 许可证,目前有 1.3k 个 Star。

klayout 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 klayout 的源码?

可以直接克隆仓库:git clone https://github.com/KLayout/klayout.git,默认分支为 master;安装与运行步骤见仓库 README。

klayout 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 215 个未关闭 Issue;Star 数为 1.3k,可作为社区活跃度的参考。

简要分析

热度分
1920
价值分
837
活跃状态
活跃

语言占比

AppleScript
Batchfile
C
C++
CSS
Cap'n Proto
Makefile
Perl
Python
QMake
Ruby
Shell
templ

Release

README

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), Qt 5 or Qt 6
  • gcc 4.6 or later or clang 3.8 or later

Building on Windows with MSYS2:

  • MSYS2 with gcc, Qt4, 5 or 6, 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, Qt5 and Qt6 (one Qt version installed)

./build.sh

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

评论

暂无评论