Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Linux embedded development without X11/GTK dependencies
Linux embedded development without X11/GTK dependencies [message #54386] Thu, 09 July 2020 13:16 Go to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
I've been trying to peruse the forums because there's not much documentation on this, but whenever I try to do an embedded UI using framebuffer/SDL or some other technology without a window manager (rainbow, etc), X11/GTK dependencies always seem to be linked in. What's the most up-to-date way of removing these linkages if there are any? I'm not sure what the status is on anything. Was Rainbow folded into VirtualGUI?

It would be nice to be able, for example, even to just use Painter as a mostly standalone thing without the X dependency but the way things appear to be set up now it's assumed if you're not using GTK you're using X11 when you really want neither.
Re: Linux embedded development without X11/GTK dependencies [message #57626 is a reply to message #54386] Mon, 11 October 2021 08:27 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
To answer my own question it would seem X11 on linux is kind of a hard requirement for pretty much anything except non-accelerated framebuffer /dev/fb0 and DirecFB which is essentially deprecated, so it's outside of U++'s scope.
Re: Linux embedded development without X11/GTK dependencies [message #59225 is a reply to message #57626] Mon, 28 November 2022 16:55 Go to previous messageGo to next message
shawnx is currently offline  shawnx
Messages: 7
Registered: November 2022
Promising Member
in the case of Qt it has its own embedded version, for u++ to work in embedded it will have to do something separately as well I think.

https://github.com/directfb2/DirectFB2 is alive again by the way.
Re: Linux embedded development without X11/GTK dependencies [message #59228 is a reply to message #54386] Tue, 29 November 2022 10:19 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Interesting topic.

Btw, in regards to promoting upp...

so e.g

Quote:
The demo can work with multiple Graphical User Interface Toolkits:

- EFL (Enlightenment Foundation Libraries)
- FLTK (Fast Light ToolKit)
- GLFW (GL Frame Work)
- GLUT (OpenGL Utility Toolkit)
- GTK+ (Gimp ToolKit)
- Qt (Q toolkit)
- SDL (Simple Directmedia Layer)
- SFML (Simple and Fast Multimedia Library)
- wxWidgets (Windows X Widgets)


https://github.com/caramelli/yagears
Re: Linux embedded development without X11/GTK dependencies [message #59230 is a reply to message #59228] Tue, 29 November 2022 18:15 Go to previous messageGo to next message
shawnx is currently offline  shawnx
Messages: 7
Registered: November 2022
Promising Member
upp is absent from all similar lists somehow, I spent quite some time on c++ gui searching and it took me a few years to find it, google somehow just made it invisible.
Re: Linux embedded development without X11/GTK dependencies [message #59232 is a reply to message #57626] Wed, 30 November 2022 16:00 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
X11 is required, but I use Paint, and PdfDraw in one of my server projects without any GUI. Why is it a problem, if those X11 libs are on the system?

[Updated on: Wed, 30 November 2022 16:01]

Report message to a moderator

Re: Linux embedded development without X11/GTK dependencies [message #59233 is a reply to message #54386] Wed, 30 November 2022 16:08 Go to previous messageGo to next message
shawnx is currently offline  shawnx
Messages: 7
Registered: November 2022
Promising Member
it's moving towards wayland from x11 these days.

upp-embedded(similar to qt-embedded) is actually interesting because there is no real offering in the market other than qt-embedded as far as I am aware, but you must pay). It runs on top of SDL2/framebuffer/directfb2, useful for HMI(human machine interface), or any non-smartphone-embedded-device that carries a small display, most of them do not need 3D acceleration either.

Re: Linux embedded development without X11/GTK dependencies [message #59234 is a reply to message #59233] Wed, 30 November 2022 16:15 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
What is your embedded platform?
Re: Linux embedded development without X11/GTK dependencies [message #59235 is a reply to message #54386] Wed, 30 November 2022 16:26 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
BTW, I just recompiled my server project with VIRTUALGUI flag and now there are absolutely no X11 dependencies. And PDF generation works perfectly. Thanks for the idea Smile
Re: Linux embedded development without X11/GTK dependencies [message #59236 is a reply to message #59234] Wed, 30 November 2022 21:17 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
zsolt wrote on Wed, 30 November 2022 16:15
What is your embedded platform?


This was a while ago but I was attempting to run under TinyCore linux.

zsolt
Why is it a problem, if those X11 libs are on the system?


No reason, I'd just like to try my hand at writing my own WM/DE without the X11 dependency. I just have this idea (and I'm probably not the only one) of working on some kind of small totally U++-based DE.

I've been messing with Vulkan + SDL2. Getting Vulkan/X11 working as a Ctrl under U++ was not bad (after you get over the major hurdle of setting up Vulkan itself - there's so much time spent in initial programming that it's a happy moment when you see your first triangle drawn on the screen), it's true that you can use Paint but it would also be nice to have a VulkanDraw class. I've only gotten to the point though where I can use assimp to import and draw FBX models so it would be quite a bit more work to look over the GLDraw code and get a Draw backend going.

shawnx wrote
https://github.com/directfb2/DirectFB2 is alive again by the way.


Cool I'll have to try this.

It would be nice to swapping SDL2 out with DirectFB2
Re: Linux embedded development without X11/GTK dependencies [message #59240 is a reply to message #59236] Thu, 01 December 2022 17:22 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1135
Registered: August 2007
Senior Contributor
By the way,

We do have a LinuxFrameBuffer package, based on VirtualGui.
I can't quite remember who was the original author of it (Zbych?), but I had tried to modify and improve it (It allows FB switching, etc.). (I'd plans to use this with TerminalCtrl) Bu it's still far from being perfect.

You can find the code attached. It if works for you or needs some tweak, I can upload and maintain it.


Best regards,
Oblivion


[Updated on: Thu, 01 December 2022 17:43]

Report message to a moderator

Re: Linux embedded development without X11/GTK dependencies [message #59241 is a reply to message #59233] Thu, 01 December 2022 19:25 Go to previous message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
shawnx wrote on Wed, 30 November 2022 16:08
it's moving towards wayland from x11 these days.

upp-embedded(similar to qt-embedded) is actually interesting because there is no real offering in the market other than qt-embedded as far as I am aware, but you must pay). It runs on top of SDL2/framebuffer/directfb2, useful for HMI(human machine interface), or any non-smartphone-embedded-device that carries a small display, most of them do not need 3D acceleration either.



You might want to check VirtualGui (e.g. reference/SDL2UWord). There is just about 15 virtual methods that you have to implement to make it work on anything. E.g. implementation with SDL2 backend has then 600 lines.
Previous Topic: Runtime error: "undefined symbol: gdk_display_get_primary_monitor"
Next Topic: Use TheIDE on Windows Subsystem for Linux v2
Goto Forum:
  


Current Time: Fri Nov 01 00:02:06 CET 2024

Total time taken to generate the page: 0.02144 seconds