I will perhaps migrate from W7 to Linux (Ubuntu). About Free Basic installation : I read that some "additional packages" are needed ; must I install them (all ? ) or are they provided by the GCBasic installation ? Thanks for any answer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unrar/unpack GCB@Syn.rar to a location of your choice within your home directory (eg. within Downloads) with either a file manager or from a console.
From a console, change to the Great Cow BASIC Sources in the unpacked directory:
eg. cd ~/Downloads/GCB@Syn/GreatCowBasic/Sources/GCBASIC
Make sure that install.sh is set as executable (ie. chmod +x install.sh), and then execute: ./install.sh build
You will need root privileges for this step. You can switch user (su) to root, or optionally use sudo.
Execute: [sudo] ./install.sh install
If you su’d to root, use exit to drop back to your normal user. Then, be sure to follow the instructions given by the script for updating your path.
Confirm proper execution, and the version, of Great Cow BASIC by executing: gcbasic /version
Now you can create and compile Great Cow BASIC source files.
Programming microcontrollers:
To program your microcontroller with your Great Cow BASIC created hex file, you will need additional programming and programmer software.
For Atmel AVR microcontroller programming, you will need avrdude. It should be available in your distributions repository. If not, check here: http://www.nongnu.org/avrdude/
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I saw this, my question was about the page http://www.freebasic.net/wiki/CompilerInstalling
Section Linux, point Nr. 4 : "FreeBASIC requires several additional packages to be installed before it can be used to compile executables" ; and AVR is never mentionned, only compiling of "native" code for Linux. So ... ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great Cow BASIC for Linux works. The process is not complicated and whatever they say at point 4 will not be an issue and many have Linux with Great Cow BASIC.
Dont confuse AVR with theFreeBASIC compilation of the Great Cow BASIC source using FreeBASIC to create the Linux executable. PIC and AVR support is the same independent of Operating System.
You will have a host of issues way beyond on the scope of Great Cow BASIC when using Linux, which are beyond the scope of Great Cow BASIC for Linux.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Freebasic is a command line compiler. The first addition for me would be the fbide for windows.
it's not apt-get install but easy to install in linux. I followed a guide
but gave up linux except for rasperry pi as only os
When I first installed fb on win I was drawing circles on the screen straight away.
linux mint is a nice ui
Last edit: stan cartwright 2020-10-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, I will try. As far as I understood, FreeBasic is there to ... compile the GCBasic compiler ? So, why don't You distribute it as an executable, additionally to the source ?
Last edit: Bertrand BAROTH 2020-10-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the idea is it builds for the system in use.
Linux has apt-get software but some software needs "building" from source code, like fb.
when fb is "built" then you use fb commands to build gcb.
then you have a line command gcb compiler.
you don't get the gcb ide.
yeah,,sounds lots of fun
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Win 7 is cool if you are not using the internet for anything that needs security.
I personally would find gcb on win 7 easier to use,let alone set up and install.
There's the dual boot system called grub which gives the option of win or linux boot.
you can use wine to use the windows program data...sometimes.
If windows partitions worry you then linux are worse.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The compiler is not reliant on. .net. Many portions of the supporting tools with the Windows toolchain do require .net but you get none of those tools in the native Linux solution.
Linux guys will explain how you use editors, use ppstool (or not) etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You will use an editor. Selection of the editor is typically distribution specific but a cross platform editor would be Atom. There is no concept of a formal IDE oe toolchain package for Linux. The package is the core compiler only.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finally (and this concerns only Linux, not GCBasic) I think I will give up my idea of migration to Linux and stay with Windows 7, whose egonomy is in fact better.
You know it makes sense!!!
There's a Brazilian linux that looks just like windows....but it isn't.
linux has it's points. steam for gaming.
getting drivers or even software for hardware can be non existent with linux.
Try linux and it does most everyday stuff ok,
email,office,graphics
3d printers,cameras,usb scopes don't try
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The most interesting feature of the IDE would be missing : the fact that it shows the block structure of the program, which is related with the language itself : If-Then-Else blocks, and loops ... Sorry !
:(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use GCB on my iMac. I have been able to compile the GCB source into a macOS native executeable which I then call from within the cross platform editor, Geany. I have written a few posts on how I managed this which may be of help in you working out what steps are required to do a similar thing for your Linux distribution. If you search either for posts by me, or search for "run GCB on Mac" you should find these guides.
I have also run GCB under WINE and I have posted one or more guides on how I managed to do that. WINE does need some fiddling about with to get it to run the GCB Windows native IDE, again my posts on this subject may provide a little guidance for you.
The easiest solution would be to install a copy of VirtualBox and run the IDE inside a virtual copy of Windows. That does require a licensed copy of Windows though.
Running the compiler as a native binary is by far and away the quickest and most reliable method. I found that running the IDE under WINE I would have random crashes which would often lose any edits I had made since opening the file, I got into the habit of saving the file regularly.
Geany as an IDE is the best solution I've found for me on the iMac. It looks good, can be set to syntax highlight the BASIC commands (I posted a copy of the file I use after @trev decoded the keywords for Linux in the correct format for Geany) and it has code folding capabilities for subroutines and "linking" of conditional commands and loops.
er,are macs totally different from windows and linux?
I got a gcb thread ages ago about gcb linux and it was an experiment
Linux is ok but you got to be an expert IMHO
I think if you are like me, a hobbyist, then win would give less problems than linux.
Try using a rpi when you have to use linux...but freebasic works on rpi...it's including the "gpio" that's not fun.
In the end if linux being free was so good then
why do we buy windows machines and pay for the os?
For convenience my rpi is connected to my domestic tv so can easily check it and the urge to see what is on this sd card and try intsalling gcb from start and document problems and success
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The base of macOS is (was?) based on UNIX. The "Terminal" (or Command Prompt) in macOS allows many UNIX based commands to be executed in a similar way to those on Linux. So for command line programs such as the GCB Compiler, once it has been built for the OS, are nearly identical in operation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finally I think that all features of Linux, compared to Windows, are what should be called a "gaseous plant" ! And I will go on with Windows 7 and forget Linux ... for the moment.
(Sorry for the "old" trashcan from NT4 era)
:)
I upgraded win 7 to win 10 when it was a free offer.
I got win 10 32bit but found I could upgrade to win 10 64bit.
Why? Because some programs like Cura or other 3D cad was only updated for win 10 64bit.
It did not say that you need the latest opengl and needed a new graphics card.
Least in windows setting amd drivers is a piece of cake...unlike linux!
When I hear of photo shopped pictures of famous people I think apple
although there is plenty of comparable stuff for win or even linux. Blender has been around for years.
I would try to upgrade win7 to win10. There are ways but not for this forum.
GCB works fine on win7, I have it on my laptop.
When I use gcb I just want to do my thing in basic on avr...not bother about installing.
I got enough problems joining all the wires correctly :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finally for me Win 7 is absolutely satisfying ; I don't perform "too sensitive" operations online, never did homebanking, and Paypal is connected to an account which is different from my main account, but hosted by my bank (the same principle as the PayPal account) ; I can "feed it" via the cash dispenser using my credit card, which I don't use for online transactions ; I needed it only for the "charging" card of my ELECTRIC (!) car, to allow debit if I charge "on the road". So my safety is not compromised by my "old" OS ; and if some "online" sellers don't accept PayPal or my browser, if they think it is too old, then... they will simply lose a potential client !
LOL !
Last edit: Bertrand BAROTH 2020-10-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't wanna spend (or lose ? ) too much time for issues and problems related with the OS : my hobby is (together with electronic music playing) my railroad layout : https://azlforum.com/thread/1194/alberichs-layout
controlled by a sequencer prog, written in GCB and running on an Atmel8515, not an Arduino (I will PERHAPS add voice control via Easy VR3 when landscape will be finished).
And I USE the computer to design my PCB's, and some 3D-prints with Sketchup 8 (and order parts online).
So I am NOT a geek of the OS !
:)
Last edit: Bertrand BAROTH 2020-10-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will perhaps migrate from W7 to Linux (Ubuntu). About Free Basic installation : I read that some "additional packages" are needed ; must I install them (all ? ) or are they provided by the GCBasic installation ? Thanks for any answer.
See the Help.
Overview - Linux Operating System
Introduction: Great Cow BASIC can be used when using the Linux Operating System.
This instructions are not distribution specific, but are for Linux only (not Windows).
Instructions: Complete the following steps to compile and install Great Cow BASIC for Linux:
Install FreeBasic from your distributions repository or http://www.freebasic.net/wiki/CompilerInstalling
Download the "Great Cow BASIC - Linux Distribution" from SourceForge at https://sourceforge.net/projects/gcbasic/files/
Unrar/unpack GCB@Syn.rar to a location of your choice within your home directory (eg. within Downloads) with either a file manager or from a console.
From a console, change to the Great Cow BASIC Sources in the unpacked directory:
eg. cd ~/Downloads/GCB@Syn/GreatCowBasic/Sources/GCBASIC
Make sure that install.sh is set as executable (ie. chmod +x install.sh), and then execute: ./install.sh build
You will need root privileges for this step. You can switch user (su) to root, or optionally use sudo.
Execute: [sudo] ./install.sh install
If you su’d to root, use exit to drop back to your normal user. Then, be sure to follow the instructions given by the script for updating your path.
Confirm proper execution, and the version, of Great Cow BASIC by executing: gcbasic /version
Now you can create and compile Great Cow BASIC source files.
Programming microcontrollers:
To program your microcontroller with your Great Cow BASIC created hex file, you will need additional programming and programmer software.
For Microchip PIC microcontroller programming, you might find what you need at: http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=pg164120
For Atmel AVR microcontroller programming, you will need avrdude. It should be available in your distributions repository. If not, check here: http://www.nongnu.org/avrdude/
I saw this, my question was about the page http://www.freebasic.net/wiki/CompilerInstalling
Section Linux, point Nr. 4 : "FreeBASIC requires several additional packages to be installed before it can be used to compile executables" ; and AVR is never mentionned, only compiling of "native" code for Linux. So ... ?
You are concerned, clearly.
You will have a host of issues way beyond on the scope of Great Cow BASIC when using Linux, which are beyond the scope of Great Cow BASIC for Linux.
Freebasic is a command line compiler. The first addition for me would be the fbide for windows.
it's not apt-get install but easy to install in linux. I followed a guide
but gave up linux except for rasperry pi as only os
When I first installed fb on win I was drawing circles on the screen straight away.
linux mint is a nice ui
Last edit: stan cartwright 2020-10-18
Thanks, I will try. As far as I understood, FreeBasic is there to ... compile the GCBasic compiler ? So, why don't You distribute it as an executable, additionally to the source ?
Last edit: Bertrand BAROTH 2020-10-18
I think the idea is it builds for the system in use.
Linux has apt-get software but some software needs "building" from source code, like fb.
when fb is "built" then you use fb commands to build gcb.
then you have a line command gcb compiler.
you don't get the gcb ide.
yeah,,sounds lots of fun
Win 7 is cool if you are not using the internet for anything that needs security.
I personally would find gcb on win 7 easier to use,let alone set up and install.
There's the dual boot system called grub which gives the option of win or linux boot.
you can use wine to use the windows program data...sometimes.
If windows partitions worry you then linux are worse.
I read "somewhere" that GCBasic for Win used the Net Framework. So, unfortunately, I think it won't run with Wine ?
The compiler is not reliant on. .net. Many portions of the supporting tools with the Windows toolchain do require .net but you get none of those tools in the native Linux solution.
Linux guys will explain how you use editors, use ppstool (or not) etc.
https://dotnet.microsoft.com/download
To Anobium : Has the "real" Linux version an IDE like the Windows version ? Or must I use an "external" editor ?
You will use an editor. Selection of the editor is typically distribution specific but a cross platform editor would be Atom. There is no concept of a formal IDE oe toolchain package for Linux. The package is the core compiler only.
Finally (and this concerns only Linux, not GCBasic) I think I will give up my idea of migration to Linux and stay with Windows 7, whose egonomy is in fact better.
Last edit: Bertrand BAROTH 2020-10-18
You know it makes sense!!!
There's a Brazilian linux that looks just like windows....but it isn't.
linux has it's points. steam for gaming.
getting drivers or even software for hardware can be non existent with linux.
Try linux and it does most everyday stuff ok,
email,office,graphics
3d printers,cameras,usb scopes don't try
The most interesting feature of the IDE would be missing : the fact that it shows the block structure of the program, which is related with the language itself : If-Then-Else blocks, and loops ... Sorry !
:(
The Linux guys, if they settled on one editor, like ATOM, then the block structure etc call all be implemented.
I use GCB on my iMac. I have been able to compile the GCB source into a macOS native executeable which I then call from within the cross platform editor, Geany. I have written a few posts on how I managed this which may be of help in you working out what steps are required to do a similar thing for your Linux distribution. If you search either for posts by me, or search for "run GCB on Mac" you should find these guides.
I have also run GCB under WINE and I have posted one or more guides on how I managed to do that. WINE does need some fiddling about with to get it to run the GCB Windows native IDE, again my posts on this subject may provide a little guidance for you.
The easiest solution would be to install a copy of VirtualBox and run the IDE inside a virtual copy of Windows. That does require a licensed copy of Windows though.
Running the compiler as a native binary is by far and away the quickest and most reliable method. I found that running the IDE under WINE I would have random crashes which would often lose any edits I had made since opening the file, I got into the habit of saving the file regularly.
Geany as an IDE is the best solution I've found for me on the iMac. It looks good, can be set to syntax highlight the BASIC commands (I posted a copy of the file I use after @trev decoded the keywords for Linux in the correct format for Geany) and it has code folding capabilities for subroutines and "linking" of conditional commands and loops.
There is a picture of my Geany installation showing a GCB file here: https://sourceforge.net/p/gcbasic/discussion/596084/thread/612cf6bf/?limit=250#321c
Here is the syntax highlighting file I created from @trev work here: https://sourceforge.net/p/gcbasic/discussion/579125/thread/ab88f038bf/#a22f/8e90
There are also some instructions on how to compile the GCB compiler from source for the Mac, but again it may give you some idea of what, if any, additional files are needed. These have been (again) written by @trev : https://sourceforge.net/p/gcbasic/discussion/596084/thread/612cf6bf/#a7fd
And, the all the syntax highlighting and reserved words are now managed as part of the Great Cow BASIC release. So, this should be good to use.
er,are macs totally different from windows and linux?
I got a gcb thread ages ago about gcb linux and it was an experiment
Linux is ok but you got to be an expert IMHO
I think if you are like me, a hobbyist, then win would give less problems than linux.
Try using a rpi when you have to use linux...but freebasic works on rpi...it's including the "gpio" that's not fun.
In the end if linux being free was so good then
why do we buy windows machines and pay for the os?
For convenience my rpi is connected to my domestic tv so can easily check it and the urge to see what is on this sd card and try intsalling gcb from start and document problems and success
The base of macOS is (was?) based on UNIX. The "Terminal" (or Command Prompt) in macOS allows many UNIX based commands to be executed in a similar way to those on Linux. So for command line programs such as the GCB Compiler, once it has been built for the OS, are nearly identical in operation.
Finally I think that all features of Linux, compared to Windows, are what should be called a "gaseous plant" ! And I will go on with Windows 7 and forget Linux ... for the moment.
(Sorry for the "old" trashcan from NT4 era)
:)
Last edit: Bertrand BAROTH 2020-10-20
I upgraded win 7 to win 10 when it was a free offer.
I got win 10 32bit but found I could upgrade to win 10 64bit.
Why? Because some programs like Cura or other 3D cad was only updated for win 10 64bit.
It did not say that you need the latest opengl and needed a new graphics card.
Least in windows setting amd drivers is a piece of cake...unlike linux!
When I hear of photo shopped pictures of famous people I think apple
although there is plenty of comparable stuff for win or even linux. Blender has been around for years.
I would try to upgrade win7 to win10. There are ways but not for this forum.
GCB works fine on win7, I have it on my laptop.
When I use gcb I just want to do my thing in basic on avr...not bother about installing.
I got enough problems joining all the wires correctly :)
Finally for me Win 7 is absolutely satisfying ; I don't perform "too sensitive" operations online, never did homebanking, and Paypal is connected to an account which is different from my main account, but hosted by my bank (the same principle as the PayPal account) ; I can "feed it" via the cash dispenser using my credit card, which I don't use for online transactions ; I needed it only for the "charging" card of my ELECTRIC (!) car, to allow debit if I charge "on the road". So my safety is not compromised by my "old" OS ; and if some "online" sellers don't accept PayPal or my browser, if they think it is too old, then... they will simply lose a potential client !
LOL !
Last edit: Bertrand BAROTH 2020-10-20
I don't wanna spend (or lose ? ) too much time for issues and problems related with the OS : my hobby is (together with electronic music playing) my railroad layout :
https://azlforum.com/thread/1194/alberichs-layout
controlled by a sequencer prog, written in GCB and running on an Atmel8515, not an Arduino (I will PERHAPS add voice control via Easy VR3 when landscape will be finished).
And I USE the computer to design my PCB's, and some 3D-prints with Sketchup 8 (and order parts online).
So I am NOT a geek of the OS !
:)
Last edit: Bertrand BAROTH 2020-10-21