Results 1 to 3 of 3

Thread: Linux/nvidia: ClanLib detects wrong OpenGL version

  1. #1

    Question Linux/nvidia: ClanLib detects wrong OpenGL version

    I've just built ClanLib-2.1.1. The examples fail saying OpenGL 2.0 is required and that I just have 1.4.
    Code:
    ~/tmp/clanlib/ClanLib-2.1.1/Examples/Text$ ./text
    No hardware acceleration available. I hope you got a really fast machine.
    Exception caught: This application requires OpenGL 2.0 or above.
    Your hardware only supports OpenGL 1.4.1. Try updating your drivers, 
    or upgrade to a newer graphics card.
    But I have OpenGL 2.1.2:
    Code:
    duo:~/tmp/clanlib/ClanLib-2.1.1$ glxinfo | egrep 'vendor|version'
    server glx vendor string: NVIDIA Corporation
    server glx version string: 1.4
    client glx vendor string: NVIDIA Corporation
    client glx version string: 1.4
    GLX version: 1.4
    OpenGL vendor string: NVIDIA Corporation
    OpenGL version string: 2.1.2 NVIDIA 190.42
    What to do about this?

  2. #2

    Default

    Maybe I solved it, unless something else was broken in the process.

    On Mandriva (2009.1) it appears that /usr/lib/libGL.so is the MESA version, and the nvidia one is in /usr/lib/nvidia/libGL.so. Making the former a symlink to the latter seems to solve the problem. At least for ClanLib.

    Then I tried Examples/GUI and after ~30 seconds my laptop shutdown from GPU overheating.

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Quote Originally Posted by grebneke View Post
    Then I tried Examples/GUI and after ~30 seconds my laptop shutdown from GPU overheating.
    lmao!

    The GUI example runs flat out, it does not give the GPU any rest. This is so we can calcutate the frames per seconds. It can be modified to only update when required (see GUIBasic example), or add a CL_System::sleep(milliseconds) in the main loop

Similar Threads

  1. How to use OpenGl in ClanLib 2
    By xenus in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-16-2009, 02:15 PM
  2. OpenGL 3.0 and ClanLib 0.9
    By Judas in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-13-2008, 04:52 AM
  3. Wrong lib name in application.h(clanlib 0.9)
    By Lifeengines in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 06-24-2008, 06:51 AM
  4. Little example ClanLib+OpenGL
    By rinsukaze in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 05-13-2008, 07:15 AM
  5. ClanLib Compile bug with Nvidia GLX Legacy drivers.
    By Xander.C in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-11-2007, 04:05 AM

Bookmarks

Bookmarks

Posting Permissions

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