Page 1 of 1
Compile to a different OS
Posted: Sat May 19, 2012 10:59 am
by hmasr
I am new to PB. I am using windows. How to compile my application to a different OS (Mac, Lunix, etc)? I can see in the menus “Default target” and “All targets” but they are not working. And in the compiler options there are Windows, Console, and Dll only and no other OS.
Re: Compile to a different OS
Posted: Sat May 19, 2012 11:13 am
by Little John
Hi,
welcome to the forums!
hmasr wrote:How to compile my application to a different OS (Mac, Lunix, etc)?
This is not possible with PB. You can only run another computer (or a virtual machine) with your wanted OS, then install the appropriate PB version there and compile your program there.
Regards, Little John
Re: Compile to a different OS
Posted: Sat May 19, 2012 12:42 pm
by void
Little John wrote:This is not possible with PB. You can only run another computer (or a virtual machine) with your wanted OS, then install the appropriate PB version there and compile your program there.
To elaborate, PureBasic is not a 'cross compiler'. It can only compile to the OS you're running on. The multiple targets in this case include whether it's debug or not, and 32bit versus 64bit, if you have both 32bit and 64bit compilers installed on a single OS.
Re: Compile to a different OS
Posted: Sat May 19, 2012 12:50 pm
by Little John
void wrote:To elaborate, ...
Thanks.

Re: Compile to a different OS
Posted: Sat May 19, 2012 12:54 pm
by hmasr
Ok,
Thanks all for the prompt reply