Recent

Author Topic: Example Project testopenglcontext1 not working in ubuntu  (Read 2935 times)

alexander

  • New member
  • *
  • Posts: 8
    • My Homepage
Example Project testopenglcontext1 not working in ubuntu
« on: January 20, 2017, 09:26:16 am »
Hi,

I build fpc and lazarus from the svn and run on Ubuntu 16.10. I load the example project
Quote
lazarus/components/opengl/example/testopenglcontext1
and compile it (without errors) and it shows a non-refreshing windows (see attachement).   

When I run test build binary in the console I get the following error messages:
Quote
X Error: GLXBadContext 169
  Extension:    155 (Uknown extension)
  Minor opcode: 5 (Unknown request)
  Resource id:  0x5600013

Why isn't it working? I also added the output of glxinfo as an attachement.
« Last Edit: January 20, 2017, 10:01:32 am by alexander »

alexander

  • New member
  • *
  • Posts: 8
    • My Homepage
Re: Example Project testopenglcontext1 not working in ubuntu
« Reply #1 on: January 20, 2017, 09:57:09 am »
Aha.... it seems I was missing a few libraries..... after installing all dependencies of the lazarus-ide in synaptic, I get now a spinning cube....
Thanks anyway.

alexander

  • New member
  • *
  • Posts: 8
    • My Homepage
Re: Example Project testopenglcontext1 not working in ubuntu
« Reply #2 on: January 20, 2017, 10:02:14 am »
Now it stopped working again....   %)   I didn't do anything....

Handoko

  • Hero Member
  • *****
  • Posts: 3233
  • My goal: build my own game engine using Lazarus
Re: Example Project testopenglcontext1 not working in ubuntu
« Reply #3 on: January 20, 2017, 10:14:28 am »
You may need to install libgl1-mesa-dev.

alexander

  • New member
  • *
  • Posts: 8
    • My Homepage
Re: Example Project testopenglcontext1 not working in ubuntu
« Reply #4 on: January 20, 2017, 10:23:28 am »
It is installed already.

alexander

  • New member
  • *
  • Posts: 8
    • My Homepage
Re: Example Project testopenglcontext1 not working in ubuntu
« Reply #5 on: January 20, 2017, 10:34:43 am »
It seems that Lazarus compiled with qt has this error. When I compile lazarus wiith gkt2 the example runs without problem....

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Example Project testopenglcontext1 not working in ubuntu
« Reply #6 on: January 20, 2017, 11:49:04 am »
It seems that Lazarus compiled with qt has this error. When I compile lazarus wiith gkt2 the example runs without problem....
Which version of qt ?