buildbot with purebasic - brainstorming

Everything else that doesn't fall into one of the other PB categories.
User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

buildbot with purebasic - brainstorming

Post 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.

Code: Select all

; Hello, World!
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: buildbot with purebasic - brainstorming

Post 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.
User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

Re: buildbot with purebasic - brainstorming

Post 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.

Code: Select all

; Hello, World!
deesko
User
User
Posts: 39
Joined: Fri Sep 21, 2012 11:40 pm
Location: Portugal

Re: buildbot with purebasic - brainstorming

Post 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?
deesko
User
User
Posts: 39
Joined: Fri Sep 21, 2012 11:40 pm
Location: Portugal

Re: buildbot with purebasic - brainstorming

Post by deesko »

User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

Re: buildbot with purebasic - brainstorming

Post by Azul »

deesko wrote:I don't have a mac, but saw this:
http://wiki.winehq.org/MacOSX
Maybe of some help.
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 :)

Code: Select all

; Hello, World!
Post Reply