Debian package FBC-1.06.0~debian7_armhf

Linux specific questions.
Post Reply
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Debian package FBC-1.06.0~debian7_armhf

Post by TJF »

A Debian package with an ARMv7 version of the FreeBASIC compiler (fbc-1.01) is now available, including binaries and header files. The package is reported to work on Beaglebone systems (Black / White, Debian / Ubuntu) as well as on Rasberry Pi 2 (Rasbian).

After downloading the package, install it by (execute in the download folder)
  • sudo dpkg --install freebasic_1.06.0~debian7_armhf.deb
In case of unsolved dependency messages, resolve them by executing
  • sudo apt-get -f install
As an alternative, the installation can also get done by a grafical installer, which auto-resolves the dependencies. I.e.start
  • gdebi-gtk
Then open the package file and install it.

Here's the download

Note:

When you've an old installation on your box (ie. from package BBB-FBC (Version 1.00 v. 14.10.14)), then move the header files to the new package folder and remove the binary files by executing
  • mv -R /usr/local/include/freebasic/BBB /usr/include/freebasic/
    rm /usr/local/bin/fbc
    rm -R -f /usr/local/lib/freebasic
[Edit]
Note on RPi2 added.
Note on old installation added.
Update 1.06.0
[/Edit]
Last edited by TJF on Jun 03, 2016 16:15, edited 3 times in total.
tinram
Posts: 89
Joined: Nov 30, 2006 13:35
Location: UK

Re: Debian package FBC-1.01~debian7_armhf

Post by tinram »

Excellent work TJF.

Perhaps this is the first Linux FreeBASIC compiler that can be installed via a package manager?

Being ARMv7, I assume this package works well on a Raspberry Pi 2 ?
If so, it might be good to mention this in your English and German documentation?
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Debian package FBC-1.01~debian7_armhf

Post by TJF »

tinram wrote:Excellent work TJF.
Thanks! (I just adapted and run the build script in fbc/conrib/deb/bintar-to-bindeb.sh, so most of the work has been done by the FB developres.)
tinram wrote:Being ARMv7, I assume this package works well on a Raspberry Pi 2 ?
If so, it might be good to mention this in your English and German documentation?
I don't know, I have no RPi2 and cannot test.

To be honest, I didn't test on beagleboard either. But users reported that the package works well.

Did you test on RPi2? Does it work? If so, I'd add the note on the download pages as you mentioned.
phishguy
Posts: 1201
Joined: May 05, 2006 16:12
Location: West Richland, Wa

Re: Debian package FBC-1.01~debian7_armhf

Post by phishguy »

I just got my RPi2 a couple of days ago. I finally had a chance today to plug it in, get Raspian installed, install Freebasic and it's dependencies, and install Geany. It took me a bit of forum research since I am very much a noob with Linux. Anyways, I would just like to report that so far it seems to be working. I haven't been following the status on the ARM port and was pleasantly surprised that native FB graphics now works. Thanks to the developers for all their hard work.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Debian package FBC-1.01~debian7_armhf

Post by TJF »

Hello phishguy,

thanks for the report.
phishguy wrote:..., install Freebasic and it's dependencies, and install Geany. It took me a bit of forum research ...
For me it'd be interesting if the objective package did install all necessary dependencies. Was your "forum research" related to that issue? Or can I write 'package works on RPi2 under Rasbian'.
phishguy
Posts: 1201
Joined: May 05, 2006 16:12
Location: West Richland, Wa

Re: Debian package FBC-1.01~debian7_armhf

Post by phishguy »

Yes, it works. I had just missed the second part of your post.
sudo apt-get -f install
After that, everything worked great.

Thanks again.
dasyar
Posts: 372
Joined: Dec 04, 2008 15:31

Re: Debian package FBC-1.01~debian7_armhf

Post by dasyar »

Not sure what is going on, I just installed the 2015-02-16-raspian-wheezy image to a Raspberry Pi+ board. I installed the freeBasic package as described here, and when I try to run fbc I get "Segmentation fault" error. I have freebasic installed on other Raspberry Pi boards and it seems to run OK. Anybody have any clue as to what the problem could be?

Thanks
dasyar
Posts: 372
Joined: Dec 04, 2008 15:31

Re: Debian package FBC-1.01~debian7_armhf

Post by dasyar »

I have just tried the newest 2015-05-05-raspian-wheezy image, and I get the same thing, "Segmentation fault". Anybody else getting the same results?
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Debian package FBC-1.01~debian7_armhf

Post by St_W »

dasyar wrote:Not sure what is going on, I just installed the 2015-02-16-raspian-wheezy image to a Raspberry Pi+ board. I installed the freeBasic package as described here, and when I try to run fbc I get "Segmentation fault" error. I have freebasic installed on other Raspberry Pi boards and it seems to run OK. Anybody have any clue as to what the problem could be?
Do you also get the Segmentation fault with some more recent FreeBasic Build?
You can find nightly builds e.g. here: http://users.freebasic-portal.de/stw/bu ... -armv6-rpi

If these do not work either maybe there are some other library versions used on that specific system that are not binary compatible with the ones linked to fbc? I'm linking the fbc binary to a set of headers & libraries from an older raspian version, which can be found here: http://users.freebasic-portal.de/stw/fi ... d-libs.tgz
If you suspect this could be the reason I can update the headers & libs and provide a custom build for you to test it.

Unfortunately I do not have a RPI to test it myself.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Debian package FBC-1.01~debian7_armhf

Post by TJF »

Update available

GIT source code from 2016, June 3 (version.mk says 1.06.0).

See first post for the download link.
ArchiMark
Posts: 1
Joined: Apr 13, 2018 14:32
Location: California, USA

Re: Debian package FBC-1.06.0~debian7_armhf

Post by ArchiMark »

Hope someone can please advise...

Have successfully installed this package on one arm7 device with Geany. Worked great.

Now, trying to install a Raspberry Pi Zero W device.

Installed package using

Code: Select all

sudo dpkg --install freebasic_1.06.0~debian7_armhf.deb
, then to deal with unresolved dependencies, did

Code: Select all

sudo apt-get -f install
.

Tried doing a simple test in Geany, but get

Code: Select all

segmentation fault
error.

Any suggestions?

Thanks,

Mark
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

Re: Debian package FBC-1.06.0~debian7_armhf

Post by speedfixer »

Welcome to FreeBASIC, Mark

I'll try to help. I have it loaded and running on a r Pi 3 B.

Does a simple 'hello world' work - console and a graphic screen?
Do simple graphic screens work?
(But ask - not all examples have been corrected for later versions of FB.)

Are you trying to use something like FBIDE or something simple like geany?
Did you use the commandline extension '-exx'?

I doubt you have all the -dev libraries loaded, but that is easy to find out if your program compiles successfully.
A seg fault implies your program compiled without warning or errors.
If all libraries needed are present, the most usual seg fault cause is an array index error or mishandling of strings.


David
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: Debian package FBC-1.06.0~debian7_armhf

Post by D.J.Peters »

Wrong CPU the PI Zero is single thread and arm7 is quad core
I believe it's more a kind of arm6 you can try it from here: http://users.freebasic-portal.de/stw/bu ... armv6-rpi/

Joshy
Post Reply