I would like to develop and run a simple GUI based application on
Beagleboard,
using either C or C++. But I am not sure, what could be the best
feasible solution
for GUI development on BB.
I thought of options like GTK+ and QT. But I am not sure if these
packages are
available on BB. If not what could be other possible solution for GUI
development
or how to get those packages on BB.
If someone has got a GUI working on BB, it would be great it you can
post
a small tutorial on that.
WxWidgets is a different widget set with a nice dialog editor (DialogBlocks).
See www.wxwidgets.org and www.dialogblocks.com
Wt is a web based solution. (webtoolkit.eu)
Both have recipes in OE.
I have no tutorial for either. One way to develop is install
build-essential and develop on the board.
You should then be able to follow the tutorisals that exist for those pacakges.
Frans
>
> If someone has got a GUI working on BB, it would be great it you can
> post
> a small tutorial on that.
>
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
>
I'm not a huge fan of C nor C++ for GUI work. You might want something a
little lighter. Just a thought though.
>
> I thought of options like GTK+ and QT. But I am not sure if these
> packages are available on BB. If not what could be other possible
> solution for GUI development or how to get those packages on BB.
I am pretty much certain that GTK+ is available in OE. GTK also has an
excellent GUI designer, glade. There is no shortage of documentation
describing how to get started.
Cheers,
- Ben
Not to start a flame fest here, but saying that you don't like C/C++ and then
recommend GTK which is best used with C is a little bit strange. Python & co
which also work with GTK can't be said to be "light" either.
I would recommend C++ and Qt though. :)
--
Jan Ekholm
jan.e...@smultron.net
If you do choose Qt, I know there are several others doing it. See
http://labs.trolltech.com/blogs/2009/11/20/building-qt-to-make-use-of-the-beagle-boards-sgx-gpu/.
The ICS guys have a note about Qt training at http://beagleboard.org/resources.
>
> --
> Jan Ekholm
> jan.ekh...@smultron.net
Don Lewis
Fair enough. Although to say that GTK is best used with C is also a
little strange; one of the primary reason GTK & co are written in C is
to create a least-common-denominator so that bindings can be easily
written. I find GTK all but unusable in its native form.
> I would recommend C++ and Qt though. :)
>
Another excellent choice.
- Ben
I'm working on a Beagleboard platform used in a set of manufacturing
test fixtures, complete with GTK graphic UI, and a bank of I2C port
expanders, and ADCs.
I found the neatest, fastest way to develop the GUI was to use Glade 3
on my host machine. This produces an XML file that can be used on the
target. http://glade.gnome.org/
The bindings are all handled by a Python script, using the PYGTK
module. This is available via the package manager within Angstrom.
All of this allows you to make rapid tweaks to the GUI's appearance on
your host machine, and then you copy the glade (XML) file over to the
target. This makes it very easy to re-skin your application, without
touching the Python back-end. Also, because Python is a scripting
language you can obviously make changes on the fly, without
recompiling anything.
If you need to do something low-level, then you can write your own C
modules that plug into Python.
Hope this helps.
Also note that Glade/GTK/PyGTK has been moving over from using the
'external' libglade to the built-in
GtkBuilder. They are similar APIs, but the GtkBuilder is the path
forward. I would try to focus on that one.
It is well supported in recent builds of the Glade GUI builder.
I have also used the PyQt bindings using the dynamic loading of .ui
files that are created with QtDesigner. This
solution is currently much better solution for cross-platform
applications. Also keep an eye on PySide - the open
source Python Qt bindings from Nokia.
Later,
Tyler
How about using python/wxpython on beagleboard?
Regards
--
Kurt Müller, m...@problemlos.ch
Wow you guys are trying to make things complicated. This is what the
original query was:
"I would like to develop and run a simple GUI based application on
Beagleboard, using either C or C++."
If you want to use C, using gtk+ is the clear choice. It's really
quite easy to use - very mature and stable and very well documented
with lots of examples and a huge community - any of the linux examples
or tutorials will work. Using it from C is the lightest weight
option, if that is a deciding factor (but really the machine is beefy
enough it shouldn't matter). If you're using any linux based system
(angstrom, etc), it will be available as many applications use it.
There's no reason to mess with wxwidgets or python or anything like
that.
If you want to use C++, then qt is also an option I guess (you can
also use gtkmm or the gtk+ c api from C++). It should probably also
be available - and it is easy to check yourself.
"One way to develop is install build-essential and develop on the
board. "
This would be the easiest route if you already have a system running -
the prebuilt images already come with the compilers at least. The
board is more than capable of running a compiler and editor for C
development natively - it is faster and has more memory than any
machine i had on my desk until about 2000, and I certainly didn't have
trouble developing C applications before then. But there's always the
cross-compile route if you desire.
I would just use gtk+ on the board itself. But then again I'm a C/
Unix programmer so I would say that.
Can anyone guide me on this. A small example may be very useful.
Once again thanks to everyone for your response.
On Jan 28, 1:18 pm, timmins <timtimm...@googlemail.com> wrote:
> I have a rather more high-level suggestion.
>
> I'm working on aBeagleboardplatform used in a set of manufacturing
> test fixtures, complete withGTKgraphic UI, and a bank of I2C port
Hi,
I haven tested both and GTK and Clutter successfully with beagle board
and Ubuntu.IF you are looking for animations and etc. Clutter is the
right choice which is based on C.
--
Siji Sunny
Now, doing
#opkg install gtk+
says me that this package is already installed on my board. I am not
sure what the issue is.
Has anyone successfully build an GTK+ application on BB (preferably
using Glade).
Can you tell me what all library files are required for Angstrom
distribution and how to
get them or install them on BB.
Thanks,
On Feb 3, 1:30 pm, Petri Koppinen <petri.koppi...@gmail.com> wrote:
> Are you using Ubuntu distribution or some other with Glade and GTK+ ?
>
> On Tue, Feb 2, 2010 at 8:56 PM, priyanka sharma <priyanka...@gmail.com>wrote:
>
>
>
> > hi
> > gtk and glade work well on beagle board. I have tested them. Using clutter
> > toolkit is another gud solution. There are plenty of online tutorials
> > regarding this
> > Priyanka
>
> >> beagleboard...@googlegroups.com<beagleboard%2Bunsubscribe@googlegr oups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/beagleboard?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Beagle Board" group.
> > To post to this group, send email to beagl...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > beagleboard...@googlegroups.com<beagleboard%2Bunsubscribe@googlegr oups.com>
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
>
--
Siji Sunny
Thanks all for your suggestions. I figured out how to get glade going
on BB.
Are there any good tutorials or books available for glade gtk
development.
- Amit
> > beagleboard...@googlegroups.com<beagleboard%2Bunsubscribe@googlegr oups.com>
Just try searching, there's tons of stuff out there, and tons (and
tons) of code. Although code with complex examples don't teach you
much.
e.g. first result on google: http://live.gnome.org/Glade/Tutorials
Don't waste your money or time on books which will just be out of date
at best.
Apart from the layout managers which take a little while to get used
to (to create exactly what you want), it's pretty straightforward.
To be honest, for such types of software, nothing works as well as
just firing it up and playing with it, and only look up a reference
when you can't work out how to do something you think you should be
able to.
!Z