Page 3 of 4

Re: Gambas

Posted: Fri Apr 27, 2012 9:23 pm
by johnaaronrose
Do you have gdebi (i.e. the Debian package installer) on the Raspberry Pi? If so, you start it pointing to the .deb file. On Ubuntu, you double click the file name on the equivalent of Windows Explorer. I can't help more as I don't have a raspberry Pi.

Re: Gambas

Posted: Fri Apr 27, 2012 9:31 pm
by Chris.Rowland
Thanks,

gdebi doesn't seem to be present on the default Debian Pi installation but synaptic should find it I suppose. Just heard mine is due the week of the 7th May but if I get the chance I'll try the QEMU version to see if it works with that.

Re: Gambas

Posted: Sat Apr 28, 2012 4:46 am
by johnaaronrose
I've written a Gambas3 app called iRecorder. This allows recording of a TV/Radio programme to disk (should include SD card & usb memory sticks) using BBC iPlayer feeds. It's actually a GUI for some features of get_iplayer PERL command line program. Does anybody know if PERL libraries available for Raspberry Pi? iRecorder includes selection of programme by channel / category / partial title. If anybody's interested, I'll post details. I'm not able to run it as I don't have a Raspberry Pi. Can anybody tell me where to buy one (with reasonable delivery lead time) and also where to buy a case for one?

Re: Gambas

Posted: Sat Apr 28, 2012 6:36 am
by tomtor
Chris Rowland said:


Sorry if this appears a silly question but how do you install it?

I know about using synaptic/aptitude to install packages from the official distribution but not installing from a stand alone program.



Typing:

sudo dpkg -i xyz.deb

should work

Re: Gambas

Posted: Sat Apr 28, 2012 6:38 am
by tomtor
SN said:


thanks for that - I will revisit this, I assume its the redefinition of those two functions in config.h that fixes it - for me I prefer gamabas2 over gambas3 because its closer to VB5/6



I plan to build a fixed gamba2 .deb this weekend.

Re: Gambas

Posted: Sat Apr 28, 2012 6:41 am
by tomtor
John Rose said:


I"ve written a Gambas3 app called iRecorder. This allows recording of a TV/Radio programme to disk (should include SD card & usb memory sticks) using BBC iPlayer feeds. It's actually a GUI for some features of get_iplayer PERL command line program. Does anybody know if PERL libraries available for Raspberry Pi? iRecorder includes selection of programme by channel / category / partial title. If anybody"s interested, I"ll post details. I"m not able to run it as I don"t have a Raspberry Pi. Can anybody tell me where to buy one (with reasonable delivery lead time) and also where to buy a case for one?



Perl is available on any Linux. If the perl libraries just download and are not depended on external programs/libraries like Flash then it should work out of box on the Pi.

Re: Gambas

