Mike, you sorted it with apt install libncursesw5-dev. Did mention fb lib files.
pi@raspberrypi:~ $ cd /home/pi/Documents/freebasic/fbprogs
pi@raspberrypi:~/Documents/freebasic/fbprogs $ fbc fbtest1.bas
pi@raspberrypi:~/Documents/freebasic/fbprogs $ ./fbtest1
Hello
The missing libs were why I never got fb working on rpi3.
I think fb istallation on linux is poorly documented and trying on rpi is the same.
Where does libncursesw5-dev get installed to?
and where is./fbtest1 ,the compiled exe file?
Thanks for your patience, I must have got on your nerves.
What now. Should I try to integrate it with geany?
I want know why there's 2 fbc.
one is in home/pi/Documents/freebasic/FreeBasic-1.07...raspbian9-arm/bin.
Another fbc is in usr/local/bin.
Which can I delete?
Last edit: stan cartwright 2021-05-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You wrote
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.
Is this in the new gcb version or did I miss it in recent versions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stan,
I assume you installed the 'curses' lib using:
apt install libncursesw5-dev If it didn't work the put sudo before the 'apt install......'
"Where does libncursesw5-dev get installed to?"
I don't know and really don't care. It is somewhere in the 'system' where it can be found and used.
"one is in home/pi/Documents/freebasic/FreeBasic-1.07...raspbian9-arm/bin.
Another fbc is in usr/local/bin.
Which can I delete? "
I would not delete either one. "usr/local/bin" is where you are calling it from in system. "freebasic...." is where you installed from and it has extra stuff that you would not have if deleted like the examples and extensions.
should I try
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
yet as I only just got it working. printing hello is one thing, I'll try a screen and some graphics to see if it's working ok.
if gcb worked with a rpi would it let a uno on usb lead work the same as windows gcb?
having fb working is more my priority's and set screen mode and try graphics. ie test fb.
I thank you again Mike, I'm gonna make a you tube about this if ok with you and get fb first time on rpi 400 without any failures...It will be related to gcb.
Last edit: stan cartwright 2021-05-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stan,
Geany does work "out of the Box". i was amazed.
First click on Build > Compile or use F8 key
second click on Build > execute or use F5 key
see attached.
We can do similar with GCB by making our own tools for compile/ makehex and burn.
Cheers Mike, I been looking geany up.. related to fb.
I thought paths had to be set up ie where the .bas file is, where to save the exe file etc.
I'll follow your advice'
I'm having second thoughts about fb as a programming language for rpi as using
the gpio needs wiringpi and fb has no keywords for using the gpio.
For the rpi , python seems more popular.
edit.. geany do just work out the box with fb...
and why call the terminal console?
I noticed it printed hello in the terminal but if I set a screen it would not.
Lots to learn.
I can see it being useful for linux gcb if it's easy to set up.
Thing is I don't see gcb on a rpi after the easy install working as well as gcb does under windows.
For me it was a challenge and although I haven't actually installed gcb on rpi I wonder why I would. I will try it but if I get a headache then later.
I think the win version is fine it's that effort has been made for the linux version and want to test it.
Last edit: stan cartwright 2021-05-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm still playing with this rpi400. It's good for avi and just got a ribbon to breadboard adaptor.
Not much comparison with a pic but will now find use even using python.
Wrote twisterOS to a 64GB sd and the setup...including FreeBasic,...yawn.
Thanks mmotte for the FB help. Using rpi is all new again.
Got fb working on rpi3 so that's the one I'll break..not the rpi400 which is so much nicer
with twisterOS.
There's a rpi OS called nitehawk, which seems to be the win10 twisterOS theme.
Leaner maybe or faster, dunno.
I still don't know if to try installing gcb linux/rpi.
I was amazed Geany (not installed in twisterOS by default) works straight away with freebasic.
I got a rpi3 and rpi400 next to each other and apart from the obvious speed difference it's little things like having to install scrot on rpi3 for screen saver when twisteros has screenshot, which you can see working.
Rpios seems to look simple and old.
Last edit: stan cartwright 2021-06-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I can assume FreeBasic is running in Geany?
I suppose a command line to install gcb linux and
then everything is command text.
Would it work with arduino boards?
At least I got FB working on rpi3 and 400.
There's a noticeable difference in speed rpi400 compared to rpi3.
It's clocked at 1.8G where rpi4 is 1.5G. I got mine overclock to 2100 but it says 2200 which you can't get unless you use turbo..so mine is still under warranty as the forceturbo bit hasn't been set.
With 4G ram and twisterOS, it is actually a nice little desktop machine.
A rpi4 would need a case and good cooling so price wise go for rpi400.
I tried ubunto mate on rpi but didn't "like" it.
I tried twister on rpi3 and it didn't boot...it does mention about rpi3/twister "problems"
twister has an easy overclock or general cpu info app
The rpi speed is self adjust depending on need.
Here's something that's different to windows that I can't do on a rpi.
I can use old Audacity in win..notice the Windows WASAPI...in Audacity.
When this is set then whatever the windows audio out is will be recorded.
so yo press the audacity record button and the youtube play and predd stop when done..
Then under Audacity file Export file as whatever.
Really nice if you it could be done with linux so easy.
streaming mp3 and recording at the same time.
I got geany, I got gcb@syn, I got a gcb files folder. Where on the forum is setup geany for gcb linux ?
This is on rpi using twisteros... debian based like rpi buster.
A bit of geany config and it should work.
Mike, you sorted it with apt install libncursesw5-dev. Did mention fb lib files.
pi@raspberrypi:~ $ cd /home/pi/Documents/freebasic/fbprogs
pi@raspberrypi:~/Documents/freebasic/fbprogs $ fbc fbtest1.bas
pi@raspberrypi:~/Documents/freebasic/fbprogs $ ./fbtest1
Hello
The missing libs were why I never got fb working on rpi3.
I think fb istallation on linux is poorly documented and trying on rpi is the same.
Where does libncursesw5-dev get installed to?
and where is./fbtest1 ,the compiled exe file?
Thanks for your patience, I must have got on your nerves.
What now. Should I try to integrate it with geany?
I want know why there's 2 fbc.
one is in home/pi/Documents/freebasic/FreeBasic-1.07...raspbian9-arm/bin.
Another fbc is in usr/local/bin.
Which can I delete?
Last edit: stan cartwright 2021-05-26
You wrote
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.
Is this in the new gcb version or did I miss it in recent versions?
Stan,
I assume you installed the 'curses' lib using:
apt install libncursesw5-dev If it didn't work the put sudo before the 'apt install......'
"Where does libncursesw5-dev get installed to?"
I don't know and really don't care. It is somewhere in the 'system' where it can be found and used.
"one is in home/pi/Documents/freebasic/FreeBasic-1.07...raspbian9-arm/bin.
Another fbc is in usr/local/bin.
Which can I delete? "
I would not delete either one. "usr/local/bin" is where you are calling it from in system. "freebasic...." is where you installed from and it has extra stuff that you would not have if deleted like the examples and extensions.
So bottom line. Did the " ./fbtest1 " run?
should I try
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
yet as I only just got it working. printing hello is one thing, I'll try a screen and some graphics to see if it's working ok.
if gcb worked with a rpi would it let a uno on usb lead work the same as windows gcb?
having fb working is more my priority's and set screen mode and try graphics. ie test fb.
I thank you again Mike, I'm gonna make a you tube about this if ok with you and get fb first time on rpi 400 without any failures...It will be related to gcb.
Last edit: stan cartwright 2021-05-26
Geany is supposed to work out the box with freebasic.??
Stan,
Geany does work "out of the Box". i was amazed.
First click on Build > Compile or use F8 key
second click on Build > execute or use F5 key
see attached.
We can do similar with GCB by making our own tools for compile/ makehex and burn.
Cheers Mike, I been looking geany up.. related to fb.
I thought paths had to be set up ie where the .bas file is, where to save the exe file etc.
I'll follow your advice'
I'm having second thoughts about fb as a programming language for rpi as using
the gpio needs wiringpi and fb has no keywords for using the gpio.
For the rpi , python seems more popular.
edit.. geany do just work out the box with fb...
and why call the terminal console?
Last edit: stan cartwright 2021-05-27
I noticed it printed hello in the terminal but if I set a screen it would not.
Lots to learn.
I can see it being useful for linux gcb if it's easy to set up.
Thing is I don't see gcb on a rpi after the easy install working as well as gcb does under windows.
For me it was a challenge and although I haven't actually installed gcb on rpi I wonder why I would. I will try it but if I get a headache then later.
I think the win version is fine it's that effort has been made for the linux version and want to test it.
Last edit: stan cartwright 2021-05-27
I'm still playing with this rpi400. It's good for avi and just got a ribbon to breadboard adaptor.
Not much comparison with a pic but will now find use even using python.
Wrote twisterOS to a 64GB sd and the setup...including FreeBasic,...yawn.
Thanks mmotte for the FB help. Using rpi is all new again.
Got fb working on rpi3 so that's the one I'll break..not the rpi400 which is so much nicer
with twisterOS.
There's a rpi OS called nitehawk, which seems to be the win10 twisterOS theme.
Leaner maybe or faster, dunno.
I still don't know if to try installing gcb linux/rpi.
I was amazed Geany (not installed in twisterOS by default) works straight away with freebasic.
I got a rpi3 and rpi400 next to each other and apart from the obvious speed difference it's little things like having to install scrot on rpi3 for screen saver when twisteros has screenshot, which you can see working.
Rpios seems to look simple and old.
Last edit: stan cartwright 2021-06-12
So I can assume FreeBasic is running in Geany?
I suppose a command line to install gcb linux and
then everything is command text.
Would it work with arduino boards?
At least I got FB working on rpi3 and 400.
There's a noticeable difference in speed rpi400 compared to rpi3.
It's clocked at 1.8G where rpi4 is 1.5G. I got mine overclock to 2100 but it says 2200 which you can't get unless you use turbo..so mine is still under warranty as the forceturbo bit hasn't been set.
With 4G ram and twisterOS, it is actually a nice little desktop machine.
A rpi4 would need a case and good cooling so price wise go for rpi400.
I tried ubunto mate on rpi but didn't "like" it.
I tried twister on rpi3 and it didn't boot...it does mention about rpi3/twister "problems"
twister has an easy overclock or general cpu info app
The rpi speed is self adjust depending on need.
Here's something that's different to windows that I can't do on a rpi.
I can use old Audacity in win..notice the Windows WASAPI...in Audacity.
When this is set then whatever the windows audio out is will be recorded.
so yo press the audacity record button and the youtube play and predd stop when done..
Then under Audacity file Export file as whatever.
Really nice if you it could be done with linux so easy.
streaming mp3 and recording at the same time.
this is a handy tip for win users.
I got geany, I got gcb@syn, I got a gcb files folder. Where on the forum is setup geany for gcb linux ?
This is on rpi using twisteros... debian based like rpi buster.
A bit of geany config and it should work.
Last edit: stan cartwright 2022-03-21
on rpi I seem to have avrdude which is needed so do I copy it to gcb folder to find it easier?
I find linux file system a challenge.
This is what I used I think. http://gcbasic.sourceforge.net/help/_introduction.html