| [ Return to Bugs & Features | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]
STR #3513
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 2 - Specific to an operating system |
Subsystem: | Unassigned |
Summary: | Supporting Haiku |
Version: | 1.4-feature |
Created By: | djcj |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | djcj 08:09 Feb 24, 2019 |
| I was able to compile FLTK on Haiku (www.haiku-os.org), however I cannot launch any of the compiled binaries. It only shows the message "Can't open display: " in the terminal. Haiku has GCC and also libX11.
I had to edit some of the CMake files, because I cannot use "-pthread" ("-lpthread" works). libdl is also missing, so "-ldl" should not be added to the linker flags. For your information CMake defines "HAIKU", so excluding stuff for Haiku is easy. Building the OpenGL stuff doesn't work, because "glx.h" is missing and I couldn't figure out which headers I had to include instead or if I need to install a specific development package. | |
|
#2 | greg.ercolano 10:51 Feb 25, 2019 |
| Sorry I don't know anything about Haiku or BeOS, but I'll try to answer anyway, as some issues might be simple solutions..
> "Can't open display:"
Some questions:
1) Are you able to run 'xterm' from that same shell without errors? I'm curious if all X windows applications can't open from your shell, or just FLTK x applications.
2) What is the value of DISPLAY set to? e.g.: echo $DISPLAY If it's not set or set to something weird like an empty string, set it instead to ":0.0", e.g. export DISPLAY=":0.0"
> "glx.h" is missing and I couldn't figure out which headers I had to include > instead or if I need to install a specific development package.
When openGL for X windows installed, glx.h is part of the package, and would normally be found in e.g. /usr/include/GL/glx.h.
On the linux machine in front of me, that file is provided by the "mesa" package install, mesa being the popular openGL implementation for X windows.
Try to determine what package install you need on your OS to provide openGL, and see if GLX is an option. If openGL is not an option, you may need to disable opengl during the configure steps for FLTK, before you build the library. | |
|
#3 | djcj 05:23 Feb 26, 2019 |
| It seems X11 doesn't work right now on Haiku, even though you can compile some X11 code: https://discuss.haiku-os.org/t/question-about-x11/8303 | |
|
#4 | greg.ercolano 09:27 Feb 26, 2019 |
| OK, Sounds like the X implementation on your target machine is incomplete. So:
1) Perhaps there's no 'xterm' to test either?
2) I'm curious: if there's no X11 server, what /is/ the window manager? From the haiku-os website, obviously there's something, as there's a desktop and GUI applications shown.
3) Can we close this FLTK report? I'll probably make it a 'won't fix', because it's not X11, and whatever window manager it is, it sounds.. custom, and still under development?
Regarding getting your FLTK apps running on this OS, it /sounds/ like you could run it if you 'ssh -X' from a linux machine to the haiku box and run the FLTK apps, and see them open on your linux machine.
Probably not what you want, but it sounds like that's all they're providing at present for X oriented apps. | |
|
#5 | greg.ercolano 19:15 Feb 26, 2019 |
| FWIW, someone is working on a haiku port; this was just posted on fltk.coredev today: https://groups.google.com/forum/#!topic/fltkcoredev/jglo_n0LcLU
If you search fltk.coredev for the subject "Haiku port", you should see a long list of posts from Francois dating back to 2016. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |