On 20-Apr-16 7:58 PM, Dylan Baker wrote:
Quoting Mircea Gherzan (2016-04-20 09:23:00)

Then can you please suggest another approach for allowing piglit to
build on a system with no X11 or GLX headers?

Right now, on such a system, I get:

CMake Error at
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138
(message):
   Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
   /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374
(_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-3.2/Modules/FindOpenGL.cmake:168
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
   CMakeLists.txt:49 (find_package)

Whoa, hold up. That's not GLX you're missing, that's OpenGL you're
missing. That's two completely different problems.

Are you trying to run piglit on a system with only GLES or with desktop
OpenGL but no X11 (or at least GLX)?

I've built Mesa with --disable-glx so there's no libGL.so. I do have the Mesa <install_dir>/lib/pkgconfig to PKG_CONFIG_PATH and the cmake still fails with "Could NOT find OpenGL".

In the short term you could pass -DPIGLIT_BUILD_GL_TESTS=0 to cmake right?

Tried it but I fails with:

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:
OPENGL_gl_LIBRARY

--
- Mircea
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to