Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-01

OpenGL on FreeBSD

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

when trying to compile the lazopenglcontext package it fails like this:

"
openglcontext.pas(54,4) Error: User defined: this LCL widgetset/OS is not yet supported "

has anyone managed or at least tried to use OpenGL on FreeBSD/gtk2?

And what do I have to do to make it running, looks like the first step is to define the combination of OS and widgetset and try if it works?

TIA,
Marc

Reply by email

Mattias Gaertner
to Marc Santhoff
Show quoted text 9 lines
Hi, when trying to compile the lazopenglcontext package it fails like this: " openglcontext.pas(54,4) Error: User defined: this LCL widgetset/OS is not yet supported " has anyone managed or at least tried to use OpenGL on FreeBSD/gtk2?

Maybe you are the first.

And what do I have to do to make it running, looks like the first step is to define the combination of OS and widgetset and try if it works?

Yes. See unit openglcontext.

At the moment it checks for Linux:

{$IFDEF LCLGTK2}
  {$IFDEF Linux}
  ...

You can try if the Linux implementation works on FreeBSD too:

{$IFDEF LCLGTK2}
  {$IF defined(Linux) or defined(FreeBSD)}
  ...

Mattias

Reply by email

Marc Santhoff
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Sun, 08 Jan 2017 10:43:49 +0100 Marc Santhoff via Lazarus wrote: > And what do I have to do to make it running, looks like the first step > is to define the combination of OS and widgetset and try if it works? Yes. See unit openglcontext. At the moment it checks for Linux: {$IFDEF LCLGTK2} {$IFDEF Linux} ... You can try if the Linux implementation works on FreeBSD too: {$IFDEF LCLGTK2} {$IF defined(Linux) or defined(FreeBSD)} ...

Will try.

Thanks,
Marc

Reply by email

Marc Santhoff
to Marc Santhoff
Marc Santhoff wrote 22 lines
On So, 2017-01-08 at 12:31 +0100, Mattias Gaertner via Lazarus wrote: > On Sun, 08 Jan 2017 10:43:49 +0100 > Marc Santhoff via Lazarus wrote: > > And what do I have to do to make it running, looks like the first step > > is to define the combination of OS and widgetset and try if it works? > > Yes. See unit openglcontext. > > At the moment it checks for Linux: > > {$IFDEF LCLGTK2} > {$IFDEF Linux} > ... > > You can try if the Linux implementation works on FreeBSD too: > > {$IFDEF LCLGTK2} > {$IF defined(Linux) or defined(FreeBSD)} > ... Will try.

Done, works using gtk2. At least for the fpvectorial example "fpv3dviewer". :)

Marc

Reply by email