Raspberry Pi and FreeBASIC

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

Re: Raspberry Pi and FreeBASIC

Postby TJF » Oct 08, 2018 7:51

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: 1466
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Raspberry Pi and FreeBASIC

Postby St_W » Nov 21, 2018 8:18

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

Postby Laiko » Feb 27, 2019 8:14

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: 1935
Joined: Sep 25, 2005 21:54

Re: Raspberry Pi and FreeBASIC

Postby srvaldez » Feb 27, 2019 11:44

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

Return to “Hardware Interfaces / Communication”

Who is online

Users browsing this forum: No registered users and 1 guest