It looks like you're new here. If you want to get involved, click one of these buttons!
Hi all,
New member to the Discussion forum here. Please let me know if I'm doing something inaapropriate.
I'm on a freshly upgraded Fedora Core 30 system. So I figured I needed to build my ow copy of klayout from source. I used the klayout-0.25.9.gz tarball, which bombed when trying to include stdlib.h. I'm guessing I don't have the right libraries installed. Is there a summary of the required libraries/supporting packages available?
Thanks much,
-bill richards-
Comments
Hi Bill,
it's OK to ask such questions here
You'll find a list of packages for some Linuxes here: https://www.klayout.de/build.html
A first test with a Docker image (fedora:30) tells me you'll probably need these packages: gcc g++ make ruby ruby-devel qt-devel python3-devel.
Matthias
Thanks much Matthias,
I'll check out my configuration based on the package list you suggested.
-bill-
Hi Matthias,
I spent a little time downloading and trying the klayout build with different package versions. Things seemed to generally work, but I ended up with the error as shown below. Is this still a package version issue encountered during the make? Or am I still nissing something?
Thanks for any suggestions...
-bill-
Hi again Matthias,
Oops. In my last post, it looks like I screwed up the formatting in the "Leave a Comment" text box. Sorry about that! Is there a way to cleanly embed code on a Linux box?
Thanks much,
-bill-
Nice image. I like it. HTML art :-)
You can include code by putting a triple backtick line before and after.
Looks like Qt headers are not installed or are only partially installed. Did you install "qt-devel" or "qt5-devel"? That's the package which - as far as I see - provides these headers.
From the log it looks like you're using Qt5's qmake. Please check with "qmake -v". If that is some 5.x.y version, you need to install Qt5 headers too (usually qmake and the headers come with the same package).
If you have more than one qmake and want a specific version to be used, you can pick one with
Matthias
Still no luck. It looks like I have both the qt and qt5 libraries installed, as well as gcc and g++. Also, I did not find a qmake on the system; but a qmake-qt4 and qmake-qt5. I tried making klayout using:
and saw (truncated) output as follows:
Is this still a library package installation problem?
-bill-
Hi Bill,
that's just the tail of the log. I'd need more.
But this doesn't really lead anywhere. I don't know what's with your installation.
But luckily we live in the 21st century. We have Docker. You should install Docker and do the build there. Here is my Dockerfile:
After you have built KLayout with
you can pull out the binaries from the Docker image with:
This was working for me and has to work for you too.
Matthias
Hi Matthias,
Sorry to be a bother. I've never used Docker, and will check it out. I agree... something is boogered up with my FC30 installation. Hopefully the use of Docker will not only lead to a successful klayout make, but point to the problems with my system as well.
Thanks much for your help,
-bill-
If you want to try: I have uploaded the output of the above run here: https://www.klayout.org/downloads/etc/klayout-0.26-fedora30.tar.gz
It's not a RPM, but the binaries produced for version 0.26. You might be able to run them when you set LD_LIBRARY_PATH to the absolute path where you unpacked the tar file (I assume it will find the Qt libraries without this).
Matthias