You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/maintainer/knowledge_base.md
+5-32Lines changed: 5 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -697,12 +697,7 @@ practice has been deprecated.) To add a new CDT, make a PR on the
697
697
698
698
1. When there are system specific configurations are used by the library.
699
699
Some examples include:
700
-
1. OpenGL: if we provided the OpenGL loader library `libglvnd`.
701
-
and the user's system is not using `libglvnd`, then we cannot load the vendor-specific
702
-
implementations losing out on accelerator/hardware optimized performance.
703
-
(This is only on old distributions and we may finally be able to package `libglvnd`
704
-
ourselves)
705
-
2. linux-pam: This is a library that allows pluggable authentication modules and the
700
+
1. linux-pam: This is a library that allows pluggable authentication modules and the
706
701
configuration files for these modules usually live in `/etc/pam.d`. The issue is that
707
702
the pluggable modules live in a distro specific location. For example:
708
703
`/usr/lib/x86_64-linux-gnu/security/`. The default modules are built into the
@@ -730,41 +725,19 @@ practice has been deprecated.) To add a new CDT, make a PR on the
730
725
run OpenCL because we have a conda packaged installation, but if there is a system wide
731
726
implementation that is accelerated by specific hardware, we can use those.
732
727
733
-
In conda-forge the primary usages of CDTs is currently for packages that link against libGL.
734
-
735
728
<a id="libgl"></a>
736
729
737
-
#### libGL
730
+
### libGL
738
731
739
-
In addition to the required compilers `{{ compiler('c') }}` and/or `{{ compiler('cxx') }}`,
740
-
the following CDT packages are required for linking against libGL:
732
+
Note that packages dependent on OpenGL and/or libGL should no longer use CDTs. Instead, use the host dependency `libgl-devel` from the [libglvnd-feedstock](https://github.com/conda-forge/libglvnd-feedstock).
741
733
742
734
```yaml
743
735
requirements:
744
-
build:
745
-
- {{ cdt('mesa-libgl-devel') }} # [linux]
746
-
- {{ cdt('mesa-dri-drivers') }} # [linux]
747
-
- {{ cdt('libselinux') }} # [linux]
748
-
- {{ cdt('libxdamage') }} # [linux]
749
-
- {{ cdt('libxxf86vm') }} # [linux]
750
-
- {{ cdt('libxext') }} # [linux]
751
736
host:
752
-
- xorg-libxfixes # [linux]
753
-
```
754
-
755
-
If you need a fully functional binary in the test phase, you have to also provide the shared
756
-
libraries via `yum_requirements.txt` (see [yum_requirements.txt](#yum-deps)).
757
-
758
-
```text
759
-
mesa-libGL
760
-
mesa-dri-drivers
761
-
libselinux
762
-
libXdamage
763
-
libXxf86vm
764
-
libXext
737
+
- libgl-devel # [linux]
765
738
```
766
739
767
-
You will need to re-render the feedstock after making these changes.
740
+
Other OpenGL API variants such as `libegl-devel`, `libgles-devel`, `libglx-devel`, and `libopengl-devel` are also available, and will automatically add non-development `run_exports` dependencies.
Copy file name to clipboardExpand all lines: docs/maintainer/maintainer_faq.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,15 @@ Error:
131
131
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
132
132
```
133
133
134
-
If you saw this error while building a package in your feedstock, create a [yum_requirements.txt](knowledge_base.md#yum-deps) file and add `mesa-libGL`. See also [CDTs: `libgl`](./knowledge_base.md#libgl).
134
+
If you saw this error while building a package in your feedstock, add the Linux host dependency `libgl-devel`, provided by the [libglvnd-feedstock](https://github.com/conda-forge/libglvnd-feedstock).
135
+
136
+
```yaml
137
+
requirements:
138
+
host:
139
+
- libgl-devel # [linux]
140
+
```
141
+
142
+
Other OpenGL API variants such as `libegl-devel`, `libgles-devel`, `libglx-devel`, and `libopengl-devel` are also available, and will automatically add non-development `run_exports` dependencies.
135
143
136
144
If you are seeing this error after installing a package locally, then you are missing an [OpenGL](https://en.wikipedia.org/wiki/OpenGL) provider in your system dependencies. This is more likely to happen in headless systems with no graphics (servers, Docker images, etc). To fix it, you must install a provider like [Mesa](https://www.mesa3d.org/) with your system package manager.
0 commit comments