Re: [beagleboard] Is There a way to build graphic apps with BBone Black?

3,141 views
Skip to first unread message

Robert Nelson

unread,
May 31, 2013, 8:23:50 PM5/31/13
to beagl...@googlegroups.com
On Fri, May 31, 2013 at 7:18 PM, Joebotics <joeb...@gmail.com> wrote:
> Hey fellas...
>
> I have not seen demos online or code examples that show Bbone Black
> generating even simple graphics stuff like a window with lines, circles,
> etc... can please somebody elaborate why this is the case with Beaglebone
> Black?...

Well, since the BBB is running linux, well any "gui" demo should work,
as long as you have the lib/etc installed..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Joebotics

unread,
May 31, 2013, 9:52:41 PM5/31/13
to beagl...@googlegroups.com
ohh sorry.. let me be more specific.. I want to know if there is a way for me to create an application that generates graphics.. let's say a moving circle or line inside a window... my BBone Black is running Angstrom..   thanks!

Ben Loftin

unread,
May 31, 2013, 10:08:41 PM5/31/13
to beagl...@googlegroups.com
yes - I would start with gtk as it is very simple to get going and you can carry on from there.  Example

https://developer.gnome.org/gdk/stable/gdk-Drawing-Primitives.html

and here opencv gui example - note I used the xfce desktop with angstrom in case you come across strange windowing problems...

http://www.youtube.com/watch?v=no2l0OuCSIE

gtk tutorials

https://developer.gnome.org/gtk-tutorial/2.90/




On Fri, May 31, 2013 at 6:52 PM, Joebotics <joeb...@gmail.com> wrote:
ohh sorry.. let me be more specific.. I want to know if there is a way for me to create an application that generates graphics.. let's say a moving circle or line inside a window... my BBone Black is running Angstrom..   thanks!

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Brent

unread,
May 31, 2013, 10:26:04 PM5/31/13
to beagl...@googlegroups.com
I prefer Qt.  You do your design + development on a PC, and target the BBB for the application.

Joebotics

unread,
May 31, 2013, 10:27:13 PM5/31/13
to beagl...@googlegroups.com
Hi Ben.. thanks for the reply... 

I saw your video earlier this week... really cool stuff.. I saw that you mentioned using ArchLinux + XFCE  on your vidro.. I was able to  flash ArchLinux to a microSD card.. boot BBB with it.. it had just a console.. then I got lost trying to install the Windows Manager (I am new to Linux/BBB/Coding )  ...   you say here that you used Angstrom with XFCE desktop?...  how did you do that?... also...  can I use GTK with the stock Angstrom BBB ?  .. I am not planning on playing with OpenCV or anything fancy yet..  Thanks much!!

nemanja

unread,
May 31, 2013, 10:46:33 PM5/31/13
to beagl...@googlegroups.com
A lot of that stuff is pretty easy in Javascript these days too. Your "GUI" could be just a Chromium browser full screen and your app could just be HTML5/CSS/Javascript pages stored in some directory. Check out http://raphaeljs.com/ http://d3js.org/ or http://ocanvas.org/

The other cool thing about that is you could then just serve it with a plain webserver to others, and if they can talk to the Beaglebone through a network, your GUI could work on every other OS platform.

Just a thought, good luck!

Ben Loftin

unread,
Jun 1, 2013, 12:46:02 AM6/1/13
to beagl...@googlegroups.com
I describe what I did to get angstrom working with gtk - same steps for opencv

http://beagleboard.org/Community/Forums?place=msg%2Fbeagleboard%2FrIkQYTEFrEI%2FLCzk-goM-kcJ



--

Joebotics

unread,
Jun 1, 2013, 1:16:45 PM6/1/13
to beagl...@googlegroups.com
Thanks everybody!!

I will follow your ideas to see where it takes me.. :-)

I have a microSD running ArchLinux... I tried to install LXDM...  I followed the instructions.. no errors.. but it still boots to a console.. :-(

I will try the same in the Ubuntu console ....wish me luck!! ...  :-)

BTW.. is there a Free QT IDE ?   I went to their page and they have a 30 day trial... 

William Hermans

unread,
Jun 1, 2013, 3:01:29 PM6/1/13
to beagl...@googlegroups.com
Qt is a cross platform application framework. Qt creator is their IDE, which you do not need to use. There are any number of  Free IDEs out there that can be used with Qt.

I suggest you go to youtube, and search for Qt tutorials. Search for C/C++ tutorials while you're at it :) Perhaps even first.


--

Brent C. Sink

