Raspberry Pi and FreeBASIC

For issues with communication ports, protocols, etc.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Raspberry Pi and FreeBASIC

Post by TJF »

jdebord wrote:Isn't FB already available in Raspbian ?
AFAIK, there's no official support.

But since Raspbian is a Debian derivate, you can steal it from BeagleBone repos by just adding them to file /etc/apt/sources.list (ARM7 only -> RPi > 1).
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Raspberry Pi and FreeBASIC

Post by St_W »

You can also install the latest Git build using these commands on RPi 2, 3 and higher:

Code: Select all

wget http://users.freebasic-portal.de/stw/builds/linux-armv7a-hf-debian/freebasic.deb
wget http://users.freebasic-portal.de/stw/builds/freebasic-headers.deb
sudo dpkg -i freebasic.deb
sudo dpkg -i freebasic-headers.deb
apt-get update
apt-get install -f
For RPi 1 replace the first line by:

Code: Select all

wget http://users.freebasic-portal.de/stw/builds/linux-armv6-rpi/freebasic.deb
Laiko
Posts: 5
Joined: May 13, 2012 22:30
Location: Germany

Re: Raspberry Pi and FreeBASIC

Post by Laiko »

Hi !

Excuse me ! - My English is bad.
I need some help.
I have bought a raspberrypi 3+ and would like to access the gpio. I have freebasic installed and hi is work
"Version 1.06.0 (03-08-2018), built from linux-am (32bit)"
I have already installed the packages below but the
compiler reports only:
code:
  #include once "wiringPi.bi"
Declare Sub PriLoop ()
wiringPiSetup ()
.......
........

Compiler message:

fbc -w all "Test5.bas" (in the directory / home / desktop)
   Test5.o In function 'main':
   Test5.c (.text + 0x2c): undefined referenc to 'wiringPiSetup'
Compilation failed


I know something is missing but what?
Do you have an idea what is wrong?

Laiko
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: Raspberry Pi and FreeBASIC

Post by srvaldez »

besides wiringPI, you can access the gpio using files, see this tip by D.J.Peters viewtopic.php?f=8&t=26536&p=244960&hili ... bi#p244960
Post Reply