Recent

Author Topic: LazOpenGLContext on Linux  (Read 5705 times)

Imants

  • Full Member
  • ***
  • Posts: 198
LazOpenGLContext on Linux
« on: February 26, 2011, 03:46:44 pm »
I am using Lazarus 0.9.31 FPC 2.5.1 and
I am trying to run LazOpenGLContext example on ubuntu 10.10. It compiles fine, but fails when linking with message:

/usr/bin/ld: cannot find -lGL
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
testopenglcontext1.lpr(14,1) Error: Error while linking
testopenglcontext1.lpr(14,1) Fatal: There were 1 errors compiling module, stopping

My be someone know why.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8799
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazOpenGLContext on Linux
« Reply #1 on: February 26, 2011, 09:54:55 pm »
install the opengl libraries (I don't know from which package, search your package repositories).

Carver413

  • Full Member
  • ***
  • Posts: 119
Re: LazOpenGLContext on Linux
« Reply #2 on: February 27, 2011, 01:14:35 am »
I had to istall theses packages to get glscene working. some of it anyway. the demo is working for me so maybe thats all you need.
 dev-packages: libgl1-mesa-dev, libglu1-mesa-dev and libxxf86vm-dev

Imants

  • Full Member
  • ***
  • Posts: 198
Re: LazOpenGLContext on Linux
« Reply #3 on: February 27, 2011, 08:57:37 am »
thanks it really helped. Now I can run demo without problems :)

 

TinyPortal © 2005-2018