Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: OpenGL and Fedora

  1. #1
    Intern Newbie
    Join Date
    Sep 2004
    Posts
    42

    OpenGL and Fedora

    Hi Guys

    Ok i just installed Fedora Core 3 because i want to port my Windows GL app over to linux.

    Anyway i got a 9800 pro and i installed all the drivers from ati for it. If i type fglrxinfo and glxinfo from the command line they both report the OpenGL vendor is ATI. So i run tuxracer at 1280x1024 and it run's just fine so it appears the ATI driver is installed and working correctly. Ok now to my problem, i open up Kdevelop and make just a test program using SDL to create the GL window for me, this works just fine but when i run glGetString and get the renderer and version it is reporting the MESA driver ??? and obviouslly the app runs pretty slow.

    Any ideas anyone??

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

    Re: OpenGL and Fedora

    check all the libGL.*so on your system, they may point to the MESA software ones. Or maybe it is just Kdevelop linking to the wrong versions.

    Try to rename/remove the Mesa versions for GL and GLU.

  3. #3
    Intern Newbie
    Join Date
    Sep 2004
    Posts
    42

    Re: OpenGL and Fedora

    ok i fixed that problem, i was using devc++ on windows so i just modified the Makefile to suit linux and now it reports the correct GL version etc BUT now i get a new problem with glext.h ...here is just an example

    ../../src/glext.h:6463: error: typedef `PFNGLRENDERBUFFERSTORAGEEXTPROC' is initialized (use __typeof__ instead)
    ../../src/glext.h:6462: error: `GLsizei' was not declared in this scope
    ../../src/glext.h:6462: error: expected primary-expression before '*' token
    ../../src/glext.h:6462: error: `renderbuffers' was not declared in this scope

    i am getting this with just about everyline in glext.h ....i also tried using the glext.h that ships with fedora and get the same error

    ok here is my makefile, maybe i ain't linking to something i should be???

    ####################################CPP = g++

    CC = gcc

    OBJ = ../../output/linux/Camera.o ../../output/linux/CBaseTerrain.o ../../output/linux/CFont.o ../../output/linux/CGeoTerrain.o ../../output/linux/CImage.o ../../output/linux/CSkybox.o ../../output/linux/CVideo.o ../../output/linux/CWater.o ../../output/linux/Frustum.o ../../output/linux/Main.o ../../output/linux/Math3D.o ../../output/linux/MathRoutines.o $(RES)

    LINKOBJ = ../../output/linux/Camera.o ../../output/linux/CBaseTerrain.o ../../output/linux/CFont.o ../../output/linux/CGeoTerrain.o ../../output/linux/CImage.o ../../output/linux/CSkybox.o ../../output/linux/CVideo.o ../../output/linux/CWater.o ../../output/linux/Frustum.o ../../output/linux/Main.o ../../output/linux/Math3D.o ../../output/linux/MathRoutines.o $(RES)

    LIBS = -L"/usr/X11R6/lib" -L -lGL -lGLU -lSDLmain -lSDL -lSDL_image

    CXXINCS = -I"include/"

    BIN = ../../output/linux/TerraE

    CXXFLAGS = $(CXXINCS)

    .PHONY: all all-before all-after clean clean-custom

    all: all-before ../../output/linux/TerraE all-after

    clean: clean-custom

    rm -f $(OBJ) $(BIN)

    $(BIN): $(OBJ)

    $(CPP) $(LINKOBJ) -o "..\..\output\linux\TerraE" $(LIBS)

    ../../output/linux/Camera.o: ../../src/Camera.cpp

    $(CPP) -c ../../src/Camera.cpp -o ../../output/linux/Camera.o $(CXXFLAGS)

    ../../output/linux/CBaseTerrain.o: ../../src/CBaseTerrain.cpp

    $(CPP) -c ../../src/CBaseTerrain.cpp -o ../../output/linux/CBaseTerrain.o $(CXXFLAGS)

    ../../output/linux/CFont.o: ../../src/CFont.cpp

    $(CPP) -c ../../src/CFont.cpp -o ../../output/linux/CFont.o $(CXXFLAGS)

    ../../output/linux/CGeoTerrain.o: ../../src/CGeoTerrain.cpp

    $(CPP) -c ../../src/CGeoTerrain.cpp -o ../../output/linux/CGeoTerrain.o $(CXXFLAGS)

    ../../output/linux/CImage.o: ../../src/CImage.cpp

    $(CPP) -c ../../src/CImage.cpp -o ../../output/linux/CImage.o $(CXXFLAGS)

    ../../output/linux/CSkybox.o: ../../src/CSkybox.cpp

    $(CPP) -c ../../src/CSkybox.cpp -o ../../output/linux/CSkybox.o $(CXXFLAGS)

    ../../output/linux/CVideo.o: ../../src/CVideo.cpp

    $(CPP) -c ../../src/CVideo.cpp -o ../../output/linux/CVideo.o $(CXXFLAGS)

    ../../output/linux/CWater.o: ../../src/CWater.cpp

    $(CPP) -c ../../src/CWater.cpp -o ../../output/linux/CWater.o $(CXXFLAGS)

    ../../output/linux/Frustum.o: ../../src/Frustum.cpp

    $(CPP) -c ../../src/Frustum.cpp -o ../../output/linux/Frustum.o $(CXXFLAGS)

    ../../output/linux/Main.o: ../../src/Main.cpp

    $(CPP) -c ../../src/Main.cpp -o ../../output/linux/Main.o $(CXXFLAGS)

    ../../output/linux/Math3D.o: ../../src/Math3D.cpp

    $(CPP) -c ../../src/Math3D.cpp -o ../../output/linux/Math3D.o $(CXXFLAGS)

    ../../output/linux/MathRoutines.o: ../../src/MathRoutines.cpp

    $(CPP) -c ../../src/MathRoutines.cpp -o ../../output/linux/MathRoutines.o $(CXXFLAGS)

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: OpenGL and Fedora

    This is not a linking problem but a compilation issue. Check for your opengl headers.

  5. #5
    Intern Newbie
    Join Date
    Sep 2004
    Posts
    42

    Re: OpenGL and Fedora

    aah what a stuff up ...in the headers i had #ifdef LINUX instead of linux ...oops lowercase ;-)

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: OpenGL and Fedora

    Originally posted by bulldogs:
    aah what a stuff up ...in the headers i had #ifdef LINUX instead of linux ...oops lowercase ;-)
    I hope you mean your headers.

  7. #7
    Intern Newbie
    Join Date
    Sep 2004
    Posts
    42

    Re: OpenGL and Fedora

    yes my headers, not fedora's GL headers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •