Author Topic: Raspberry Pi (and other tiny Linux computers)  (Read 38126 times)

0 Members and 2 Guests are viewing this topic.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Raspberry Pi (and other tiny Linux computers)
« on: April 14, 2013, 04:04:45 pm »
Hey everyone! Check it out!

http://laserboy.org/code/LaserBoy_2013_04_14.zip

http://laserboy.org/code/LaserBoy_2013_04_16.zip

This latest version of LaserBoy has been specifically reworked to compile and run on the Raspberry Pi!

It comes with instructions for the adventurous.

I fixed a lot of weird color issues that now make it look perfect in 16 bit packed pixel video (default video mode for Xfree86 on the Pi). These fixes should also resolves some issues for Mac OSX, that I could not see any other way.

Please check it out (both Pi and Mac users) and let me know how it goes.

Now I have a lot of more work to do to try to get the USB SND8 sound device (LaserBoy DAC) to work on the Pi. Future plans are to write a web interface so that the Pi can be a headless laser projector control device.

James.
« Last Edit: April 16, 2013, 01:20:27 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Raspberry Pi (and other tiny Linux computers)
« Reply #1 on: April 16, 2013, 10:30:38 am »
Oops!

In my efforts to get the color stuff working properly, I broke something to do with palette indexes.

So this version fixes that issue.

http://laserboy.org/code/LaserBoy_2013_04_16.zip

Sorry for the inconvenience.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Raspberry Pi (and other tiny Linux computers)
« Reply #2 on: May 02, 2013, 02:08:50 pm »
Even better!

http://laserboy.org/code/LaserBoy_2013_05_01.zip

This version has been thoroughly tested and proven to work in the console!

It works in any bits-per-pixel frame buffer; even 8 bit palette mode!

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Raspberry Pi (and other tiny Linux computers)
« Reply #3 on: February 21, 2015, 08:21:34 pm »
I just tried to compile LB on my Raspberry Pi with RASPBIAN Debian Wheezy Version:February 2015 Release date:2015-02-16.

And I get the following linker error:

undefined reference to symbol 'pthread_getspecific@@glibc_2.4' //lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: dso missing from command line

So I opened Makefile in src and changed this line:

LIBS = -lSDL -lboost_system -lboost_filesystem

by adding -lpthread to the end like this:
 
LIBS = -lSDL -lboost_system -lboost_filesystem -lpthread

Now it compiles and links.

I also noticed that the red and blue bytes are swapped in the video display so I commented out the last several lines of LaserBoy_macros.hpp

Code: [Select]
/*
#if defined __arm__ // Raspberry Pi 32 bit frame buffer
#undef     ALPHA_BIT_SHIFT
#undef     RED_BIT_SHIFT
#undef     GREEN_BIT_SHIFT
#undef     BLUE_BIT_SHIFT
#define    ALPHA_BIT_SHIFT                         24
#define    RED_BIT_SHIFT                            0
#define    GREEN_BIT_SHIFT                          8
#define    BLUE_BIT_SHIFT                          16
#endif
*/

James.
« Last Edit: February 21, 2015, 10:17:50 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Raspberry Pi (and other tiny Linux computers)
« Reply #4 on: February 23, 2015, 09:53:47 am »
I can confirm this solution
I had to do the same thing on a LinuxMint machine
was then able to compile and get it working

Offline emanuel

  • Jr. Member
  • **
  • Posts: 71
  • Milliwatts: 0
    • View Profile
Re: Raspberry Pi (and other tiny Linux computers)
« Reply #5 on: July 08, 2015, 05:24:17 am »
Quote
LIBS = -lSDL -lboost_system -lboost_filesystem -lpthreadNow it compiles and links.



I've just compiled LB for mips little edian hard float (dreambox dm7080/dm820) workes well on 1280x720 (SDL/directfb).


But I had got the same issues building for amd64 arch, while using the "make -j 8". I hat to compile 3 times to come to "strip".


I think this issues comes from multitask compiling. So one compiling task is faster then the other. For pc build I just
can use "make".



But for dreambox I build it in Openembedded env, using multitask compiling as a default.



 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal