Build klayout inside conda environment

Hello,
Has someone experience with building klayout inside a conda environment?
I am trying to build it on a Linux redhat 7 system with python 3.8.1 and qt5 but was not successful. Maybe someone can share a requirement list which works for him/her?

I tried different package combination which end up with different compiling issues. Maybe it is not possible to build it inside a conda environment?

Best regards

Comments

  • edited March 2022

    Could you be a bit more specific? Like indicating what errors you encounter.

    kazzz is using the Anaconda environment to generate builds on MacOS and I did so experimentally on Windows with MSVC 2017, so basically it should work. I have no experience however on RedHat 7. On Linux I still prefer the system package approach. My experience with external package managers on Linux wasn't always encouraging.

    For CentOS 7 I am providing RPM's, so maybe you can simply use those.

    Matthias

  • As Matthias mentioned above, I could successfully build KLayout from its source using Anaconda3 on macOS(Catalina, Big Sur, Monterey) and Linux Mint 19.
    Please refer to the following for the more detailed environments.
    I hope this info helps you.

    Kazzz-S

    [macOS]
    
    (0) (base) MacBookPro2{sekigawa}(1)$ uname -a
        Darwin MacBookPro2.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Jan 13 01:26:33 PST 2022; \
        root:xnu-6153.141.51~3/RELEASE_X86_64 x86_64
    
    (1) Anaconda3 Installation Path
        /Applications/anaconda3/ (can be a symbolic to  ---> $HOME/opt/anaconda3/)
    
    (2) (base) MacBookPro2{sekigawa}(2)$ conda --version
        conda 4.11.0
    
    (3) The three major modules for building KLayout from its source
        qt      5.9.7   h468cd18_1
        python  3.8.2   hc70fcce_0
        ruby    2.5.1   h7107397_0  (must be installed separately; causes the python downgraded to 3.8.2)
    
    (4) The setup for Anaconda3 build
        (base) MacBookPro2{sekigawa}(3)$ ./build4mac.py -q qt5ana3 -p ana3 -r ana3 -c
    
        ### You are going to build KLayout
            for  <Catalina 19.6.0 x86_64>
            with <Qt=Qt5Ana3, Ruby=RubyAnaconda3, Python=PythonAnaconda3>...
    
        {   'bin': 'qt5Ana3.bin.macos-Catalina-release-Rana3Pana3',
            'build': 'qt5Ana3.build.macos-Catalina-release-Rana3Pana3',
            'build_cmd': './build.sh',
            'check_cmd_only': True,
            'debug_mode': False,
            'deploy_tool': '/Applications/anaconda3/bin/macdeployqt',
            'logfile': 'qt5Ana3.build.macos-Catalina-release-Rana3Pana3.log',
            'make_options': '--jobs=4',
            'no_qt_bindings': False,
            'no_qt_uitools': False,
            'project_dir': '/Users/sekigawa/GitWork/klayout',
            'pyinc': '/Applications/anaconda3/include/python3.8',
            'pylib': '/Applications/anaconda3/lib/libpython3.8.dylib',
            'python': '/Applications/anaconda3/bin/python3.8',
            'qmake': '/Applications/anaconda3/bin/qmake',
            'rbinc': '/Applications/anaconda3/include/ruby-2.5.0',
            'rblib': '/Applications/anaconda3/lib/libruby.2.5.1.dylib',
            'rpath': '@executable_path/../Frameworks',
            'ruby': '/Applications/anaconda3/bin/ruby'}
        time \
          ./build.sh  -release \
          -qt5 \
          -qmake /Applications/anaconda3/bin/qmake \
          -bin   qt5Ana3.bin.macos-Catalina-release-Rana3Pana3 \
          -build qt5Ana3.build.macos-Catalina-release-Rana3Pana3 \
          -rpath @executable_path/../Frameworks \
          -with-qtbinding \
          -option --jobs=4 \
          -ruby   /Applications/anaconda3/bin/ruby \
          -rbinc  /Applications/anaconda3/include/ruby-2.5.0 \
          -rblib  /Applications/anaconda3/lib/libruby.2.5.1.dylib \
          -python /Applications/anaconda3/bin/python3.8 \
          -pyinc  /Applications/anaconda3/include/python3.8 \
          -pylib  /Applications/anaconda3/lib/libpython3.8.dylib  2>&1 | tee qt5Ana3.build.macos-Catalina-release-Rana3Pana3.log; \
        test ${PIPESTATUS[0]} -eq 0
    

    ==========================================================================================================

    [Linux Mint 19]
    
    (0) (base) sekigawa@LM19:~/GitWork/klayout$ uname -a
        Linux LM19 5.4.0-100-generic #113~18.04.1-Ubuntu SMP Mon Feb 7 15:02:59 UTC 2022 \
        x86_64 x86_64 x86_64 GNU/Linux
    
    (1) Anaconda3 Installation Path
        $HOME/anaconda3/
    
    (2) (base) sekigawa@LM19:~/GitWork/klayout$ conda --version
        conda 4.11.0
    
    (3) The three major modules for building KLayout from its source
        qt      5.9.7   h5867ecd_1
        python  3.8.12  h12debd9_0
        ruby    2.5.1   haf1161a_0 (must be installed separately; causes the python downgraded to 3.8.12)
    
    (4) The initial parts of the dry-run
        (base) sekigawa@LM19:~/GitWork/klayout$ ./build.sh -dry-run | more
        Scanning installation ..
    
        Version Info:
            Version: 0.27.8
            Date: 2022-03-04
            Revision: cbd805f8e
    
        Using qmake: qmake
    
        Using Ruby interpreter: ruby
            Ruby library found: /home/sekigawa/anaconda3/lib/libruby.so.2.5.1
            Ruby headers found: /home/sekigawa/anaconda3/include/ruby-2.5.0 and\
                                /home/sekigawa/anaconda3/include/ruby-2.5.0/x86_64-linux
            Ruby installation is in:
            - /home/sekigawa/anaconda3/lib/libruby.so.2.5.1 (lib)
            - /home/sekigawa/anaconda3/include/ruby-2.5.0 (headers)
            - /home/sekigawa/anaconda3/include/ruby-2.5.0/x86_64-linux (arch headers)
            Ruby version code is 20501
    
        Using Python interpreter: python3
            Python library found: /home/sekigawa/anaconda3/lib/libpython3.8.so
            Python headers found: /home/sekigawa/anaconda3/include/python3.8
            Python extension suffix: .cpython-38-x86_64-linux-gnu.so
            Python installation is in:
            - /home/sekigawa/anaconda3/lib/libpython3.8.so (lib)
            - /home/sekigawa/anaconda3/include/python3.8 (includes)
    
        Features:
            Qt bindings enabled (Qt 5 API)
            Compilation caching is deactivated!
            Installation target: /home/sekigawa/GitWork/klayout/bin-release
            Build directory: /home/sekigawa/GitWork/klayout/build-release
            Building plugins: streamers tools
    
        Running qmake ..
        QMake version 3.1
        :
        :
    
  • Hello, I am new to Klayout on Mac and I am facing some issues on the installation too! I have downloaded the anaconda package and I have followed the instructions specified in the readme file.
    However, when launching Klayout I encounter the problem in the picture attached.

    can someone help me solving it?

  • edited December 2022

    Hi,

    Please provide some more information.

    1. The name of the package you installed, for example,
      LW-klayout-0.27.13-macOS-Monterey-1-qt5Ana3-Rana3Pana3.dmg

    2. The name of your macOS (version) and outputs of the uname -a command, for example,
      Monterey (12.6.2)

    (base) MacBookPro2{sekigawa} ~ (1)% uname -a
    Darwin MacBookPro2.local 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov  6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 x86_64
    
    1. Your Anaconda3 installation path and version details, for example,
      $HOME/opt/anaconda3/
    (base) MacBookPro2{sekigawa} ~ (2)% python3
    Python 3.8.15 (default, Nov 10 2022, 13:17:42)
    [Clang 14.0.6 ] :: Anaconda, Inc. on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    

    Thanks,
    Kazzz-S

  • Hi,

    I conducted an experiment based on three assumptions.

    [Assumptions]
      (1) You are using macOS 13.1 Ventura (the latest one) with the x86_64 architecture (Intel Mac).
      (2) You have installed "LW-klayout-0.27.13-macOS-Monterey-1-qt5Ana3-Rana3Pana3.dmg".
      (3) The python version of your Anaconda3 is NOT 3.8.x, but another like 3.9.y.
    
    [My Ventura (virtual machine)]
      (base) Ventura1{kazzz-s} lib (1)% uname -a
      Darwin Ventura1.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022;
             root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
    

    [My Anaconda3 setup]
      (base) Ventura1{kazzz-s} /Applications (2)% pwd
      /Applications
    
      (base) Ventura1{kazzz-s} /Applications (3)% ll | grep ana
      lrwxr-xr-x   1 kazzz-s  admin     51 Oct 29 16:57 Anaconda-Navigator.app -> /Users/kazzz-s/opt/anaconda3/Anaconda-Navigator.app
      lrwxr-xr-x   1 kazzz-s  admin     28 Jul 15  2021 anaconda3 -> /Users/kazzz-s/opt/anaconda3
      drwxr-xr-x   3 kazzz-s  admin     96 Dec 26 10:24 klayout-ana3.app  <=== I've renamed the application bundle.
    
      (base) Ventura1{kazzz-s} lib (4)% python3
      Python 3.8.15 (default, Nov 10 2022, 13:17:42)
      [Clang 14.0.6 ] :: Anaconda, Inc. on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>>
    
    [With faulty python3.8.dylib]
      (base) Ventura1{kazzz-s} lib (5)% pwd
      /Users/kazzz-s/opt/anaconda3/lib
    
      (base) Ventura1{kazzz-s} lib (6)% ll | grep python
      drwxr-xr-x   223 kazzz-s  staff       7136 Nov 23 06:43 python3.8
      -rwxrwxr-x     1 kazzz-s  staff    4200784 Nov 23 06:42 xxx-libpython3.8.dylib  <=== I have renamed this to hide!
    

    Then, I got the same error as you.

    [With correct python3.8.dylib]
      (base) Ventura1{kazzz-s} lib (7)% mv  xxx-libpython3.8.dylib  libpython3.8.dylib
    
      (base) Ventura1{kazzz-s} lib (8)% ll | grep python
      -rwxrwxr-x     1 kazzz-s  staff    4200784 Nov 23 06:42 libpython3.8.dylib  <=== This file name is correct!
      drwxr-xr-x   223 kazzz-s  staff       7136 Nov 23 06:43 python3.8
    

    Then, KLayout starts normally as below.

    I initially installed Anaconda3 on a Monterey virtual machine.
    At that time, the Python version was 3.9.x. Then, when I added Ruby by conda install ruby,
    the conda tool resolved the dependency and downgraded Python to 3.8.x.
    After that, I upgrade the Monterey OS to Ventura OS.

    If assumption (3) is correct, you need to downgrade the Python version to 3.8.x to use this particular DMG package.
    Or you need to build KLayout from the source.
    If you inform the output of the conda list | grep -E '(python|ruby)' command like:

    (base) MacBookPro2{sekigawa} ~ (9)% conda list | grep -E '(python|ruby)'
    ipython                   7.31.1           py38hecd8cb5_1
    ipython_genutils          0.2.0              pyhd3eb1b0_1
    msgpack-python            1.0.3            py38haf03e11_0
    python                    3.8.15               h4319210_0  <=================
    python-dateutil           2.8.2              pyhd3eb1b0_0
    python-fastjsonschema     2.16.2           py38hecd8cb5_0
    python-libarchive-c       2.9                pyhd3eb1b0_1
    python-lsp-black          1.2.1            py38hecd8cb5_0
    python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0
    python-lsp-server         1.5.0            py38hecd8cb5_0
    python-slugify            5.0.2              pyhd3eb1b0_0
    python-snappy             0.6.1            py38hcec6c5f_0
    python.app                3                py38hca72f7f_0
    python_abi                3.8                      2_cp38    conda-forge
    ruby                      3.1.2                h471fc2d_0  <=================
    

    I can guide you on how to do it.

    Regards,
    Kazzz-S

  • edited December 2022

    Hello @filmartinelli,

    Here are the second experiment results.

    I have installed the latest Anaconda3 package to a Ventura virtual machine afresh.
    The detailed steps I followed are captured in the attached ZIP file.
    My above assumption (3) seems correct as below.
    In the latest Anaconda3, Python 3.9.15 and Ruby 3.1.2 can coexist; you have not made mistakes.
    :
    Step-9: Final version check

    (base) VenturaB{kazzz-s} /Applications (9)% conda list | grep -E '(qt|python|ruby)'
    ipython                   7.31.1           py39hecd8cb5_1
    ipython_genutils          0.2.0              pyhd3eb1b0_1
    msgpack-python            1.0.3            py39haf03e11_0
    pyqt                      5.15.7           py39he9d5cce_0
    pyqt5-sip                 12.11.0          py39he9d5cce_0
    pyqtwebengine             5.15.7           py39he9d5cce_0
    python                    3.9.15               hdfd78df_0  <===== python=3.9.15
    python-dateutil           2.8.2              pyhd3eb1b0_0
    python-fastjsonschema     2.16.2           py39hecd8cb5_0
    python-libarchive-c       2.9                pyhd3eb1b0_1
    python-lsp-black          1.2.1            py39hecd8cb5_0
    python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0
    python-lsp-server         1.5.0            py39hecd8cb5_0
    python-slugify            5.0.2              pyhd3eb1b0_0
    python-snappy             0.6.1            py39hcec6c5f_0
    python.app                3                py39hca72f7f_0
    qt                        5.15.9               hecd8cb5_0
    qt-main                   5.15.2               h719ae48_7  <===== qt=5.15.2 (core version)
    qt-webengine              5.15.9               h90a370e_4
    qtawesome                 1.0.3              pyhd3eb1b0_0
    qtconsole                 5.3.2            py39hecd8cb5_0
    qtpy                      2.2.0            py39hecd8cb5_0
    qtwebkit                  5.212                h24dc246_4
    ruby                      3.1.2                h471fc2d_0  <===== ruby=3.1.2
    sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0
    

    Step-10: Check the library version

    Last login: Fri Dec 30 21:33:27 on ttys000
    (base) VenturaB{kazzz-s} ~ (10)% cd /Applications/anaconda3/lib
    (base) VenturaB{kazzz-s} lib (11)% ll | grep python
    -rwxrwxr-x     1 kazzz-s  wheel    4003956 Dec 30 21:18 libpython3.9.dylib  <===== 3.9
    drwxr-xr-x   212 kazzz-s  wheel       6784 Dec 30 21:19 python3.9
    

    When KLayout starts...

    So, as I mentioned above, there are two expected options:
    (1) Forcibly downgrade the Python version to 3.8.x.
    (2) Build KLayout from the source with the correct/latest Python and Ruby version combinations.
    I'm going to do (2).

    The 3rd option shown below is risky, and I do not recommend it, however, ...
    (3) !!! WARNING !!! Risky Test: Fake the library version

    (base) VenturaB{kazzz-s} ~ (1)% cd /Applications/anaconda3/lib
    
    (base) VenturaB{kazzz-s} lib (2)% ln -s libpython3.9.dylib libpython3.8.dylib  <===== Make this symbolic link
    
    (base) VenturaB{kazzz-s} lib (3)% ll | grep python
    lrwxr-xr-x     1 kazzz-s  wheel         18 Dec 30 21:45 libpython3.8.dylib -> libpython3.9.dylib  <=====
    -rwxrwxr-x     1 kazzz-s  wheel    4003956 Dec 30 21:18 libpython3.9.dylib
    drwxr-xr-x   212 kazzz-s  wheel       6784 Dec 30 21:19 python3.9
    

    Kazzz-S

  • edited January 2023

    Hello @filmartinelli,

    A happy new year, 2023. :)
    I have built a new DMG for the Anaconda3 environment below on my Ventura virtual machine.
    [Edit] This package can run in not only Ventura but also Monterey, Big Sur, and Catalina, having the same Anaconda3 setup.

    (base) VenturaB{kazzz-s} /Applications (9)% conda list | grep -E '(qt|python|ruby)'
    ipython                   7.31.1           py39hecd8cb5_1
    ipython_genutils          0.2.0              pyhd3eb1b0_1
    msgpack-python            1.0.3            py39haf03e11_0
    pyqt                      5.15.7           py39he9d5cce_0
    pyqt5-sip                 12.11.0          py39he9d5cce_0
    pyqtwebengine             5.15.7           py39he9d5cce_0
    python                    3.9.15               hdfd78df_0  <===== python=3.9.15
    python-dateutil           2.8.2              pyhd3eb1b0_0
    python-fastjsonschema     2.16.2           py39hecd8cb5_0
    python-libarchive-c       2.9                pyhd3eb1b0_1
    python-lsp-black          1.2.1            py39hecd8cb5_0
    python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0
    python-lsp-server         1.5.0            py39hecd8cb5_0
    python-slugify            5.0.2              pyhd3eb1b0_0
    python-snappy             0.6.1            py39hcec6c5f_0
    python.app                3                py39hca72f7f_0
    qt                        5.15.9               hecd8cb5_0
    qt-main                   5.15.2               h719ae48_7  <===== qt=5.15.2
    qt-webengine              5.15.9               h90a370e_4
    qtawesome                 1.0.3              pyhd3eb1b0_0
    qtconsole                 5.3.2            py39hecd8cb5_0
    qtpy                      2.2.0            py39hecd8cb5_0
    qtwebkit                  5.212                h24dc246_4
    ruby                      3.1.2                h471fc2d_0  <===== ruby=3.1.2
    sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0
    
    Download Info.
      Dropbox Link: https://www.dropbox.com/sh/e0kpwn20v2jtk4n/AAAgxR_xjnFg7WVFlhBapGKJa?dl=0
      File Name: LW-klayout-0.28.2-macOS-Ventura-2-qt5Ana3-Rana3Pana3.dmg
      File Size: 86,795,932 bytes
      MD5: b65a2dcf3949c8d1a1969ec43751ea83
    

    Please note that the Dropbox link is temporal; I will delete it after a few weeks.
    I hope this DMG will do for you.

    Kazzz-S

  • Hi Kazzz,

    I am not a mac user but I could go a few step further with my initial issue by your posts.

    I used following conda environment:

    name: klayoutenv
    channels:
      - conda-forge
    dependencies:
      - python==3.9.15
      - qt==5.15.9
      - ruby==3.1.2
      - cxx-compiler==1.5.2
    

    And following build command:
    build.sh -j16 -python ~/.conda/envs/klayoutenv/bin/python3.9 -pyinc ~/.conda/envs/klayoutenv/include/python3.9 -pylib ~/.conda/envs/klayoutenv/lib/libpython3.9.so

    The dry-run is successful but I cannot finish the compiling.

    It crash with following errors:

    g++ -Wl,-O1 -Wl,-rpath,<MY_PATH>/.conda/envs/klayoutenv/lib -Wl,-rpath-link,<MY_PATH>/.conda/envs/klayoutenv/lib -shared -Wl,-soname,libklayout_tl.so.0 -o libklayout_tl.so.0.28.0 tlAssert.o tlBase64.o tlColor.o tlClassRegistry.o tlCopyOnWrite.o tlDataMapping.o tlDeflate.o tlException.o tlExceptions.o tlExpression.o tlEvents.o tlGlobPattern.o tlHeap.o tlHttpStream.o tlInclude.o tlInternational.o tlLog.o tlObject.o tlProgress.o tlPixelBuffer.o tlResources.o tlScriptError.o tlSleep.o tlStaticObjects.o tlStream.o tlString.o tlTimer.o tlVariant.o tlFileUtils.o tlArch.o tlCommandLineParser.o tlUnitTest.o tlInt128Support.o tlXMLParser.o tlXMLWriter.o tlThreadedWorkers.o tlThreads.o tlDeferredExecution.o tlUri.o tlLongInt.o tlUniqueId.o tlList.o tlSList.o tlEquivalenceClusters.o tlUniqueName.o tlRecipe.o tlEnv.o tlHttpStreamQt.o tlWebDAV.o tlDeferredExecutionQt.o tlFileSystemWatcher.o moc_tlHttpStreamQt.o moc_tlDeferredExecutionQt.o moc_tlFileSystemWatcher.o  -lz <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5PrintSupport.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Designer.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5MultimediaWidgets.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Svg.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5UiTools.a -L<MY_PATH>/.conda/envs/klayoutenv/lib -L/opt/conda/conda-bld/qt-main_1660123285207/_build_env/x86_64-conda-linux-gnu/sysroot/usr/lib64 -L/opt/conda/conda-bld/qt-main_1660123285207/_build_env/x86_64-conda-linux-gnu/sysroot/usr/lib -L/opt/conda/conda-bld/qt-main_1660123285207/_build_env/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib64 <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Widgets.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Multimedia.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Gui.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Xml.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5XmlPatterns.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Network.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Sql.so <MY_PATH>/.conda/envs/klayoutenv/lib/libQt5Core.so -lGL -lpthread    
    <MY_PATH>/.conda/envs/klayoutenv/bin/../lib/gcc/x86_64-conda-linux-gnu/11.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lGL: No such file or directory
    collect2: error: ld returned 1 exit status
    gmake[2]: *** [../../../build-release/libklayout_tl.so.0.28.0] Error 1
    

    Do you have a clue why this happens? Or anybody else?

    Thanks and regards

    Grandement

  • Hi @Grandement,

    The build messages show that "libGL.[so|a]" is not found when making libklayout_tl.so.
    Have you installed it?

    My current Anaconda3 environment in Linux Mint 19 is not up to date and is slightly different from my first comment.
    More precisely, I have switched from Anaconda3's Ruby to the OS-bundled one, as shown below.

    With this configuration, so far, I could build four generations of KLayout, namely KLayout 0.27.12, 0.27.13, 0.28.0,
    and 0.28.2 (the latest).

    Now, let's observe the dependency of libklayout_tl.so.
    As you see below, libGL.so.1 under the system's library directory is dynamically linked.
    In other words, it is not a part of Anaconda3 and should be installed separately.

    (base) sekigawa@LM19:~/GitWork/klayout/bin-release$ pwd
    /home/sekigawa/GitWork/klayout/bin-release
    
    (base) sekigawa@LM19:~/GitWork/klayout/bin-release$ ll | grep _tl
    lrwxrwxrwx  1 sekigawa sekigawa       23 12月 27 19:08 libklayout_tl.so -> libklayout_tl.so.0.28.2*
    lrwxrwxrwx  1 sekigawa sekigawa       23 12月 27 19:08 libklayout_tl.so.0 -> libklayout_tl.so.0.28.2*
    lrwxrwxrwx  1 sekigawa sekigawa       24 12月  4 18:51 libklayout_tl.so.0.27 -> libklayout_tl.so.0.27.13*
    -rwxrwxr-x  1 sekigawa sekigawa   995472 11月  9 23:39 libklayout_tl.so.0.27.12*
    -rwxrwxr-x  1 sekigawa sekigawa   995472 12月  4 18:51 libklayout_tl.so.0.27.13*
    lrwxrwxrwx  1 sekigawa sekigawa       23 12月 27 19:08 libklayout_tl.so.0.28 -> libklayout_tl.so.0.28.2*
    -rwxrwxr-x  1 sekigawa sekigawa  1040880 12月 19 23:50 libklayout_tl.so.0.28.0*
    -rwxrwxr-x  1 sekigawa sekigawa  1040880 12月 27 19:08 libklayout_tl.so.0.28.2*
    
    (base) sekigawa@LM19:~/GitWork/klayout/bin-release$ ldd libklayout_tl.so | grep GL
        libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f4635855000)
        libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f46333af000)
        libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f46330f9000)
    

    Next, hmmm, how did I install it? I do not remember. Let's use the Synaptic package manager tool to find it.
    As shown in the image below, libklayout_tl.so was installed as a part of libgl1 package in the case of Linux Mint 19.

    My suggestion is to follow similar steps.

    Kazzz-S

  • Hi @Grandement,

    Recently, I upgraded the Anaconda3 environment in Linux (Mint-19) and encountered the same problem as you:
    cannot find -lGL: No such file or directory.

    I've prepared a PowerPoint document to summarize the experiment results I have conducted so far.

    The document does not provide a direct solution to your problem. However, I hope it will help you to some extent.

    The attached Zip files are also embedded in the PowerPoint document.

    Kazzz-S

  • I don't know from "conda" but I've encountered problems with
    applications "built inside environment", then having serious
    limitations. In my case it was "snap" installations, which carry
    a constraint (aka "sandbox") about what the app will and won't
    see. "For your protection". Only nobody tells you.

    For example, Ubuntu by default installs LibreOffice and TheGimp
    by "snap". I only discovered this because neither would navigate
    to my /projects directory which was mounted at install on a separate
    physical disk. Base apps like File Manager and shell are fine. It's
    all about that "environment" and its built in baggage.

    Took me an evening to ream out all "snap" apps and functionality
    but now my office and graphics apps (reinstalled by apt from
    better sources) are fine.

  • Using scenario B's ana3B-2.sh wrapper Bash script, I was able to successfully build the latest version 0.28.5 in the latest Anaconda3 environment on Linux Mint 19.


    Dependency on Anaconda3 is as follows.

    Kazzz-S

Sign In or Register to comment.