STR #2590

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
 
#1 oggy
14:17 Mar 15, 2011
glut_with_fltk2.cxx
1k
 
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#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
 
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

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