kevelop

M

Michael Sgier

Hi
While trying to compile a C++ prog with OpenGL/SDL I get
errors about not found/declared glfunctions.
Thanks
Michael
 
S

Steven T. Hatton

Michael said:
Hi
While trying to compile a C++ prog with OpenGL/SDL I get
errors about not found/declared glfunctions.
Thanks
Michael

You will probably be better served by directing questions about KDevelop to
the KDevelop forum or mailing list. Your problem, however, doesn't seem
like a KDevelop problem. It is probably a problem with your environment.
Either the development rpms (I assume you are using Linux) are not
installed, or you do not have the correct LIBRARY_PATH, or
-I<path/to/openGL>. The one place KDevelop may be involved is that it will
allow you to set the arguments passed to the linker. But is doesn't always
work correctly!

Project->Options->Configure Options->Linker Flags (LDFLAGS):

try putting -lGL in there. I did a `locate libGL' and found these on my SuSE
9.1 OS. You should have something similar.
/usr/i486-linux-libc5/lib/libGL.so
/usr/i486-linux-libc5/lib/libGLU.so
/usr/lib/fglrx/lib/libGL.so.1
/usr/lib/fglrx/lib/libGL.so.1.2
/usr/lib/GL/libGL.so.1
/usr/lib/GL/libGL.so.1.2
/usr/lib/libGL.a
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/libGLcore.so.1
/usr/lib/libGLU.a
/usr/lib/libGLU.so
/usr/lib/libGLU.so.1
/usr/lib/libGLU.so.1.3
/usr/X11R6/lib/libGLw.a
/usr/X11R6/lib/libGLw.so.1
/usr/X11R6/lib/libGLw.so.1.0
/usr/X11R6/lib/modules/extensions/libGLcore.a

Also try `pin mesa'.

This newsgroup is really for questions about the C++ language, and not about
using KDevelop, or OpenGL. You would likely get more help by posting to a
linux development mailing list or newsgroup.

Good luck!
 
J

Jack Klein

Hi
While trying to compile a C++ prog with OpenGL/SDL I get
errors about not found/declared glfunctions.
Thanks
Michael

You need to ask in a group that supports OpenGL/DSL. You have
compiler specific and third party issues. Neither of these are C++
language issues.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,489
Latest member
BrigidaD91

Latest Threads

Top