I am looking up how to set up the fbc lib files cos I haven't a clue how to do it...and it's rpi running twisterOS so is that Debian?
I got this far with rpi3 and fbc installed in /usr/local but always complained missing libcurses .
It was a fb install on google but not official...and gave up on it.
I have fbc and now get the libs to load into correct place...dunno how.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems twisterOS is based on rpios and is debian but it's rpi not ubuntu.
Please , if you have the time , tell me how to install all rpi fb libs needed.
Do I install them in the same folder as fbc ?
Your help and rpi know how is much appreciated.
Gcb as many users and I bet a few got a rpi.
cheers, stan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
https://raspberrytips.com/raspberry-pi-twister-os/
I can try this on a rpi 3 but it's meant for a rpi 4. using on a rpi 400 which is faster and over clock to 2100 works with no force.
get one but it needs special hdmi lead and usb power connector. buy the complete kit...not like I did....and had to buy more stuff.
Compared to pic boards it costs more but it's a very interesting device.
The av out is brill. youtube,play mp3. The combination of rpi400 and twisterOS is a very nice interface...ok, I went for the win 10 lite theme.
If you thought rpi3 was worth the money then rpi 400 is a lot more for not a lot more...or may be it is...but it's twice as fast.
Bit like the logicgreen 328 that gcb supports. Twice as fast.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I type fbc in the terminal and press enter I get lots of fbc info, do guess it's installed ok .As in a previous install, fbc exe is in usrs/local.../bin
also in documents .
Not sure what I did wrong in your instructions but the os may look different to yours.
Since fbc gives a command list the system finds it so it's fbc /where my file.bas is then it should make a runable file...somewhere.
I thank the moderators of this forum for allowing discussion about rpi linux. It's relevance is gcb for linux , which seems to need fb to build.
I bet a lot of arduino users bought a rpi as it's aimed at hobbyists.
It would be handy to interface them but how to program the rpi... python is built in but would like fb.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm spending lots of time searching all this fb stuff so don't think I'm relying on gcbforum alone but thanks for any help.
I first got ubuntu from Holland for free on a cd when it was dial up internet. Win 95???
all my windows games played through wine but they were dos and I didn't realise I was using an emulator.
Tried linux many times on a pc as an install but prefer windows.
Rpi is linux although there's win 10 for rpi... but it's carp.
edit @mmotte I don't know what instructions I missed ie last 3.
Last edit: stan cartwright 2021-05-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mike...hope got yor name right. Cheers for the help.
It seems fbc is installed..??? so if I got a text file and saved it as .bas then I got to type
fbc /"myfile.bas" but I put where myfile.bas is...yes?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So now you can try to comple a program in FBC. Instructions are:
Now you can use fbc to compile FB programs (.bas files) into executables.
For example:
$ cd FreeBASIC-x.xx.x-linux/examples
$ fbc hello.bas
This should have created the hello program. You can run it by entering:
$ ./hello
So go to console and i don't know where you are?
cd \ go to home directory
cd Free
cd examples
ls and see examples and see hello.bas
fbc hello.bas to compile it
./hello to run it
Now we are ready for GCB
use your desktop file browser to check that GreatCowBASIC/sources/linuxbuild/install.sh is executable. Remember we did this on another file earlier. When it is executable then:
cd \ go to home
cd Great* go to GreatCowBASIC directory
cd sources
cd linuxbuild
./install.sh build this will use the fbc to build gcbasic executable file
./install.sh install this will put into /opt/GCBASIC directory
gcbasic /version this will show the version info meaning gcbasic is working
if not we have to do a bit of $path work
Let's see how far you get!?
This is all in the instructions in the linuxbuild directory: readme-linux_install.txt
GL
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cd Documents
cd freebasic I don't know where your got this from?
cd fbprogs
fbc fbtest1.bas compile your basic file into an executable
ls list current directory to show the compiled file as green executable
./fbtest1 run your executable from current directory
these are your tools
cd destination
cd \ go to home directory
cd .. got to a higher directory
cd Free* only need enough chars to make your destination unique
ls list which is similar to dir directory cmd in windows
ll long list gives much information about your file dates and executable
dir list your files and directories but don't distinguish them
chmod change mode changs who can do what and what is exec
more mytextfile will display text a page at a time.... press space to go to next page
./ is current directory
../ is higher directory
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have fbc in 2 places. if I keep usr/local/bin version?
You can see the fbtest1 in documents but setting a path past documents don't work.
fbc file.bas --- it says cannot find file.
If could cd to where fbtest1.bas is then fbc fbtest1.bas would work...but I can't.
Sorry if I don't get fb working. At least no libcurses missing messages.
Last try installing fb was on rpi3 but from different sources. never got it to work.
I did mention I'm not a linux user and now back on window the file system is completely different.
and that's visually on gui. Who uses win command? it's as bad as linux.
I would find navigating window with the command prompt as difficult as linux.
If I put my fbtest.bas files in the same folder as fbc would they compile then?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"If I put my fbtest.bas files in the same folder as fbc would they compile then?"
wrong way!
earlier you proved that fbc is exectuable from anywhere. You are good there , do not screw around putting stuff in that directory that you should not be in.
ON console use the the tools I showed you.
open the console
cd \ get home
ls shows your directories and programs
cd Documents
ls shows your directories and programs
cd freebasic ...must be a directory that you made at some point
ls shows your directories and programs
cd fbprogs
ls ...must be a directory that you made at some point and it contains the file you want to compile
fbtest1.bas should be on your screen
fbc fbtest1.bas ..... will compile the file
now you want to execute it
./fbtest1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I looked up the linux cd command and it is new to me, ? "cd / or cd \ or ~/ or cd ./"
When you say console, do you mean the terminal? Should I be typing command somewhere else?
I hope using the mousepad...which is like win notepad ie a simple text editor and typing print "hello". Then saving it as fbtest1.bas in a folder I created in documents called fbprogs.
so the path would be fbc what? or do I have to as your post go into documents/fbprogs/......
where fbtest1.bas is and then use fbc fbtest1.bas.
info says fbc "fbtest1.bas". I guess I should not use the quotes""
I'll try later as it's connected to my tv and I want to watch some startrek.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Keep in mind the carrot! What is the carrot?
From Geanie (not from Gedit because Raspian does not have Gedit) you are going to edit a gcb file.
From Geanie's "Build" "CompileGCBandmakehex" button you"ll just click that and it will make you the hex
From Geanie's "Build" "Burn" you will program your UNO and be happy
Then do it again and again for fun!
We don't have to do this.
But Pickitplus has a new tool for the Raspberry pi and it would be nice to see it work?
Not all the world runs on windows.
RaspberryPi gives a cheap alternative to programming PICs and Atmels.
Why are we balking to cross this little bridge?
I am going to town so I will be away for a few hours.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mike. I am getting nowhere fast with fb on rpi.
Look at the image please. I set the path to the fbtest.bas and now the missing stuff .Grrrrrr.
I'm not letting this pass as another failure. If I was a fisherman I'd have an Haddock but I'm not but get something that sounds similar.
This was as far as I got with freebasic on rpi3 only the error was missing libcurses.
Pity it not just a file. I'm well cheesed off with this. It was a doddle on windows.
As a file I meant it being apt get freebasic....not loads of hassle to get nowhere.
cheers for the help sir, I'm just no good at linux. bollux more like
Last edit: stan cartwright 2021-05-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am looking up how to set up the fbc lib files cos I haven't a clue how to do it...and it's rpi running twisterOS so is that Debian?
I got this far with rpi3 and fbc installed in /usr/local but always complained missing libcurses .
It was a fb install on google but not official...and gave up on it.
I have fbc and now get the libs to load into correct place...dunno how.
It seems twisterOS is based on rpios and is debian but it's rpi not ubuntu.
Please , if you have the time , tell me how to install all rpi fb libs needed.
Do I install them in the same folder as fbc ?
Your help and rpi know how is much appreciated.
Gcb as many users and I bet a few got a rpi.
cheers, stan
https://raspberrytips.com/raspberry-pi-twister-os/
I can try this on a rpi 3 but it's meant for a rpi 4. using on a rpi 400 which is faster and over clock to 2100 works with no force.
get one but it needs special hdmi lead and usb power connector. buy the complete kit...not like I did....and had to buy more stuff.
Compared to pic boards it costs more but it's a very interesting device.
The av out is brill. youtube,play mp3. The combination of rpi400 and twisterOS is a very nice interface...ok, I went for the win 10 lite theme.
If you thought rpi3 was worth the money then rpi 400 is a lot more for not a lot more...or may be it is...but it's twice as fast.
Bit like the logicgreen 328 that gcb supports. Twice as fast.
Stan
I don't know what libraries you are talking about?
So , next step is very simple.
Open the console if you don't already have one open.
Type> fbc press enter
all the switches and options should fly by
you could type fbc -version
It should be executable from any directory, if not we have to fix the path.
Let me know if you got this far!
I tried fbc "test1.bas" but error
Last edit: stan cartwright 2021-05-23
I tried twisterOS on a rpi3 but it wouldn't boot. rpios fine.
Stan,
You did not follow instructions!
First we need to see if the OS can find fbc
AND do it from the console command line.
If I type fbc in the terminal and press enter I get lots of fbc info, do guess it's installed ok .As in a previous install, fbc exe is in usrs/local.../bin
also in documents .
Not sure what I did wrong in your instructions but the os may look different to yours.
Since fbc gives a command list the system finds it so it's fbc /where my file.bas is then it should make a runable file...somewhere.
I thank the moderators of this forum for allowing discussion about rpi linux. It's relevance is gcb for linux , which seems to need fb to build.
I bet a lot of arduino users bought a rpi as it's aimed at hobbyists.
It would be handy to interface them but how to program the rpi... python is built in but would like fb.
I'm spending lots of time searching all this fb stuff so don't think I'm relying on gcbforum alone but thanks for any help.
I first got ubuntu from Holland for free on a cd when it was dial up internet. Win 95???
all my windows games played through wine but they were dos and I didn't realise I was using an emulator.
Tried linux many times on a pc as an install but prefer windows.
Rpi is linux although there's win 10 for rpi... but it's carp.
edit @mmotte I don't know what instructions I missed ie last 3.
Last edit: stan cartwright 2021-05-24
Mike...hope got yor name right. Cheers for the help.
It seems fbc is installed..??? so if I got a text file and saved it as .bas then I got to type
fbc /"myfile.bas" but I put where myfile.bas is...yes?
Stan,
You are getting there!
So now you can try to comple a program in FBC. Instructions are:
Now you can use fbc to compile FB programs (.bas files) into executables.
For example:
$ cd FreeBASIC-x.xx.x-linux/examples
$ fbc hello.bas
This should have created the hello program. You can run it by entering:
$ ./hello
So go to console and i don't know where you are?
cd \ go to home directory
cd Free
cd examples
ls and see examples and see hello.bas
fbc hello.bas to compile it
./hello to run it
Now we are ready for GCB
use your desktop file browser to check that GreatCowBASIC/sources/linuxbuild/install.sh is executable. Remember we did this on another file earlier. When it is executable then:
cd \ go to home
cd Great* go to GreatCowBASIC directory
cd sources
cd linuxbuild
./install.sh build this will use the fbc to build gcbasic executable file
./install.sh install this will put into /opt/GCBASIC directory
gcbasic /version this will show the version info meaning gcbasic is working
if not we have to do a bit of $path work
Let's see how far you get!?
This is all in the instructions in the linuxbuild directory: readme-linux_install.txt
GL
Mike
Getting where?
Hmmph! we are still stuck on freebasic?
cd Documents
cd freebasic I don't know where your got this from?
cd fbprogs
fbc fbtest1.bas compile your basic file into an executable
ls list current directory to show the compiled file as green executable
./fbtest1 run your executable from current directory
these are your tools
cd destination
cd \ go to home directory
cd .. got to a higher directory
cd Free* only need enough chars to make your destination unique
ls list which is similar to dir directory cmd in windows
ll long list gives much information about your file dates and executable
dir list your files and directories but don't distinguish them
chmod change mode changs who can do what and what is exec
more mytextfile will display text a page at a time.... press space to go to next page
./ is current directory
../ is higher directory
https://www.freebasic.net/wiki/ProPgHelloWorld
Yes that is exactly what i told you.
I have fbc in 2 places. if I keep usr/local/bin version?
You can see the fbtest1 in documents but setting a path past documents don't work.
fbc file.bas --- it says cannot find file.
If could cd to where fbtest1.bas is then fbc fbtest1.bas would work...but I can't.
Last edit: stan cartwright 2021-05-25
Forget the /usr/local/bin/fbc that is part of your system ... not where you should do anything
what ever directory you put the fbtest1.bas file in is where you have to go ON CONSOLE.
So use your console and cd's until you get there and see your file using ls (list)
Now in console, from that spot , type fbc fbtest1.bas and it will compile into an executable fbtest1
Now to execute type ./fbtest1
and it will print "hello Stan"
Sorry if I don't get fb working. At least no libcurses missing messages.
Last try installing fb was on rpi3 but from different sources. never got it to work.
I did mention I'm not a linux user and now back on window the file system is completely different.
and that's visually on gui. Who uses win command? it's as bad as linux.
I would find navigating window with the command prompt as difficult as linux.
If I put my fbtest.bas files in the same folder as fbc would they compile then?
"If I put my fbtest.bas files in the same folder as fbc would they compile then?"
wrong way!
earlier you proved that fbc is exectuable from anywhere. You are good there , do not screw around putting stuff in that directory that you should not be in.
ON console use the the tools I showed you.
open the console
cd \ get home
ls shows your directories and programs
cd Documents
ls shows your directories and programs
cd freebasic ...must be a directory that you made at some point
ls shows your directories and programs
cd fbprogs
ls ...must be a directory that you made at some point and it contains the file you want to compile
fbtest1.bas should be on your screen
fbc fbtest1.bas ..... will compile the file
now you want to execute it
./fbtest1
I looked up the linux cd command and it is new to me, ? "cd / or cd \ or ~/ or cd ./"
When you say console, do you mean the terminal? Should I be typing command somewhere else?
I hope using the mousepad...which is like win notepad ie a simple text editor and typing print "hello". Then saving it as fbtest1.bas in a folder I created in documents called fbprogs.
so the path would be fbc what? or do I have to as your post go into documents/fbprogs/......
where fbtest1.bas is and then use fbc fbtest1.bas.
info says fbc "fbtest1.bas". I guess I should not use the quotes""
I'll try later as it's connected to my tv and I want to watch some startrek.
Keep in mind the carrot! What is the carrot?
From Geanie (not from Gedit because Raspian does not have Gedit) you are going to edit a gcb file.
From Geanie's "Build" "CompileGCBandmakehex" button you"ll just click that and it will make you the hex
From Geanie's "Build" "Burn" you will program your UNO and be happy
Then do it again and again for fun!
We don't have to do this.
But Pickitplus has a new tool for the Raspberry pi and it would be nice to see it work?
Not all the world runs on windows.
RaspberryPi gives a cheap alternative to programming PICs and Atmels.
Why are we balking to cross this little bridge?
I am going to town so I will be away for a few hours.
Mike. I am getting nowhere fast with fb on rpi.
Look at the image please. I set the path to the fbtest.bas and now the missing stuff .Grrrrrr.
I'm not letting this pass as another failure. If I was a fisherman I'd have an Haddock but I'm not but get something that sounds similar.
This was as far as I got with freebasic on rpi3 only the error was missing libcurses.
Pity it not just a file. I'm well cheesed off with this. It was a doddle on windows.
As a file I meant it being apt get freebasic....not loads of hassle to get nowhere.
cheers for the help sir, I'm just no good at linux. bollux more like
Last edit: stan cartwright 2021-05-25
google says:
$ apt install libncursesw5-dev
don't type the $
just copy and paste
apt install libncursesw5-dev