SCI Seg3D Mailing List

Text archives Help


[Seg3D] Re: Re: Re: Re: Re: building Seg3D with nVidia drivers?


Chronological Thread 
  • From: Kristen Zygmunt <krismz@sci.utah.edu>
  • To: seg3d@sci.utah.edu
  • Subject: [Seg3D] Re: Re: Re: Re: Re: building Seg3D with nVidia drivers?
  • Date: Thu, 2 Jul 2009 16:17:54 -0600


On Jul 1, 2009, at 7:20 PM, Ramón Casero Cañas wrote:


A patch you can try to explicitly tell CMake where to look is to edit the src/CMake/FindOpenGL.cmake file and change the section that reads:
FIND_LIBRARY(OPENGL_gl_LIBRARY
 NAMES GLU MesaGLU
 PATHS ${OPENGL_gl_LIBRARY}
                /usr/lib
                /usr/local/lib
                /opt/graphics/OpenGL/lib
                /usr/openwin/lib
                /usr/X11R6/lib
                /usr/shlib
)
to say:
FIND_LIBRARY(OPENGL_gl_LIBRARY
 NAMES GLU MesaGLU
 PATHS ${OPENGL_gl_LIBRARY}
                /usr/lib
                /usr/local/lib
                /opt/graphics/OpenGL/lib
                /usr/openwin/lib
                /usr/X11R6/lib
                /usr/shlib
               /usr/lib32
)
This patch assumes that the problem is occurring in SCIRun itself, not when SCIRun is using CMake to build a third-party package like ITK. Please let me know if this makes a difference, I have not tested it myself.

I have made the suggested change in src/CMake/FindOpenGL.cmake, and then run

$ ccmake src/
$ cmake src/

to regenerate the configuration files and Makefiles, and run

./build.sh --seg3d-only --with-wxwidgets --cmake-args=- DWITH_MPEG=OFF -j8

on the previously compiled code, but the error remains the same.


When you run ccmake from the SCIRun directory, it should create a CMakeCache.txt file in the SCIRun directory. I believe to keep build.sh happy, you actually need to cd bin/ then run ccmake ../src and cmake ../src This should create a CMakeCache.txt file in the bin directory. Please attach that file, then try the ./build.sh command again. Also, when you run ccmake, are you having it do the configure? If so, does the display show a valid entry for the GL_LIBRARY variable? I see a line in my ccmake that says
GL_LIBRARY           /usr/lib64/libGL.so;/usr/lib64/libGLU.so

I think this should appear for you, but with lib32 instead.

If this is still not working for you, please let me know which linux distribution you are using, and I will try to replicate your environment.

Thanks for your patience while we work through isolating the issue,
Kris





Archive powered by MHonArc 2.6.16.

Top of page