| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
STR #2590
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 4 - High, e.g. key functionality not working |
Scope: | 2 - Specific to an operating system |
Subsystem: | Unassigned |
Summary: | glut specifics functions are not working with FLTK 2 |
Version: | 2.0-current |
Created By: | oggy |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
|
#1 | oggy 14:17 Mar 15, 2011 |
| I chose "specific to an operating system" as scope, because i've only tested it with Linux. Perhaps you would encounter the same issue with MS-Windows or MacOS-X.
When you use specifics Glut functions, that is not present in libfltk2_glut.so, you get an error message from freeglut. For example, you would use "glutWireSphere", which is present only in freeglut.so.
"freeglut ERROR: Function <glutWireSphere> called without first calling 'glutInit'."
Others glut functions are usable, as long as they belong to libfltk2_glut.so . For example, we can use glutSwapBuffers() with no problems.
Attached, you will find a complete sample which put a glut subwindow into a fltk window. Then, it attempts to draw a sphere with "glutWireSphere". The compilation & linking are ok. It crashes at execution, with freeglut complaining about "glutInit" which has to be called first (fltk should do it for me, but it doesn't change anything if i add the "glutInit()" call in my code).
I've followed the recommandations of the documentation: - I put the win.show() before the glut's subwindow creation. - I add "-lglut" at the very end of the linking libraries evaluation. - The programm runs properly if you comment "glutWireSphere" call.
The following source file was compiled using: g++ glut_subwindow.cxx -lfltk2 -lfltk2_gl -lfltk2_glut -lGL -lglut | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |