X11 search dirs in CMake
Mojca Miklavec
mojca at macports.org
Sun Jul 28 08:28:45 PDT 2013
On Tue, Jul 23, 2013 at 6:04 PM, Ryan Schmidt wrote:
> On Jul 23, 2013, at 10:58, Mojca Miklavec wrote:
>
>> 4.) I need some help on deciding about the variant names in Geant4 and
>> I'm not sure if I got all the X11 dependencies right. Geant4 currently
>> links to /usr/X11/lib/libGL.1.dylib and I'm not sure if that's OK.
>
> Would be better to use the libGL from the mesa port.
I just tried. Half of the culprit lies in
/opt/local/share/cmake-2.8/Modules/FindOpenGL.cmake
find_path(OPENGL_INCLUDE_DIR GL/gl.h
/usr/share/doc/NVIDIA_GLX-1.0/include
/usr/openwin/share/include
/opt/graphics/OpenGL/include /usr/X11R6/include
)
find_path(OPENGL_xmesa_INCLUDE_DIR GL/xmesa.h
/usr/share/doc/NVIDIA_GLX-1.0/include
/usr/openwin/share/include
/opt/graphics/OpenGL/include /usr/X11R6/include
)
find_library(OPENGL_gl_LIBRARY
NAMES GL MesaGL
PATHS /opt/graphics/OpenGL/lib
/usr/openwin/lib
/usr/shlib /usr/X11R6/lib
${HPUX_IA_OPENGL_LIB_PATH}
)
Does this need a fix?
I noticed that I still get the following dependencies in CMake despite
removing all traces of /usr/X11R6 from the sources, but on the other
hand it's also true that these libraries don't exist in MacPorts.
//Path to a library.
X11_XRes_LIB:FILEPATH=/usr/X11R6/lib/libXRes.dylib
//Path to a library.
X11_XTest_LIB:FILEPATH=/usr/X11R6/lib/libXtst.dylib
//Path to a library.
X11_Xv_LIB:FILEPATH=/usr/X11R6/lib/libXv.dylib
//Path to a library.
X11_Xxf86misc_LIB:FILEPATH=/usr/X11R6/lib/libXxf86misc.dylib
Mojca
More information about the macports-dev
mailing list