David Lindley
02/09/2024, 9:34 PMTim Edwards
02/09/2024, 10:09 PMsudo apt install qtcreator qtbase5-dev qt5-qmake
sudo apt install qtmultimedia5-dev libqt5xmlpatterns5-dev
sudo apt install libqt5svg5-dev qttools5-dev-tools qttools5-dev
sudo apt install python3-dev
git clone <https://github.com/KLayout/klayout>
cd klayout
./build.sh
echo Put Klayout in a normal system executable path
sudo mv bin-release /usr/local/share/klayout
sudo ln -s /usr/local/share/klayout/klayout /usr/local/bin/klayout
sudo cat > /etc/ld.so.conf.d/klayout-x86_64.conf << EOF
/usr/local/share/klayout
EOF
sudo ldconfig
These instructions are from my writeup here: https://docs.google.com/document/d/1QXi2kqWgQ8JR_BJCfUgFkQCSSxetXcnWrDHRJdLBsy0, which you may find useful.Mitch Bailey
02/10/2024, 12:20 AMqmake
lookup.David Lindley
02/10/2024, 5:24 PMMitch Bailey
02/10/2024, 5:31 PMScanning installation ..
Version Info:
Version: 0.28.12
Date: 2023-10-18
Revision: 01c19048a
Using qmake: qmake-qt4
Using Ruby interpreter: ruby
Ruby library found: /usr/lib/x86_64-linux-gnu/libruby-2.5.so.2.5.5
Ruby headers found: /usr/include/ruby-2.5.0 and /usr/include/x86_64-linux-gnu/ruby-2.5.0
Ruby installation is in:
- /usr/lib/x86_64-linux-gnu/libruby-2.5.so.2.5.5 (lib)
- /usr/include/ruby-2.5.0 (headers)
- /usr/include/x86_64-linux-gnu/ruby-2.5.0 (arch headers)
Ruby version code is 20505
Using Python interpreter: python3
INFO: Python library not in default path, trying to use MULTIARCH
Python library found: /usr/lib/x86_64-linux-gnu/libpython3.7m.so
Python headers found: /usr/include/python3.7m
Python extension suffix: .cpython-37m-x86_64-linux-gnu.so
Python installation is in:
- /usr/lib/x86_64-linux-gnu/libpython3.7m.so (lib)
- /usr/include/python3.7m (includes)
Features:
Qt bindings enabled
Compilation caching is deactivated!
Installation target: /home/kanobailey/local/bin
Build directory: /home/kanobailey/pull-requests/klayout/build-release
Build flags:
HAVE_RUBY=1
HAVE_PYTHON=1
HAVE_QTBINDINGS=1
HAVE_QT=1
HAVE_QT_UITOOLS=1
HAVE_QT_NETWORK=1
HAVE_QT_SQL=1
HAVE_QT_SVG=1
HAVE_QT_PRINTSUPPORT=1
HAVE_QT_MULTIMEDIA=1
HAVE_QT_DESIGNER=1
HAVE_QT_XML=1
HAVE_64BIT_COORD=0
HAVE_CURL=0
HAVE_PNG=0
HAVE_EXPAT=0
RPATH=/home/kanobailey/local/bin
Building plugins: streamers tools
Running qmake-qt4 ..
QMake version 2.01a
David Lindley
02/10/2024, 5:33 PMMitch Bailey
02/10/2024, 5:43 PMlocate qmake
to see what versions you have installed. Maybe download a newer version and use build.sh -qmake qmake-qt4
.David Lindley
02/12/2024, 7:56 PMMitch Bailey
02/13/2024, 2:11 AMsudo apt install qtcreator qtbase5-dev qt5-qmake
sudo apt install qtmultimedia5-dev libqt5xmlpatterns5-dev
sudo apt install libqt5svg5-dev qttools5-dev-tools qttools5-dev
work?David Lindley
02/13/2024, 2:21 PMsudo apt install git-all
to make sure I had all things git installed, but still get the git2.h include error. How do I get a version without the git header?vks
02/14/2024, 10:48 AMqmake
on RHEL9. It is not getting installed with qt5
.
qt6
does has qmake
but same is not executable in ./build.sh
vks
02/14/2024, 10:53 AMTim Edwards
02/14/2024, 1:49 PMyum install qt-devel
should have installed qmake
.vks
02/14/2024, 4:06 PMqt-devel
. No package found. Appstream-qt-devel is available on rhel-CRB repo but installing it does not seem to make qmake
available somehow. (qmake not found)Tim Edwards
02/14/2024, 6:13 PMyum install qt-devel
on Fedora, which is not far removed from RHEL.vks
02/15/2024, 11:16 AMyum install qt-devel
on RHEL 9.3 and suggest a way forward for klayout installation.David Lindley
02/15/2024, 1:11 PMvks
02/16/2024, 8:07 AMqt-devel
installation as shared above in this thread.Mitch Bailey
02/16/2024, 12:17 PMdnf search qt
to find out what’s available? klayout make should tell you what’s missing, so just keep adding until it works.vks
02/20/2024, 12:54 PMdnf
to install required package.
I tried steps given on Klayout website for installation for Cent OS 8 and was able to complete installation but klayout is still not invoking. Please see output of ./build.sh
in below screenshot. It gives few messages like below, don't think klayout has installed properly. Any suggestions on this issue ?
gmake[2]: Nothing to be done for 'install'.
gmake[2]: Leaving directory
gmake[1]: Nothing to be done for 'install'.
Mitch Bailey
02/20/2024, 1:44 PM./build.sh -prefix <bin-dir>
, klayout will be installed in /root/gits/kayout-0.28.16/bin-release
.
Is this directory in your path? echo $PATH
vks
02/20/2024, 3:59 PMecho $PATH
root@localhost bin-release]# echo $PATH
/root/.local/bin:/root/bin:/usr/share/Modules/bin:/home/raman/.local/bin:/home/raman/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
Any suggestions what should I use with ./build.sh -prefix <bin-dir>
for proper installation ?Mitch Bailey
02/20/2024, 4:05 PM/root/gits/klayout-0.28.16/bin-release
to your path.vks
02/20/2024, 4:10 PMbin-release
folder but it didn't work.
Will adding /`root/gits/klayout-0.28.16/bin-release` to path help in that case ?Mitch Bailey
02/20/2024, 4:29 PMecho Put Klayout in a normal system executable path
sudo mv bin-release /usr/local/share/klayout
sudo ln -s /usr/local/share/klayout/klayout /usr/local/bin/klayout
sudo cat > /etc/ld.so.conf.d/klayout-x86_64.conf << EOF
/usr/local/share/klayout
EOF
sudo ldconfig
vks
02/20/2024, 4:49 PMMitch Bailey
02/20/2024, 5:03 PMbin-release
directory contains a lot of files.
Tim’s solution was to copy that entire directory to a common shared location /usr/local/share/klayout
.
He then linked the executable /usr/local/klayout/klayout
to a common directory on the path /usr/local/bin
.
In order to access all the libraries in /usr/local/share/klayout
, he created a file /etc/ld.so.conf.d/klayout-x86_64.conf
that contained one line
/usr/local/share/klayout
which is the directory containing the libraries and then executed ldconfig
to register those libraries.vks
02/21/2024, 6:13 AMMitch Bailey
02/21/2024, 11:23 AMcd /root/gits/klayout-0.28.16/
sudo mv bin-release /usr/local/share/klayout
sudo ln -s /usr/local/share/klayout/klayout /usr/local/bin/klayout
sudo cat > /etc/ld.so.conf.d/klayout-x86_64.conf <<EOF
/usr/local/share/klayout
EOF
sudo ldconfig
vks
02/21/2024, 12:11 PM./build.sh
as outlined on klayout website.
Additionally, could you advise on whether I can update this current klayout setup for newer versions in future, or would you recommend an alternate way to install it to avoid any issues in future ?Mitch Bailey
02/21/2024, 12:51 PMvks
02/21/2024, 3:16 PM