FLTK logo

Re: [fltk.general] Re: GLSL

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: GLSL Albrecht Schlosser Aug 28, 2022  
 
On 8/28/22 12:42 Albrecht Schlosser wrote:

You are posting the error message(s) but not your command which would have been really helpful.

Sorry, that statement was not correct (you posted the commands). What I meant was that you didn't tell how you constructed these commands.

The best way is to use fltk-config but in this case it doesn't help because fltk-config doesn't "know" the GLEW lib. Sorry for the confusion.

So, if you used fltk-config you should have used it like this to get the required command switches:

$ fltk-config --use-gl --cxxflags
$ fltk-config --use-gl --ldflags

Then, add -lGLEW to the linker flags, and build your command line.

Here's a short and working form which you could simply copy:

$ g++ -o OpenGL3test `fltk-config --use-gl --cxxflags` OpenGL3test.cxx `fltk-config --use-gl --ldflags` -lGLEW

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/6e4da45d-a5d1-01b8-05f1-a5de68f10ade%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.