LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2008, 06:17 PM   #1
thinice15
Member
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 37

Rep: Reputation: 15
Gtk


Is there a gtk programing language that doesnt require x running? So you can use it without x.
 
Old 08-18-2008, 08:55 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
There sure is - its the DirectFB port. You can find info on DirectFB here
www.directfb.org
 
Old 08-19-2008, 02:10 AM   #3
thinice15
Member
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 37

Original Poster
Rep: Reputation: 15
What do you mean DirectFB port theres nothing on there that says that?
 
Old 08-19-2008, 03:00 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
gtkfb is what it is called. There is also something new called 'fastx' which can run gtk programs on the framebuffer. The disadvantage is that it requires using a patched gtk, but then you don't need to patch or alter each program.
 
Old 08-19-2008, 08:30 AM   #5
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
@thinice15: Sorry, I only meant for that link to tell you more about DirectFB in general (it does more than just Gtk). For more information specifically about gtk on DirectFB you can get information from Gtk or from DirectFB at either or these:
http://www.directfb.org/wiki/index.p...TK_on_DirectFB
http://library.gnome.org/devel/gtk/s...-directfb.html

Regarding what gnashley reported, beware that gtkfb is now obsoleted, and it is not supported by newer Gtk's. Basically, DirectFB is a library that handles the guts of talking to the framebuffer. Before DirectFB, Gtk wanted to be on the framebuffer, so they wrote the guts of that themselves. But since DirectFB came out, Gtk just uses that and saves themselves some work. The new DirectFB based gtk is referred to as Gtk-DFB.

I've never heard of this 'fastx', so I'm interested to hear more about it / see a link too. Google isn't turning anything up.
 
Old 08-19-2008, 05:00 PM   #6
thinice15
Member
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 37

Original Poster
Rep: Reputation: 15
i successfully installed DirectFB but i tried to run an example they had on there and i get this?


Code:
   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.2 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-08-19 00:34)
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(!) Direct/Modules: Module 'libdirectfb_x11input.so' did not register itself after loading! Trying default module constructor...
(!) Direct/Modules: ... even did not register after explicitly calling the module constructor!
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Macintosh mouse button emulatio (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Logitech Optical USB Mouse (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HID 0b38:0010 (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HID 0b38:0010 (4) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: PC Speaker (5) 0.1 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(!) [  772:    0.000] --> Caught signal 11 (at 0xf61e, invalid address) <--
(!) DirectFB/core/vt: Unable to disallocate VT!
    --> Device or resource busy
Aborted
 
Old 08-19-2008, 10:12 PM   #7
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
I'm not very familiar with DirectFB, but either the sample code has a bug or some library is not installed. The DirectFB mailing lists would be a good place to ask on this, but maybe someone here will know the answer too.
 
Old 08-20-2008, 02:36 AM   #8
thinice15
Member
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 37

Original Poster
Rep: Reputation: 15
I will figure something out but thanks for everything.
 
Old 08-20-2008, 11:31 AM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Sorry, I meant Xfast. It's on sourceforge. I tried it out the other day and it looks quite promising. It is a fork of Xynth.

http://xfast.wiki.sourceforge.net/
http://xfast.wiki.sourceforge.net/?f=print
 
Old 08-20-2008, 10:24 PM   #10
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Might I ask what it's for? Perhaps we can recommend something else? I think I remember hearing that tinyX-ish Xservers have made good advances lately, perhaps that would help?
 
Old 08-21-2008, 02:26 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Xfast combines the server and client sides of X into one thing. It is a desktop environment which fulfills the role of x server and window manager in one application. It is really meant mostly for embedded OS's, but looks as though it might be usable (at some point) for a regular desktop.
There is a project called tinyX, but it is not open-source. I haven't tried Xsynth which is the parent-project of Xfast.
The sources for Xfast includes several accessory applications which are written esepcially for it. They also include patches which can be used for re-compiling GTK. Doing so allows you to run GTK apps under Xfast without any changes to the application sources.
 
Old 08-21-2008, 02:03 PM   #12
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
According to Wikipedia and the Xorg tarball tinyX changed its name to KDrive and is now just a build type of the Xorg X server. Thus, it falls under the same license as Xorg. Most people accept Xorg's license to be free.
 
Old 08-22-2008, 01:31 AM   #13
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
http://www.superant.com/smalllinux/tinyX01.html

http://microxwin.com/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk-qt-engine causes white border on gtk tray icons tdtooke Linux - Desktop 0 08-08-2008 12:25 PM
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 01:33 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration