IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Mon Jan 13, 2014 5:06 am

Gambas 3.5.2 was just released!

http://gambas.sourceforge.net/en/main.html

gbWilly
Posts: 13
Joined: Sun Sep 01, 2013 12:18 am

Re: GAMBAS(basic)

Mon Mar 17, 2014 2:19 pm

Hi all,

I have updated the 'Installation and compilation' instructions for Debian in the Gambas documentation.
Link to Debian instructions on Gambas Wiki: http://gambaswiki.org/wiki/install/debian

They should be about the same for Raspian. Just don't install llvm on Raspian. This will disable gb.jit component, but you have no use for that on Pi.

The needed gstreamer1.0 for gb.media is now in the wheezy backports repository.

Debian jessie and sid now have Gambas 3.5.2 in their repositories and it is a working version.
Adding jessie repository to wheezy allows you to install Gambas 3.5.2 on Debian wheezy with a simple:

Code: Select all

sudo apt-get update
sudo apt-get install gambas3
I was wondering (as I still don't have a Pi) if this would also be possible on Pi?
Or maybe someone has the skills to use the Gambas 3.5.2 packages in jessie repository to make packages for the Raspian repository.

Latest updates on available Gambas3 packages for Debian can be found in the Debian PackageTracking System:
http://packages.qa.debian.org/g/gambas3.html

Hope this can be useful information for those running Gambas on Raspbian.
Last edited by gbWilly on Wed Apr 09, 2014 11:35 am, edited 1 time in total.
Gambas ShowCase, a Gambas 3 software center (http://gambasshowcase.org/)
How To Gambas, a series of guides to learn programming in Gambas 3 (http://howtogambas.org/)
GambOS, a distribution aimed at being a Gambas 3 learning environment (http://gambos.org)

gbWilly
Posts: 13
Joined: Sun Sep 01, 2013 12:18 am

Re: GAMBAS(basic)

Tue Mar 18, 2014 6:46 pm

Good news,

One of the Gambas Forum members (BitHead) has made a Raspbian image with Gambas 3.5.2 pre installed.

The Gambas Forum website admin has been so kind to make the image available for download.
Check the post at: http://whiteislandsoftware.com/forum/in ... bas3-5-2_2, where you can also download the image (3 GB)

Enjoy...
Gambas ShowCase, a Gambas 3 software center (http://gambasshowcase.org/)
How To Gambas, a series of guides to learn programming in Gambas 3 (http://howtogambas.org/)
GambOS, a distribution aimed at being a Gambas 3 learning environment (http://gambos.org)

gbWilly
Posts: 13
Joined: Sun Sep 01, 2013 12:18 am

Re: GAMBAS(basic)

Fri Apr 11, 2014 1:32 pm

Hi all,

As I finally have a Raspberry Pi running Raspbian I have written instruction for installing Gambas on Raspbian in the Official Gambas Wiki.

Check it out: http://gambaswiki.org/wiki/install/raspbian

gbWilly
Gambas ShowCase, a Gambas 3 software center (http://gambasshowcase.org/)
How To Gambas, a series of guides to learn programming in Gambas 3 (http://howtogambas.org/)
GambOS, a distribution aimed at being a Gambas 3 learning environment (http://gambos.org)

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Sun Aug 24, 2014 1:10 pm

Besides the Gambas 3.5.4 release in July there is now also a "Gambas Magazine" available to read over at...

http://www.gambasmag.com

First issue was release also in July and next issue is expected in October.

ffrlr
Posts: 11
Joined: Mon Mar 18, 2013 6:22 pm

Re: GAMBAS(basic)

Sat Aug 30, 2014 9:28 am

gbWilly,

I have been trying to install Gambas 3.5.4 following your write up from the link, everything went fine, until the last stage

sudo apt-get install gambs3, when I do this, I get loads of errors :-

sudo apt-get install gambas3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gambas3 : Depends: gambas3-gb-cairo (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-dbus (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-examples (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-form-stock (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-chart (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-compress-bzlib2 (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-compress-zlib (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-crypt (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-db-form (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-db-mysql (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-db-postgresql (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-db-odbc (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-db-sqlite3 (>= 3.5.4-1) but it is not going to be installed or
gambas3-gb-db-sqlite2 (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-desktop (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-form-dialog (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-form-mdi (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-gui-opengl (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-image-effect (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-image-imlib (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-image-io (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-net-curl (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-net-smtp (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-net-pop3 (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-opengl-glsl (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-opengl-glu (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-opengl-sge (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-pcre (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-pdf (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-qt4-ext (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-qt4-webkit (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-report (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-sdl-sound (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-settings (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-vb but it is not going to be installed
Depends: gambas3-gb-v4l (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-web but it is not going to be installed
Depends: gambas3-gb-xml-rpc (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-xml-xslt (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-xml-html (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-libxml (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-ide (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-mysql (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-option (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-gsl (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-ncurses (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-complex (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-data (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-mime (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-httpd (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-memcached (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-args (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-map (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-jit (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-desktop-gnome (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-media (>= 3.5.4-1) but it is not going to be installed
Depends: gambas3-gb-logging (>= 3.5.4-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Unfortunately, I have very little knowledge of linux so I am at a loss, i've written three seperate Raspbian images onto different 8gb cards, including the latest from the Raspberry pi download site, the same error occur at the same point, whereas ther rest of the procedure seem to run fine.
Can you possibly give me a clue as what else I need to do? ideally I want a version later than 3.5.2 running on the Pi.

Thanks
Regards
Tony .

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Wed Sep 10, 2014 1:49 pm

Looks like you miss alot of packages that Gambas 3 depends on. Myself is running Debian Wheezy (i.e not Raspian) but try install the packages below and then try install Gambas 3 again...

Code: Select all

sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgsl0-dev libgmime-2.4-dev
Some of the above packages may not be needed since it's the list I used when compiling Gamabs 3.5.4 but it should hopefully get you going.

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Sat Oct 25, 2014 4:49 am

Gambas 3.6.0 was just released!

http://gambas.sourceforge.net/en/main.html

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Sat Nov 22, 2014 2:08 am

Gambas 3.6.2 was just released. Lots of new features (see changelog)!

http://gambas.sourceforge.net/en/main.html

gbWilly
Posts: 13
Joined: Sun Sep 01, 2013 12:18 am

Re: GAMBAS(basic)

Fri Feb 13, 2015 1:04 pm

Good news for Pi owners using Raspbian.

The people of DomotiGa (a Gambas project for those who didn't know) have made a Gambas 3.6.2 repository available for Raspbian (Debian) on Pi.
So, no more compiling, just a simple install.

I have adapted the instructions for installing Gambas on Raspbian in the Gambas wiki (official Gambas documentation).
You can read these instructions here: http://gambaswiki.org/wiki/install/raspbian

Enjoy...
Gambas ShowCase, a Gambas 3 software center (http://gambasshowcase.org/)
How To Gambas, a series of guides to learn programming in Gambas 3 (http://howtogambas.org/)
GambOS, a distribution aimed at being a Gambas 3 learning environment (http://gambos.org)

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: GAMBAS(basic)

Sat Feb 14, 2015 9:08 pm

Hello,

Following the instructions to install Gambas 3.6.2.
From here http://gambaswiki.org/wiki/install/raspbian#t4.

Code: Select all

$ sudo nano -w /etc/apt/sources.list
Add these lines to sources.list :
deb https://domotiga.nl/apt/raspbian wheezy main

Next you need to get the key for the repository and add it to your system.
$ wget -O - https://domotiga.nl/apt/public.gpg.key | sudo apt-key add
When trying 'wget' line to get the key installed, get not available.
Any advice please.

Regards

User avatar
SteveDee
Posts: 343
Joined: Thu Dec 29, 2011 2:18 pm
Location: Sunny Southern England
Contact: Website

Re: GAMBAS(basic)

Sat Feb 14, 2015 11:31 pm

Note that "-O" is an upper case "o"

However, its not working for me at the moment. My output looks like this:-

Code: Select all

[email protected] ~ $ wget -O - https://domotiga.nl/apt/public.gpg.key | sudo apt-key add
--2015-02-14 23:15:22--  https://domotiga.nl/apt/public.gpg.key
gpg: can't open `': No such file or directory
Resolving domotiga.nl (domotiga.nl)... 188.142.81.226
Connecting to domotiga.nl (domotiga.nl)|188.142.81.226|:443... failed: Connection timed out.
Retrying.

--2015-02-14 23:17:40--  (try: 2)  https://domotiga.nl/apt/public.gpg.key
Connecting to domotiga.nl (domotiga.nl)|188.142.81.226|:443... failed: Connection timed out.
Retrying.

--2015-02-14 23:19:54--  (try: 3)  https://domotiga.nl/apt/public.gpg.key
Connecting to domotiga.nl (domotiga.nl)|188.142.81.226|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1735 (1.7K) [application/pgp-keys]
Saving to: `STDOUT'

 0% [                                       ] 0           --.-K/s   in 0.001s  


Cannot write to `-' (Broken pipe).
...maybe once I've slept on it, I'll realise in the morning what the problem is.

User avatar
SteveDee
Posts: 343
Joined: Thu Dec 29, 2011 2:18 pm
Location: Sunny Southern England
Contact: Website

Re: GAMBAS(basic)

Sun Feb 15, 2015 7:16 am

SteveDee wrote:...maybe once I've slept on it...
6 hours sleep was what I needed...there is a hyphen missing from the end of the "wget..." command line. So it should look like this:-

Code: Select all

wget -O - https://domotiga.nl/apt/public.gpg.key | sudo apt-key add -
I still get 3 or 4 connection timeout failures, but it eventually gets there.

The next problem is installing Gambas 3. Again I'm getting connection timeout errors from domotiga, so I guess their server can't cope.

Update
After running:

Code: Select all

sudo apt-get update --fix-missing
...my Pi is now running Gambas 3.6.2

I think you just have to be persistent.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: GAMBAS(basic)

Sun Feb 15, 2015 11:57 am

Hello,

Code: Select all

wget -O - https://domotiga.nl/apt/public.gpg.key | sudo apt-key add -
That fixed it, in and running.
Only had to run it once.
A silly question, should I leave the sources list modified or revert?
Many thanks.

Regards

gbWilly
Posts: 13
Joined: Sun Sep 01, 2013 12:18 am

Re: GAMBAS(basic)

Sun Feb 15, 2015 12:39 pm

Yes, it seems the server can't cope all the time.

So, I corrected the instructions in Gambas Wiki.
Added the missing - to the wget (typo).
Added a note on connection timeouts and the --fix-missing solution.
A silly question, should I leave the sources list modified or revert?
For know (as you have the complete Gambas 3.6.2 installed) you could comment out the deb line in sources.list.
You do this by adding a # at the beginning of the deb line for Domotiga repository.
This will also prevent the connection timeout each and very time you do a apt-get update for your system.

By the time Gambas 3.7 is in the repository (or maybe a Gambas 3.6.3) you could remove the # in sources.list and update Gambas.
Gambas ShowCase, a Gambas 3 software center (http://gambasshowcase.org/)
How To Gambas, a series of guides to learn programming in Gambas 3 (http://howtogambas.org/)
GambOS, a distribution aimed at being a Gambas 3 learning environment (http://gambos.org)

User avatar
SteveDee
Posts: 343
Joined: Thu Dec 29, 2011 2:18 pm
Location: Sunny Southern England
Contact: Website

Re: GAMBAS(basic)

Sun Feb 15, 2015 12:49 pm

mad-hatter wrote: A silly question, should I leave the sources list modified or revert?
Not a silly question, I'd leave them in their modified state.....EDIT: OK, I agree with Willy

I seem to have a problem with Gambas 3.6.2 on Raspbian Wheezy. If I run a simple..ish program in IDE, then stop it, it wont run a second time in the IDE. I have to reboot.

Not sure what is causing this, but had to switch back to a Raspbian Jessie image with Gambas 3.5.4 as I need to get on with something.

User avatar
algorithm
Posts: 168
Joined: Mon Nov 25, 2013 9:09 pm
Location: Flatland

Re: GAMBAS(basic)

Tue Mar 10, 2015 8:30 am

I thought I'd try Gambas on my new Pi 2. Fresh install of standard Raspbian (Wheezy), upgraded/dist-upgraded/rpi-updated to the latest. Gambas seems to be in the standard repo and apt-get-installs fine with all dependencies, but it doesn't run. No GUI appears. One core seems to be 100% busy. I waited a couple of minutes but gave up and killed the process.

Do I need to go to Jessie before I try Gambas? But then why is it in the standard Wheezy-based Raspbian repository..?

User avatar
SteveDee
Posts: 343
Joined: Thu Dec 29, 2011 2:18 pm
Location: Sunny Southern England
Contact: Website

Re: GAMBAS(basic)

Tue Mar 10, 2015 5:03 pm

algorithm wrote:...Do I need to go to Jessie before I try Gambas? But then why is it in the standard Wheezy-based Raspbian repository..?
The Gambas version in Raspbian Wheezy repository (v3.1.1) is broken. So I suggest you upgrade Raspbian to Jessie: http://captainbodgit.blogspot.co.uk/201 ... story.html ...which I find is a very stable combination.

Other options, including v3.6.2 here: http://gambaswiki.org/wiki/install/raspbian

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Sat Mar 14, 2015 9:04 pm


troombatzia
Posts: 501
Joined: Fri Jun 29, 2012 4:27 pm

Re: GAMBAS(basic)

Tue Mar 24, 2015 9:43 pm

IRQ wrote:Gambas 3.7.0 released.

http://gambas.sourceforge.net/en/main.html
I just installed it using domotiga repo. It's nice to have it running on Raspberry 2. It's a pity that it's not in official Raspian repo as it's a great development tool. Anyway, thanks to domotiga people and the wiki-Gambas-Raspberry maintainer.
English isn’t my first language, so please excuse any mistakes.

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Thu Mar 26, 2015 8:16 am

Glad you have it up running on RP2 and I agree with you. Gambas is great and evolves quickly with active developers, I actually prefer it over Python.

IRQ
Posts: 35
Joined: Thu Aug 09, 2012 4:56 pm

Re: GAMBAS(basic)

Sun Apr 05, 2015 5:12 am


ffrlr
Posts: 11
Joined: Mon Mar 18, 2013 6:22 pm

Re: GAMBAS(basic)

Wed Apr 08, 2015 2:01 pm

Hi all,

After being away from the Pi for a long time, i'm now back with a Raspberry Pi 2 and another burst of enthusiam.
So far i've installed Apache, Gambas 3.7 and wiringPi, managed to turn off and on some LED's attached to the GPIO pins from within a Gambas program, which was a massive achievement for me!
I can also turn my led's on and off from a web page using PHP (which is an odd language to me), but for love nor money cannot open the serial port (ttyUSB0) using wiringPi with PHP, but that is another story.

What I really want to be able to do and i'm led to believe it is possible is to write code in Gambas and display the output in a web page, basically, I want to turn my led's on / off and read / write from the serial port and display the data via apache so I can view it over the lan in a browser window.

Has anyone managed anything similar using Gambas?, I was directed to the 'smallwiki' example, but couldn't make any sense of it i'm afraid, it would not run for me.

Any help will be much appreciated!

Regards
Tony.

Killertechno
Posts: 157
Joined: Wed Jan 02, 2013 8:28 am

Re: GAMBAS(basic)

Fri May 08, 2015 12:59 pm

Hi guys, it's 3 days I trying to install Gambas on my Pi 2 unsuccessfully!!!!!

1) sudo apt-get install gambas3
as result I start gambas, CPU at 25% and hangs.

2) compiling sources
I always get:

Code: Select all

Making all in opengl
make[5]: Entering directory '/home/pi/gambasbuild/3.4/gb.gtk/src/opengl'
  CC     gb_gtk_opengl_la-main.lo
Assembler messages:
Fatal error: can't create .libs/gb_gtk_opengl_la-main.o: Permission denied
In file included from main.c:26:0:
main.h:31:23: fatal error: gtk/gtkgl.h: No such file or directory
compilation terminated.
Makefile:418: recipe for target 'gb_gtk_opengl_la-main.lo' failed
make[5]: *** [gb_gtk_opengl_la-main.lo] Error 1
make[5]: Leaving directory '/home/pi/gambasbuild/3.4/gb.gtk/src/opengl'
Makefile:1248: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/pi/gambasbuild/3.4/gb.gtk/src'
Makefile:372: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pi/gambasbuild/3.4/gb.gtk'
Makefile:303: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/gambasbuild/3.4/gb.gtk'
Makefile:359: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/gambasbuild/3.4'
Makefile:299: recipe for target 'all' failed
make: *** [all] Error 2
Anyone successfully installed gambas3 on Pi 2 recently?
Thanks.

troombatzia
Posts: 501
Joined: Fri Jun 29, 2012 4:27 pm

Re: GAMBAS(basic)

Fri May 15, 2015 10:57 am

Follow these instructions (packages from domotiga):

http://gambaswiki.org/wiki/install/raspbian
English isn’t my first language, so please excuse any mistakes.

Return to “Other programming languages”