Compiling on ALL supported distros
Posted: Sunday 11th October 2020 7:16pm
I've made a text script to help with getting compiling your own Gambas
In trying to get debian and raspbian right Benoit let me on to a bit of information about a file on gitlab that not only contains ALL the required dependencies for each distro to compile gambas it also has some custom ",.configure -C" commands relevant to the linux.
So i have written a bash script to take advantage of this.
Supported distros are
ubuntu (various)
debian (various)
archlinux and archlinux-clang
alpine
raspbian
So what this script does....
you have to load it into a text editor and uncomment the line for your distro before running.
Then run from a terminal if first asks of you want to clone from gitlab to the current dir or you can select an existing downloaded cloned dir.
it then reads the ".gitlab-ci.yml" file and extracts the dependency list and ./configure command.
I added Raspbian support
It then offers you a y or n question to run each command needed to compile and install gambas from the installing the depencies to the 'make install'.
you can type 'a' for yes to all.
Todo.
Make it auto detect linux version.
Make it install application menu item or desktop launcher as the files are there in /app/desktop but the install doesn't add them on debian, not sure about other distros.
Give it a test
[attachment removed]
Update:
I have now made (and refined) this script and also made 2 gambas applications that do a similar thing.
See and download them here...
http://gambaswiki.org/wiki/installtools
All the best
In trying to get debian and raspbian right Benoit let me on to a bit of information about a file on gitlab that not only contains ALL the required dependencies for each distro to compile gambas it also has some custom ",.configure -C" commands relevant to the linux.
So i have written a bash script to take advantage of this.
Supported distros are
ubuntu (various)
debian (various)
archlinux and archlinux-clang
alpine
raspbian
So what this script does....
you have to load it into a text editor and uncomment the line for your distro before running.
Then run from a terminal if first asks of you want to clone from gitlab to the current dir or you can select an existing downloaded cloned dir.
it then reads the ".gitlab-ci.yml" file and extracts the dependency list and ./configure command.
I added Raspbian support
It then offers you a y or n question to run each command needed to compile and install gambas from the installing the depencies to the 'make install'.
you can type 'a' for yes to all.
Todo.
Make it auto detect linux version.
Make it install application menu item or desktop launcher as the files are there in /app/desktop but the install doesn't add them on debian, not sure about other distros.
Give it a test
[attachment removed]
Update:
I have now made (and refined) this script and also made 2 gambas applications that do a similar thing.
See and download them here...
http://gambaswiki.org/wiki/installtools
All the best