tibi38
Posts: 42
Joined: Sat Nov 10, 2012 8:46 am
Location: Europe
Contact: Website

TinyX

Tue Jan 08, 2013 7:42 pm

Dear,
I have now a programm running using XWindows. It runns fine remote with Xming. But I'm not able to use it directly from the Pi on an attached hdmi-monitor.
Is there anyone with a solution?
Admin of http://bed-and-breakfast-ungarn.de

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: TinyX

Wed Jan 09, 2013 11:59 am

Could you provide more info:

1. What language did you code your program in?
2. What GUI libraries did you use?
3. How do you run the program?
4. What does the 'not able to use it' mean in detail (what happens, error messages, other symptoms)?
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

tibi38
Posts: 42
Joined: Sat Nov 10, 2012 8:46 am
Location: Europe
Contact: Website

Re: TinyX

Wed Jan 09, 2013 12:07 pm

I'm using g++ to compile the program with the fltk lib.
The result is: Could not find device.Now I tried to start it after loading startx and then it works.
But I like to start the programm without first loading the startx
Admin of http://bed-and-breakfast-ungarn.de

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4227
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: TinyX

Wed Jan 09, 2013 12:27 pm

FLTK wrote:FLTK (pronounced "fulltick") is a LGPL'd C++ graphical user interface toolkit for X (UNIX®), OpenGL®, Microsoft® Windows®, OS/X, and several other platforms.
The RaspPi does not support OpenGL, and even if it did, you would need to rewrite your application to take advantage of it. (See http://www.fltk.org/doc-2.0/html/index.html)

You probably know better than I, I've only just quickly browsed the library documentation, but FLTK seems to require either MS Windows or the X windows system*. You cannot use X unless X is running. Hence you need startx.



-----
* "It is a windows system called X, not a system called X Windows"

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: TinyX

Wed Jan 09, 2013 12:47 pm

Looks like OpenGL is not the issue, but FLTK clearly is only for X: "Written directly atop Xlib (or WIN32)..."

Hmm, or maybe it would work on OpenGL (as a platform) without X, but as rurwin says: there is no OpenGL on RPi (but OpenGL ES).
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

tibi38
Posts: 42
Joined: Sat Nov 10, 2012 8:46 am
Location: Europe
Contact: Website

Re: TinyX

Thu Jan 10, 2013 6:34 am

Thanks for the background information.
I'll now switch over to OpenVG
Admin of http://bed-and-breakfast-ungarn.de

mung
Posts: 506
Joined: Fri Nov 18, 2011 10:49 am

Re: TinyX

Sat May 18, 2013 2:20 pm

Did anyone ask for help on the fltk lists about these problems???

https://code.google.com/p/ftk/source/br ... .txt?r=780

I only spent 3 minutes skim reading the google code web site, but there seems to be a suggestion that fltk implements a gui tool kit on top of gles????

Not something I am going to look at myself, just noticed these two pages in google searches for similar information, and thought I should post as maybe what is posted in answer here is not correct?.

User avatar
AndyD
Posts: 2320
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: TinyX

Sun May 19, 2013 4:13 am

rurwin wrote:
FLTK wrote:FLTK (pronounced "fulltick") is a LGPL'd C++ graphical user interface toolkit for X (UNIX®), OpenGL®, Microsoft® Windows®, OS/X, and several other platforms.
The RaspPi does not support OpenGL, and even if it did, you would need to rewrite your application to take advantage of it. (See http://www.fltk.org/doc-2.0/html/index.html)
No, you don't need to use OpenGL in you FLTK application. The GUI doesn't rely on OpenGL.
mung wrote:Did anyone ask for help on the fltk lists about these problems???

https://code.google.com/p/ftk/source/br ... .txt?r=780

I only spent 3 minutes skim reading the google code web site, but there seems to be a suggestion that fltk implements a gui tool kit on top of gles????

Not something I am going to look at myself, just noticed these two pages in google searches for similar information, and thought I should post as maybe what is posted in answer here is not correct?.
This looks interesting, but it appears to be something called FTK (i.e. missing the L). I don't think it is related to FLTK.

As is says on the front page of http://www.fltk.org
FLTK wrote:FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11), Microsoft® Windows®, and MacOS® X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL® and its built-in GLUT emulation.
On UNIX/Linux it is for X11 only. I used FLTK a long while ago. I had been involved in a project using glForms on SGI/IRIX machines. FLTK was partly compatible with glForms.

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 1 guest