Posted: Sat Apr 28, 2012 9:38 am
by johnaaronrose
Thanks for PERL info on Raspberry PI: as you may have realised, I'm a newbie to Raspberry Pi. I'll try iRecorder (including Gambas3.1.1 install from kendek's Launchpad PPA (as that clears a load of bugs) when I get Raspberry Pi OS working under QEMU. I've got boot image from

http://downloads.raspberrypi.o.....4-2012.zip

using instructions on

http://www.ubuntugeek.com/qemu.....buntu.html

I've created a virtual machine with boot image downloaded from above: this involved

sudo aptitude install qemu qemulator qemu-launcher

I'm using Qemulator 0.5 under Ubuntu Lucid Desktop 64 bit. When I click the Play icon, nothing seems to happen. Any ideas anybody? BTW I have never used QEMU before: I've always used VirtualBox. So please treat me as a newbie in regard to QEMU. I'm also intrigued why I have 2 apps on my Ubuntu menu i.e. Qemulator & Qemu Launcher?

Re: Gambas

Posted: Sat Apr 28, 2012 9:59 am
by johnaaronrose
More info. I just clicked Play icon with Terminal selected. It gave a window with:

Supported machines are:

pc                   Standard PC

pc-0.12          Standard pc (default)

and others but no mention of Arm.

Is this the problem? If so, what is the solution?

Re: Gambas

Posted: Sat Apr 28, 2012 11:14 am
by tomtor
John Rose said:


More info. I just clicked Play icon with Terminal selected. It gave a window with:

Supported machines are:

pc                   Standard PC

pc-0.12          Standard pc (default)

and others but no mention of Arm.

Is this the problem? If so, what is the solution?



You'll need another version of Qemu:

http://www.cnx-software.com/20.....with-qemu/

The standard Ubuntu Qemu emulates a normal PC instead of the ARM platform.

Re: Gambas

Posted: Sat Apr 28, 2012 12:31 pm
by Chris.Rowland
Thanks for the install instructions they worked.  I had to load a lot of dependencies. I started using Synaptic but but finished off with sudo apt-get -f install.

It then runs and I was able to try some programming.  My equivalent to Hello World is a temperature converter - between C and F.

Gambas looks useful at least for doing quick GUI applications.  Not sure how it would cope with a complex application, maybe the hard work could be done in C++ and use it for the front end.

Thanks for fixing it.

Re: Gambas

Posted: Sat Apr 28, 2012 1:04 pm
by tomtor
Chris Rowland said:


Thanks for the install instructions they worked.  I had to load a lot of dependencies. I started using Synaptic but but finished off with sudo apt-get -f install.

It then runs and I was able to try some programming.  My equivalent to Hello World is a temperature converter - between C and F.

Gambas looks useful at least for doing quick GUI applications.  Not sure how it would cope with a complex application, maybe the hard work could be done in C++ and use it for the front end.

Thanks for fixing it.


Oops, I forgot that pkg -i does not install the dependencies automatically.

The correct procedure is indeed:

sudo dpkg -i xyz.deb; sudo apt-get -f install

I'm glad to hear that it works for you!

Re: Gambas

Posted: Sat Apr 28, 2012 1:23 pm
by johnaaronrose
@tomtor,

As so often with instructions on web, these instructions no longer work:

make (of qemu) gave:
In file included from /home/john/Software/RaspberryPi/qemu-1.0/linux-user/syscall.c:3325:
/home/john/Software/RaspberryPi/qemu-1.0/linux-user/ioctls.h:187: error: ‘SNDCTL_DSP_MAPINBUF’ undeclared here (not in a function)
/home/john/Software/RaspberryPi/qemu-1.0/linux-user/ioctls.h:188: error: ‘SNDCTL_DSP_MAPOUTBUF’ undeclared here (not in a function)
/home/john/Software/RaspberryPi/qemu-1.0/linux-user/ioctls.h:243: error: ‘SOUND_MIXER_ACCESS’ undeclared here (not in a function)
make[1]: *** [syscall.o] Error 1

Re: Gambas

Posted: Sat Apr 28, 2012 2:22 pm
by tomtor
@John Rose

Hmm, I compiled it a few weeks ago on my Oneiric box.

Have you installed the kernel headers package?

I'm sure you can also find a prepackaged Arm Qemu .deb for Ubuntu somewhere.

Re: Gambas

Posted: Sat Apr 28, 2012 3:49 pm
by johnaaronrose
I'm using Lucid. I have linux-headers-2.6.32-41. Is that what you mean by kernel headers package?

I've just googled for packaged Arm Qemu .deb for Ubuntu: without success.

Re: Gambas

Posted: Sat Apr 28, 2012 4:22 pm
by johnaaronrose
I'm also having a dialog with the author of the instructions at cnx-software.com. Author suggested install of gcc-arm-linux-gnueabi package: apt-get couldn't find it. I googled for it & it looks like it's only available for maverick onwards! Author also suggested installing libc6-dev: but that was already installed. Who'd have thought that it would be so difficult to get an up to date version of qemu from a LTS version of Ubuntu (i.e. Lucid) which is still in support period: it implies that Canonical have gone crazy with their move to Unity.

Re: Gambas

Posted: Sun Apr 29, 2012 5:06 am
by johnaaronrose
It would be nice to use VirtualBox (rather than QEMU) to run RaspberryPi OS. Anybody know if there is an equivalent of Ubuntu Installation CD (preferably as .iso) or a Virtual Appliance for RaspberryPi?

Re: Gambas

Posted: Sun Apr 29, 2012 8:23 am
by tomtor
John Rose said:


I"m also having a dialog with the author of the instructions at cnx-software.com. Author suggested install of gcc-arm-linux-gnueabi package: apt-get couldn"t find it. I googled for it & it looks like it"s only available for maverick onwards! Author also suggested installing libc6-dev: but that was already installed. Who"d have thought that it would be so difficult to get an up to date version of qemu from a LTS version of Ubuntu (i.e. Lucid) which is still in support period: it implies that Canonical have gone crazy with their move to Unity.


In defense of Canonical, the LTS releases main purpose is minimizing change in large data centre environments. Also Qemu in the ARM variant is a speciality. Virtual machine developments are progressing quickly (especially in KVM and Qemu land) and I can only advice using recent software on your VM host environment if you run into troubles. The VM guests can run older stable Ubuntu LTS releases or eg Debian stable.

Upgrading to a more recent Ubuntu for you development desktop environment would be the best approach while you wait for a physical Raspberry Pi to arrive.

Another practical approach in this context is to run a recent Ubuntu as a (VirtualBox) guest in your host environment of choice. You might even like Unity (I do ). In this guest you can compile and run the Qemu Arm virtual machine. The speed difference compared to running the Qemu ARM directly will be minimal because it cannot use I386 processor virtualisation anyway and it is CPU bound.

Update:

I did an

sudo apt-get install qemu-system

in the latest Ubuntu (12.04) and this installs a qemu-system-arm

which runs just fine

Re: Gambas

Posted: Sun Apr 29, 2012 12:14 pm
by tomtor
For those who want Gambas2 you can download it from here:

http://tomv.home.xs4all.nl/ras....._armel.deb

Installation instructions, type in your download directory:

sudo dpkg -i gambas2_2.24.0-1_armel.deb ; sudo apt-get -f install

to install the program.

For gambas3 use:

http://tomv.home.xs4all.nl/ras....._armel.deb

Re: Gambas

Posted: Sun Apr 29, 2012 1:09 pm
by SN
thank you very much

Re: Gambas

Posted: Wed May 30, 2012 8:12 pm
by FixedCoil
I have tried to install Gambas3 on a RPi (not qemu) using the .deb linked below and get a stack over flow followed by a segmentation fault.

For gambas3 use:
http://tomv.home.xs4all.nl/ras....._armel.deb[/quote]

Has any one else had this experience and found a solution?

I have also tried to compile Gambas3 from the 3.1.90 tarball and ./compile reports:
| THESE COMPONENTS ARE DISABLED:
|| - gb.compress.bzlib2
|| - gb.db.mysql
|| - gb.db.odbc
|| - gb.db.postgresql
|| - gb.db.sqlite2
|| - gb.db.sqlite3
|| - gb.desktop.gnome
|| - gb.gsl
|| - gb.gtk
|| - gb.gtk.opengl
|| - gb.image.imlib
|| - gb.jit
|| - gb.media
|| - gb.net.curl
|| - gb.opengl
|| - gb.opengl.glsl
|| - gb.opengl.glu
|| - gb.pdf
|| - gb.qt4
|| - gb.qt4.ext
|| - gb.qt4.opengl
|| - gb.qt4.webkit
|| - gb.sdl
|| - gb.sdl.sound
|| - gb.v4l
|| - gb.xml.xslt

so clearly a lot of dependencies are missing. I have found lists of the required packages on the Gambas web site and other forum posts but many of the required packages do not seem to be available in the RPi repositories. Is there some other way to get them?

I have also seen some posts by the developer concluding that a Maths package is the source of the segmentation fault but do not know enough to make use of this information.

Has anyone managed to get Gambas3 running on a RPi? If you have I'd be most grateful for some pointers as to how to get this done.

Re: Gambas

Posted: Thu May 31, 2012 9:04 pm
by FixedCoil
Some progress,

http:/gambasdocs/help/install/debian

was very helpful, I had not realised the significance of the '-dev' and had been using only the lib name.
Not there yet but hopeful.

Re: Gambas

Posted: Fri Jun 01, 2012 4:03 pm
by SN
tomtor wrote:For those who want Gambas2 you can download it from here:

http://tomv.home.xs4all.nl/ras....._armel.deb

Installation instructions, type in your download directory:

sudo dpkg -i gambas2_2.24.0-1_armel.deb ; sudo apt-get -f install

to install the program.
33 days later and I now have GAMBAS2 up and running on my raspi - hurrah!
I've tried the Gambas Gears example to see graphically how its fares and I'm only getting 10FPS out of it.... :cry:
As a comparison, on my five year old Dell D610 laptop I get 62FPS :shock:

Re: Gambas

Posted: Mon Jun 04, 2012 5:01 pm
by tickett
Just got it to work by compiling from source 2.24 http://tickett.wordpress.com/2012/06/04 ... ood-to-go/

Re: Gambas

Posted: Mon Jun 11, 2012 11:16 am
by g4eml
Just got my Pi and installed Gambas3 using the .deb and instructions provided by tomtor. Many thanks for putting in the work on this.

It appears to run OK and works with a Gambas program I had previously written on another machine. Just what I needed.

The only problem I have at the moment is getting the Sound to work. My program uses the Music.load and Music.play methods. The gb.sdl.sound component is selected.

(I have the snd_bcm2835 module for the Pi loaded and music playback is working using the LXDE LXMusic program. )

I have tried to run the Gambas demo program MusicPlayer and this also gives the same error I am seeing.
When I try to play a .wav file it gives an error "unable to load WAV file" on the music.load method.
When I try to play an mp3 file it crashes with the message "The program has stopped unexpectedly by raising signal #8"

The strange thing is I did once manage to get both the demo program and my program to produce sound with no errors. This was without making any changes to the programs themselves. However I don't know what I did to get it working. I have tried to reproduce it without success.

I will try using the sound.play method to see if this gives similar problems.


Any help appreciated..

Colin.

Re: Gambas

Posted: Tue Jun 12, 2012 9:07 am
by Nizze
Hi

I tryed to install Gambas3 as descirbed above.
But when i try to install it i get
dpkg-deb 'gambas3_3.1.1-1_armel.deb' is not a debian format archive

But i an not see why !!
Its the debian image from RaspberryPI's download.

Br
Nizze