Results 1 to 6 of 6

Thread: Porting over existing program

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    26

    Porting over existing program

    We have some code written for a RedHat 64 bit machine with Nvidia which utilses opengl for its visualization routines. In fact it uses some of the ArcBall routine from NeHe tutorial site.

    The code has been ported to a dell laptop running ubuntu 9.04. The trouble is now how to compile the code or rather get the correct libraries installed. The files make reference to the following header files:

    #include <GL/gl.h>
    #include <GL/glu.h>
    #include <GL/glx.h>

    and the Makefile looks like this:

    CXX=g++
    CXXFLAGS=
    OBJS=Main.o Viewer.o ArcBall.o
    LIBS=-L/usr/X11R6/lib64 -lGLU -lGL -lgd -lXxf86vm -lpthread


    all: SS

    SS: $(OBJS)
    $(CXX) $(OBJS) -o $@ $(LIBS)

    ================================================== ============

    In a nutshell, how best to find the right versions of openGL. I appreciate that there are different versions and have used synaptic to demo a few of them, however am suffering from the compilation error:

    Main.cpp:5:20: error: GL/glu.h: No such file or directory

    Therefore is there a checklist of what should be installed to get this code running or at least the libraries installed?

    Thanks in advance.






  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Porting over existing program

    should be enough :
    sudo apt-get install libglu1-mesa-dev

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    26

    Re: Porting over existing program

    Thanks. Code now compiles, but having issues with the following at run-time.

    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Single Buffered visual
    Xlib: extension "GLX" missing on display ":0.0".
    glx-version -1211478028.-1212655557
    Segmentation fault


    Any ideas what could be causing this?

    Thanks

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Porting over existing program

    Sanity check : run glxgears from command line. If it does not work, you will have to fix your GL/Xorg setup. You can try searching/asking the ubuntu forums.

    Can you post the output of glxinfo ?

  5. #5
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    26

    Re: Porting over existing program

    got this on glxinfo:

    glxinfo
    name of display: :0.0
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Error: couldn't find RGB GLX visual or fbconfig

    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".
    Xlib: extension "GLX" missing on display ":0.0".

    Have no idea what could be the matter. Have re-installed libglu1-mesa-dev

    gears does not run....

  6. #6
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    26

    Re: Porting over existing program

    Got this working by upgrading to ubuntu 9.100. Looks it was something to to with the X11 - but after re-installing these there was no joy - so decided to upgrade to 9.100 and this seems to have solved the problem.

Similar Threads

  1. Render behind existing image
    By surfdabbler in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 10-23-2011, 08:04 PM
  2. would like some explanation on existing shader
    By wizzo in forum OpenGL: GLSL
    Replies: 12
    Last Post: 09-11-2004, 01:53 PM
  3. 3D-Card existing?
    By Tux in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-05-2002, 01:25 PM
  4. Porting a OPENGL (GLUT) program (LINUX) => (Windows)
    By PeterP in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-28-2001, 01:37 AM
  5. Importing an existing 3D object in an OpenGL program
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-11-2000, 08:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean