pkgconfig: commit to new library naming scheme#418
pkgconfig: commit to new library naming scheme#418psyke83 wants to merge 1 commit intoraspberrypi:masterfrom
Conversation
Recent firmware images have deprecated the original-named libraries (libEGL, libGLESv1_CM, libGLESv2, libOpenVG). This means that the corresponding dummy .pc files will present issues if installed. Instead, use the proper library names via symlink. These files will only be detected when the variable "PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig" is set manually.
|
I go into more details re: the intent of this PR here: raspberrypi/firmware#857 (comment) The existing glesv2, egl and vg pkgconfig files no longer work as expected due to the libraries being removed from Debian stretch's firmware package. By removing these files and creating symlinks to the brcm versions, it ensures that the new library names are used IFF the PKG_CONFIG_PATH is set. Using the pkgconfig files before applying this PR breaks the build, as /opt/vc/lib/libGLESv2.so is deprecated: pi@retropie:~ $ PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig pkg-config --libs glesv2 With the PR, it will refer to the correct library: pi@retropie:~ $ PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig pkg-config --libs glesv2 This PR won't interfere with the standard libraries by default (as long as the pkgconfig remains in a nonstandard search path, i.e. /opt/vc/lib/pkgconfig): pi@retropie:~ $ PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig pkg-config --libs glesv2 |
|
This PR was aimed towards Raspbian. Will close this, as the upcoming firmware packages will include only the non-conflicting files, so that's a good compromise. Thanks. |
Recent firmware images have deprecated the original-named libraries
(libEGL, libGLESv1_CM, libGLESv2, libOpenVG). This means that the
corresponding dummy .pc files will present issues if installed.
Instead, use the proper library names via symlink.
These files will only be detected when the variable
"PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig" is set manually.
--
This commit is related to this issue: raspberrypi/firmware#857