Author Topic: Raspberry Pi  (Read 5826 times)

Offline erico

  • Prof. Inline
  • *****
  • Posts: 1990
    • View Profile
    • Portfolio
Re: Raspberry Pi
« Reply #105 on: 2012-Jun-06 »
Finally got my interpreter running on the PI :)

go north
go computer room
turn on pi
run glbasic program on pi

congratulations! score 100/100

Offline erico

  • Prof. Inline
  • *****
  • Posts: 1990
    • View Profile
    • Portfolio
Re: Raspberry Pi
« Reply #106 on: 2012-Jun-06 »
Hi all
 I have compiled some GLBASIC code for Canoo to run over raspberrypi (debian), In summary, all went well (2d always ok, just some errors (no light, no texture) in 3D apps) I must admit that better than expected.
The biggest problem that I have found is that is not possible to read keystrokes (logical, Canoo has no keyboard) and it is not possible to launch full-screen applications.
About sound and music: I have not tried anything yet, becouse alsa-audio support dont work very well jet .
Joystick and mouse controls works OK.

Some considerations:
- If I launch a graphic application from terminal (on the desktop) launches a series of warnings (impossible to access-write to errorlog files mainly "wrt-request: fopen("/mnt/sd/ErrorLog.txt", "ab") failed") and gp2xmenu: no process found, but the app works as expected.
- If I launch a graphic app. in raw terminal (without X) the app dont work and end with this error
"wrt-request: fopen("/mnt/sd/ErrorLog.txt", "ab") failed
(!) [  999:    0.000] --> Caught signal 11 (at 0xc, invalid address) <-- Aborted"
But is possible to lauch "console program" in raw terminal (with a lot of warnings).

Just some general ideas:
Did you try messing the project properties to push the resolution?
The errorlog.txt gets written on caanoo automatically. something related to permissions or paths maybe?

About the keyboard, I was wondering if glbasic would read an usb connected keyboard/extra joy on the caanoo itself, but I didn´t try.

Great it is shaping up ok :)

Offline veketor

  • Mc. Print
  • *
  • Posts: 17
    • View Profile
Re: Raspberry Pi
« Reply #107 on: 2012-Jun-06 »
Hi erico:
Actually is feasible to change resolution, but not to lauch at full screen without window border.
About errorlog. txt as you say,  may be a permissions error, I'll try to lauch again.
Is a pity  that we can not access the keyboard.
I´ll try to get a video and post in the forum.
GLBasic and raspberrypi look promising  =D

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 211
    • View Profile
Re: Raspberry Pi
« Reply #108 on: 2012-Jun-06 »
For the mnt/sd issue, all i did was create the relevant directory and it works fine.

The keyboard does register with inkey$ but not key(), i guess thats because its a caanoo build and there was no keyboard for it.

You can change the platform.ini file and change the resolution it runs at there (ive set mine to 640x512) but cant get fullscreen yet.

But dont forget, this is compiling for the caanoo and not the PI. Ive just been fiddling with it to see if it works and give gernot feedback an problems and whatnot. We may as well wait until gernot gets around adding the proper PI compile option

Offline MrTAToad

  • HelpEditors
  • Prof. Inline
  • ****
  • Posts: 5397
  • Its me!
    • View Profile
    • Un-Map.com
Re: Raspberry Pi
« Reply #109 on: 2012-Jun-06 »
There shouldn't be too much work to do really :)

Offline veketor

  • Mc. Print
  • *
  • Posts: 17
    • View Profile
Re: Raspberry Pi
« Reply #110 on: 2012-Jun-06 »
Example video of raspberry pi, sorry for the quality  :S

<a href="http://www.youtube.com/watch?v=xGXr-kbI8gc" target="_blank">http://www.youtube.com/watch?v=xGXr-kbI8gc</a>

Offline erico

  • Prof. Inline
  • *****
  • Posts: 1990
    • View Profile
    • Portfolio
Re: Raspberry Pi
« Reply #111 on: 2012-Jun-06 »
earthquaaaake! :P

It looks great, games seem to boot quite fast too.

The 3d seems like what I got on the caanoo one time, but I can´t remember,
like it is all painted white. Would have to check this.

Thanks for posting the video.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *****
  • Posts: 10294
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Raspberry Pi
« Reply #112 on: 2012-Jun-06 »
The Caanoo port was never thought to be the Pi port. I just wanted to know if the compiler might work.


Offline veketor

  • Mc. Print
  • *
  • Posts: 17
    • View Profile
Re: Raspberry Pi
« Reply #113 on: 2012-Jun-06 »
Without doubt the compiler works very well.
Could be possible, with the future compiler for PI, that the generated code works without X (I refer directly from the CLI) ?

Thanks for this incredible lenguaje  :nw:
« Last Edit: 2012-Jun-06 by veketor »

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 2294
  • Integrated Brain
    • View Profile
Re: Raspberry Pi
« Reply #114 on: 2012-Jun-06 »
I continue whit my idea(I don´t know nothing about Drupal or another content manager), I think make a portal whit games for this device, can makes money... (too much R-Pi solds, and too much people whit curiosity for new thing for her devices)

Offline erico

  • Prof. Inline
  • *****
  • Posts: 1990
    • View Profile
    • Portfolio
Re: Raspberry Pi
« Reply #115 on: 2012-Jun-06 »
It is a good idea, but hard work.

Specially on the politics side of things.
To push a store internationally is a hard feat.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 2294
  • Integrated Brain
    • View Profile
Re: Raspberry Pi
« Reply #116 on: 2012-Jun-06 »
Yes Erico, but I think bit a bit... Apple only was do it for "two" guys  =D , and the easy mode of paypal, I think it´s possible, will be a very hard work, but now I don´t have too much to do... unhmm yes BLACK SUN , BLACK SUN....  and more BLACK SUN  :sick: :good: :good: :good:

Offline fivesprites

  • Mr. Drawsprite
  • **
  • Posts: 61
    • View Profile
    • FiveSprites
Re: Raspberry Pi
« Reply #117 on: 2012-Jun-07 »
Could be possible, with the future compiler for PI, that the generated code works without X (I refer directly from the CLI) ?

I've been playing around with the Pi for a little while now and have also tried some Caanoo test programs on it - all very promising.

With regards to running outside of X Windows, Gernot would need to implement his own routine that created a display surface.  I've done the same and it works well.  Here's a decent example:

http://benosteen.wordpress.com/2012/04/27/using-opengl-es-2-0-on-the-raspberry-pi-without-x-windows/

Running outside of X, in some circumstances, would be preferable due to the limited memory on the Pi (256MB).

The default memory split on the Pi is 224MB for CPU and 32MB for GPU.  You can adjust this weighting, but it's not something general users will know how to do.  Clearly, the case for running without an X server is compelling due to the memory footprint it will have.


Offline erico

  • Prof. Inline
  • *****
  • Posts: 1990
    • View Profile
    • Portfolio
Re: Raspberry Pi
« Reply #118 on: 2012-Jun-07 »
Since things are so close to the caanoo, don´t forget to compile and release your stuff for it too! :P :good:

Offline MrTAToad

  • HelpEditors
  • Prof. Inline
  • ****
  • Posts: 5397
  • Its me!
    • View Profile
    • Un-Map.com
Re: Raspberry Pi
« Reply #119 on: 2012-Jun-15 »
Got the delivery notice a short while ago saying my second one has been despatched today - hopefully it'll arrive either tomorrow or Monday.