GNOME Bugzilla – Bug 706808
"Unable to locate required kms libraries" message is really uninformative
Last modified: 2013-11-28 17:22:47 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).
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.