Bug 42700 - cmake gives long, confusing error message on missing GLUT
Summary: cmake gives long, confusing error message on missing GLUT
Status: RESOLVED FIXED
Alias: None
Product: piglit
Classification: Unclassified
Component: infrastructure (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Eric Anholt
QA Contact: Eric Anholt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 04:58 UTC by nobled
Modified: 2012-03-14 13:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description nobled 2011-11-08 04:58:28 UTC
While for libpng, libzlib, and libtiff CMake will give short readable error messages about not finding them, if GLUT isn't found(I didn't have the lib or the headers installed), it outputs this:

...
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLUT_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /.../piglit/tests/util
   used as include directory in directory /.../piglit/tests/bugs
...
    linked by target "mesautil" in directory /.../piglit/tests/mesa/util
    linked by target "texline" in directory /.../piglit/tests/mesa/tests

-- Configuring incomplete, errors occurred!


The ',,,' is it spamming the terminal with a list of pretty much every single test directory. Unless scrollback in the terminal is infinite and you can scroll all the way back to read through the whole CMake log, you'll probably only see a thousand lines of spam that don't say what the actual errors were.
Comment 1 nobled 2012-03-14 13:37:55 UTC
Seems to be a CMake bug; added a workaround in commit a4d8676d39eaa6c8d972498741944121babcb846.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.