BBB-FBC-1.00

User projects written in or related to FreeBASIC.
TJF
Posts: 3546
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

BBB-FBC-1.00

Postby TJF » Oct 26, 2014 13:35

Image

Since my original thread got lost at this forum, I create a new one.

Pre-compiled fbc binaries for Beaglebone hardware are available at


They got compiled from the original GIT code (from Oktober, 14) and tested under Debian, kernel 3.8.13-bone37.

The package contains binaries only. Get header files from the original GIT repository and install them at /usr/local/include/freebasic.
ashwindamle
Posts: 10
Joined: Feb 16, 2015 10:26

Re: BBB-FBC-1.00

Postby ashwindamle » Mar 02, 2015 11:27

Hello,

I copied the includes *.bi is the folder /usr/local/include/freebasic. I am sure this folder has all the includes.

/usr/local/include/freebasic/BBB/prussdrv.bi(56) error 23: File not found, "crt/sys/types.bi" in '#INCLUDE ONCE "crt/sys/types.bi" '__HEADERS__: sys/types.h'


Then I tried installing the compiler "fbc_linux_armv7a_hf_debian". I installed the compiler and it did install well. It says, FreeBASIC compiler successfully installed in /usr/local.

I tried compiling the fbc-master but was stuck at

CC src/rtlib/obj/linux-arm/io_mouse.o
src/rtlib/linux/io_mouse.c:17:17: fatal error: gpm.h: No such file or directory
compilation terminated.
make: *** [src/rtlib/obj/linux-arm/io_mouse.o] Error 1


Please help me with this. This is getting frustrating. Forget programming, I cannot even get the basic freebasic program working.

Thanks
Ashwin
TJF
Posts: 3546
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: BBB-FBC-1.00

Postby TJF » Mar 02, 2015 11:39

ashwindamle wrote:Then I tried installing the compiler "fbc_linux_armv7a_hf_debian". I installed the compiler and it did install well. It says, FreeBASIC compiler successfully installed in /usr/local.

I tried compiling the fbc-master but was stuck at

CC src/rtlib/obj/linux-arm/io_mouse.o
src/rtlib/linux/io_mouse.c:17:17: fatal error: gpm.h: No such file or directory
compilation terminated.
make: *** [src/rtlib/obj/linux-arm/io_mouse.o] Error 1

I cannot help with this package. As I said it's new and I don't know it.

ashwindamle wrote:I copied the includes *.bi is the folder /usr/local/include/freebasic. I am sure this folder has all the includes.

/usr/local/include/freebasic/BBB/prussdrv.bi(56) error 23: File not found, "crt/sys/types.bi" in '#INCLUDE ONCE "crt/sys/types.bi" '__HEADERS__: sys/types.h'

This I do not understand. If there're all *.bi files copied, the compiler would find them.

Please check again: is file types.bi really in folder

    /usr/local/include/freebasic/crt/sys

BR
Drago
Posts: 116
Joined: Aug 10, 2005 13:15

Re: BBB-FBC-1.00

Postby Drago » Mar 02, 2015 11:45

It seems you need the same standard dev packages on BBB as I am on RasPi2

Code: Select all

sudo apt-get install libX11-dev libXext-dev libXpm-dev libXrender-dev libXrandr-dev


Code: Select all

src/rtlib/linux/io_mouse.c:17:17: fatal error: gpm.h: No such file or directory
compilation terminated.


gpm.h ....sounds like libXpm-dev packages
TJF
Posts: 3546
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: BBB-FBC-1.00

Postby TJF » Mar 02, 2015 13:16

I made a debian package for easy installation. You can download it at

Find install commands at this page. Please test and report. (The package should resolve the dependencies.)

BR

Note: Un-install all former files before installing the new package

    sudo rmdir -R /usr/local/include/freebasic
    sudo rmdir -R /usr/local/lib/freebasic
    sudo rm /usr/local/bin/fbc
The package installs at prefix /usr (no local subfolder).
ashwindamle
Posts: 10
Joined: Feb 16, 2015 10:26

Re: BBB-FBC-1.00

Postby ashwindamle » Mar 14, 2015 19:20

Dear TJF,

Sorry for the delay in replying. I was travelling.

I used the package you created, freebasic_1.01.0debian7_armhf.deb, and I could compile the oszi.bas program. However, I had to give full path to prussdrv.bi and pruss_intc_mapping.bi in the file /libpruio-0.2/src/pruio/pruio.bi.

Here are the steps I followed:
1. as you said, delete the folder /usr/local/include/freebasic, /usr/local/lib/freebasic and the executable /usr/local/bin/fbc

2. install the package freebasic_1.01.0debian7_armhf.deb

2. follow the pruss driver kit and libpruio installation steps mentioned on the forum (viewtopic.php?f=14&t=22501)

3. Give full path in the file /libpruio-0.2/src/pruio/pruio.bi

Code: Select all

'* in file
#INCLUDE ONCE "/usr/local/include/freebasic/BBB/prussdrv.bi"
' PRUSS driver interrupt settings
#INCLUDE ONCE "/usr/local/include/freebasic/BBB/pruss_intc_mapping.bi"


I am unsure if there is something I missed, which is why the the ``BBB/prussdrv.bi'' was not found.

Thanks.
Ashwin Damle
TJF
Posts: 3546
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: BBB-FBC-1.00

Postby TJF » Mar 15, 2015 8:40

Hello Ashwin!

As I previously mentioned, the Debian package uses a different PREFIX. This also means that header files are searched in a different folder.

Move the context of

    /usr/local/include/freebasic
to

    /usr/include/freebasic
and the examples should compile without changes.

BR

Return to “Projects”

Who is online

Users browsing this forum: badidea and 8 guests