unread,
Jun 1, 2013, 3:17:18 PM6/1/13
to beagl...@googlegroups.com

The Qt Creator IDE is free. They have a commercial version available but its not needed for most people. Read the documentation to see what the difference between the two is.

-brent

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/3zwXeVcTXtM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

mark.e...@gmail.com

unread,
Dec 18, 2014, 3:29:00 AM12/18/14
to beagl...@googlegroups.com
Have you tried writing direct to the Video Frame Buffer, I have.

Email me and I'll send you some source code.

Regards,

Mark.

Rick Mann

unread,
Dec 18, 2014, 5:12:32 PM12/18/14
to beagl...@googlegroups.com

> On Dec 18, 2014, at 00:29 , mark.e...@gmail.com wrote:
>
> Have you tried writing direct to the Video Frame Buffer, I have.

I wrote an app that used SDL, but it had to use (I think) a software frame buffer, something about there not being support in the kernel for some hardware frame buffer? I'm not sure what it was. But I'd love to be able to use SDL to take over the entire display, and not use any kind of desktop or window manager (that's just buckets of more code that slow boot/launch times).

For my app, fast update wasn't necessary (it was a process automation controller-type thing), but it would be nice to be able to draw as fast as possible with SDL.

Does this work now?

Thanks!

--
Rick Mann
rm...@latencyzero.com


Mark Riley

unread,
Dec 22, 2014, 8:44:28 AM12/22/14
to beagl...@googlegroups.com
Rick,

I've attached the source code for some framebuffer experimentation I did.

You'll see circle, line and filled triangle code.  Should be self explanatory.

To compile :- 
gcc frame.c -o frame

Best regards,

Mark

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.

To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
frame.c

Rick Mann

unread,
Dec 22, 2014, 3:48:13 PM12/22/14
to beagl...@googlegroups.com
Wow, thanks Mark, that's informative to look at. I appreciate it.

But what I was asking about was hardware framebuffer support for SDL. Maybe what you've shown me means that it "just works," but when I was using it a few months ago, it had to use a software framebuffer. Note that I'm not entirely clear on the distinction.

> On Dec 18, 2014, at 23:39 , Mark Riley <mark.e...@gmail.com> wrote:
>
> Rick,
>
> I've attached the source code for some framebuffer experimentation I did.
>
> You'll see circle, line and filled triangle code. Should be self explanatory.
>
> To compile :-
> gcc frame.c -o frame
>
> Best regards,
>
> Mark
>
> On 18 December 2014 at 22:12, Rick Mann <rm...@latencyzero.com> wrote:
>
> > On Dec 18, 2014, at 00:29 , mark.e...@gmail.com wrote:
> >
> > Have you tried writing direct to the Video Frame Buffer, I have.
>
> I wrote an app that used SDL, but it had to use (I think) a software frame buffer, something about there not being support in the kernel for some hardware frame buffer? I'm not sure what it was. But I'd love to be able to use SDL to take over the entire display, and not use any kind of desktop or window manager (that's just buckets of more code that slow boot/launch times).
>
> For my app, fast update wasn't necessary (it was a process automation controller-type thing), but it would be nice to be able to draw as fast as possible with SDL.
>
> Does this work now?

--
Rick Mann
rm...@latencyzero.com


Message has been deleted

mark.e...@gmail.com

unread,
Jun 13, 2019, 10:40:26 AM6/13/19
to BeagleBoard
You can place a sleep() or nanosleep() in the main loop.  Experiment with various values until you get the desired result.

Regards,

Mark

On Thursday, 13 June 2019 02:08:49 UTC+1, power...@gmail.com wrote:
Hello,

Is there anyway to slow down the animation speed? For instance, reduce the time between each shape being displayed? Thank You
To unsubscribe from this group and all its topics, send an email to beagl...@googlegroups.com.
Message has been deleted

Mark Riley

unread,
Jun 18, 2019, 3:23:32 PM6/18/19
to beagl...@googlegroups.com
If you look at the functions in the listing then you’ll find one that clears the frame buffer. 

I would suggest that you have 2 loops.  The inner loop will draw a certain number of polygons, circles, triangles or whatever with a delay between each shape.  The outer loop will clear the screen and then loop back to continue drawing shapes.

Good luck,

Mark

On Tue, 18 Jun 2019 at 15:17, <power...@gmail.com> wrote:
Is there anyway to reset the screen once it has been filled significantly and have it repeat this process? Thanks

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/3zwXeVcTXtM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a7f68f27-d150-4727-a6f5-3f110698deef%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages