Page 1 of 1
buildbot with purebasic - brainstorming
Posted: Thu Oct 16, 2014 2:46 pm
by Azul
I have been thinking to make buildbot for PureBasic but without cross compiling it's not the easiest task to do. I prefer not to have three separate computers for this setup. Several virtual machines just for compiling does not sound too optimal.
Unattented compiling into every pbcompiler target (Windows, Linux, MaOS with 32 and 64) would be ideal configuration.
- Windows does not run other system compilers so that would not be suitable.
- Linux could run at least Linux and (using wine) 32 bit windows compiler. I'm not sure how compatible running 64 bit windows pbcompiler is with Wine64. This still has limited support with MacOS.
- MacOS can run Mac pbcompilers but I have no knowledge or information about wine-like applications for Windows and Linux.
I'm not asking complete setup. Just brainstorming ideas.
Re: buildbot with purebasic - brainstorming
Posted: Thu Oct 16, 2014 2:58 pm
by ostapas
I have little competence in this field, but the first idea that popped into my mind - create some kind of scripting system, precompile script interpreters for all systems, then "stitch" the script to all interpreters at once. However it doesn't sound too appealing, as it will lose "nativeness" of PB code.
Other idea - create some "cloud compile" online service. E.g., upload your source code, server spits back executables for all platforms.
Re: buildbot with purebasic - brainstorming
Posted: Thu Oct 16, 2014 3:04 pm
by Azul
Cloud compile would require cloud computing licenses from Apple, Microsoft and Fantaisie Software. Might get too expensive since MacOS might not be cloud ready with cloud providers.
Update: Building physially own cloud service (virtual machines) does not help much since MacOS might require unofficial patching for running at non-Apple virtual machine.
Apple
Darwin might not be too much helpful there since its just bare unix (even when ".. forms the core set of components upon which OS X and iOS are based." but has limited support to actual MacOS)
ReactOS could be solution for license free cloud computing with Windows part but might be 32 bit only.
Wine would easier to setup.
Re: buildbot with purebasic - brainstorming
Posted: Thu Oct 16, 2014 4:00 pm
by deesko
I don't have a mac, but saw this:
http://wiki.winehq.org/MacOSX
Maybe of some help.
On another nota, this doesn't seem to make any sense (the cloud idea), since you do need to test the executables nevertheless, right?
You don't really expect you spit a cross-platform release without extensive testing it in at least a VM solution (although preferable a real hardware machine), do you?
Re: buildbot with purebasic - brainstorming
Posted: Thu Oct 16, 2014 4:10 pm
by deesko
Re: buildbot with purebasic - brainstorming
Posted: Thu Oct 16, 2014 4:16 pm
by Azul
Just "wine" refers generally to 32bit or 64bit version of wine which does run only 32 bit binaries from Windows. Wine64 is made for 64 bit windows binaries.
I'm not sure can you run Linux pbcompiler with Mac. I know Qemu has "qemu-user" which is explained as "
The qemu-user emulator can run binaries for other architectures bun with the same operating system as the current one." at man page. But that has "same operating system"-limitation.
I'm still looking for solution to have minimal hardware with as low cost as possible to automate compiling.
deesko wrote:On another nota, this doesn't seem to make any sense (the cloud idea), since you do need to test the executables nevertheless, right?
I can send executables to my friends (for testing) but I prefer not to send "free" copies of PureBasic. But that were not the main issue here
