Compile to a different OS

Just starting out? Need help? Post your questions and find answers here.
hmasr
User
User
Posts: 15
Joined: Wed May 16, 2012 8:08 pm

Compile to a different OS

Post 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.
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Compile to a different OS

Post 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
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: Compile to a different OS

Post 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.
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Compile to a different OS

Post by Little John »

void wrote:To elaborate, ...
Thanks. :)
hmasr
User
User
Posts: 15
Joined: Wed May 16, 2012 8:08 pm

Re: Compile to a different OS

Post by hmasr »

Ok,
Thanks all for the prompt reply
Post Reply