Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » Some basic questions about gtk/gtk+ in embedded system [RSS Feed]

#1 Nov. 30, 2005 17:23:58

Li W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Some basic questions about gtk/gtk+ in embedded system


Hi all,

I am involved in a embedded system project in which a gui is required. I
have heard of something about gtk and had a look at its FAQ. But I still
have several questions,
1. Does the gtk+ can be used as an embedded gui?
2. What is based on? Or what lib does it require?
3. Can it be compared to Qt/E or MiniGUI? What are the advantages and
disadvantages?
4. Is it easy to develop with since I have not much experience in embedded
development?
5. What hardware does it support? Does it support omap5912?
6. What is the steps of building gtk+ for embedded system?

Thank you for your time and I am looking forward to your reply.

Regards,

Li Weichen
2005-12-1

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Nov. 30, 2005 18:03:16

Florian B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Some basic questions about gtk/gtk+ in embedded system


Hello,

Li Weichen wrote:
> 1. Does the gtk+ can be used as an embedded gui?

It depends on the complexity of the application and on the amount of storage
space and RAM you have on your device. But basically i'd say yes. There are some
projects for user interfaces on mobile devices using GTK. (e.g. GPE -http://gpe.handhelds.organd Maemo -http://maemo.org).

> 2. What is based on? Or what lib does it require?

The whole UI framework is split into several libraries, you need
pango, atk, glib, X (use kdrive!) and libraries for graphic types you need to
support (e.g. libjpeg). Depending on what you intend to do it might be a good
idea to check out OpenEmbedded (http://www.openembedded.org) which is very
powerful if you want to create complete filesystem images (or crosstoolchains)
for embedded and mobile devices. It includes pretty good support for GTK and has
definitions for various devices.

> 3. Can it be compared to Qt/E or MiniGUI? What are the advantages and
> disadvantages?

GTK might be a little bit bigger than these two, but it is very powerful and
there are bindings for many languages available. I personally like GTK because
its native language is C instead of C++ and its good support for powerful
themes. It is easy to develop applications on a desktop PC using the same API
like on your embedded device and if necessary you can port applications to run
on that one easily. In addition to this GTK is LGPL licensed which is much
easier to deal with compared to the dual licensing crap for Qt/E.

> 4. Is it easy to develop with since I have not much experience in embedded
> development?

Yes, mostly - you only need to get used to the constraints you have using an
object framework in C. It is a very good idea to have an API reference, witout
htis you are lost in a compley toolkit like GTK. Devhelp e.g. is very useful.

> 5. What hardware does it support? Does it support omap5912?

It should be able to run on almost everything you can compile it for.
OpenEmbedded already has support for this CPU, so i guess you can build GTK for
it easily. I use it on an omap1710, Strongarm and Xscale CPUs frequently.

> 6. What is the steps of building gtk+ for embedded system?

Basically you just need a crosstoolchain for your platform and compile all the
libraries in the correct order. Thats a little bit tricky because you need to
find out whch one depends on what. You would compile and install them with the
prefix of your toolchain first and then with the correct prefix and settings for
your target filesystem again. If there is a particular reason not to let a tool
(like OpenEmbedded or T2) do this for you could try Scratchbox (scratchbox.org)
which creates a sandbox environment for cross development.

I hope these hints are useful :-)

Greetings

Florian

--
The dream of yesterday Florian Boor
is the hope of today Tel: 0271-771091-14
and the reality of tomorrow. Fax: 0271-771091-19


6C 44 30 4C 43 20 6B 61 16 07 0F AA E6 97 70 A8
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#3 Nov. 30, 2005 18:19:14

Antonio G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Some basic questions about gtk/gtk+ in embedded system


hello

> 1. Does the gtk+ can be used as an embedded gui?

Yes, it does. Actually there are many projects doing so. see
www.maemo.org for example.

> 2. What is based on? Or what lib does it require?

Well, afaik there isn't an spefic version on gtk targed to embedded
systems running 'X' as graphical backend. There is "port" of it to run
over a frame buffer.

> 3. Can it be compared to Qt/E or MiniGUI? What are the advantages and
> disadvantages?

Hummm ... it is hard to say, once qt/e run over a fb, doesn't it ? I'd
say the gtk is more heavyweight than the other ones you mentioned, but
it does provides a complitiness set of widgets ...

> 4. Is it easy to develop with since I have not much experience in embedded
> development?

You implement in the same way. The embedded-gtk that I'm using is the
comes from the same sourcebase , just compiled to another archtecture
(arm in this case).

> 5. What hardware does it support? Does it support omap5912?

Yes, I've used 5912 and other omap ones.

> 6. What is the steps of building gtk+ for embedded system?

Give us more details about your system ... X/fb/whatever and so on ...

> Thank you for your time and I am looking forward to your reply.
>
> Regards,
>
> Li Weichen
> 2005-12-1

--

--Antonio Gomes
Embedded Linux Lab
Nokia Technology Institute

if (yourJob == boring) {
// Go to the opensource community for (at least) having fun
sendRedirect ("http://www.whateveronlinux.org";);

} else {

suck_it_up (you);
}
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#4 Dec. 2, 2005 16:58:10

edward ..
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Some basic questions about gtk/gtk+ in embedded system


>> 1. Does the gtk+ can be used as an embedded gui?
>
>It depends on the complexity of the application and on the amount of storage
>space and RAM you have on your device. But basically i'd say yes. There
are
>some
>projects for user interfaces on mobile devices using GTK. (e.g. GPE -
>http://gpe.handhelds.organd Maemo -http://maemo.org).
>

I prefer fltk - it is faster for embedded devices (but if your device is
fast enough for gtk then fine).

>> 3. Can it be compared to Qt/E or MiniGUI? What are the advantages and
>> disadvantages?
>
>GTK might be a little bit bigger than these two, but it is very powerful
>and
>there are bindings for many languages available. I personally like GTK because
>its native language is C instead of C++ and its good support for powerful
>themes. It is easy to develop applications on a desktop PC using the same
>API
>like on your embedded device and if necessary you can port applications
to
>run
>on that one easily. In addition to this GTK is LGPL licensed which is much
>easier to deal with compared to the dual licensing crap for Qt/E.

Agreed regarding licenses, but I much prefer C++ to C for this task...


>Yes, mostly - you only need to get used to the constraints you have using
>an
>object framework in C. It is a very good idea to have an API reference,
witout
>htis you are lost in a compley toolkit like GTK. Devhelp e.g. is very useful.

...because of the confusion this brings up. Although there are c++ bindings
for gtk I believe.

Its all a matter of choice anyway ;).

Have fun,

Ed.


___________________________________________________________

Tiscali Broadband from 14.99 with free setup!http://www.tiscali.co.uk/products/broadband/Christmas gift ideas and festive features - visit the Tiscali Christmas
microsite.http://www.tiscali.co.uk/christmas_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » Some basic questions about gtk/gtk+ in embedded system [RSS Feed]

Board footer

Moderator control

Enjoy the 24th of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support