After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706808 - "Unable to locate required kms libraries" message is really uninformative
"Unable to locate required kms libraries" message is really uninformative
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-08-26 14:44 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2013-11-28 17:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2013-08-26 14:44:22 UTC
If you lack some libraries building cogl, you get the previous message. It is really uninformative, as it says that some libraries are needed, but without any hint about which one(s).

In order to solve that, I needed to open configure.ac and see in which case this message is shown:

        PKG_CHECK_EXISTS([gbm],
                         [
                           COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gbm"
                           COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES libdrm"
                         ],
                         [AC_MSG_ERROR([Unable to locate required kms libraries])])

Installing libgdm-dev solved my problem. 

It would be good to replace "Unable to locate required kms libraries" for something like "Unable to locate required kms libraries: check if you have gdm or libdrm developement libraries installed" (although this option is somewhat too long).
Comment 1 Robert Bragg 2013-11-28 17:22:47 UTC
ok, thanks for pointing this out. The message now reads "Unable to locate required libgbm library for the KMS egl platform" it doesn't refer to the libdrm library since if that's missing then PKG_CHECK_MODULES() should report the details of what packages aren't found later.