Page 1 of 1

Cross-compiling for x86 on x64 (Windows)

Posted: Fri May 30, 2014 6:06 am
by paulr
Hi, I'm trying to use the multi-compiler support to compile for an x86 system from my x64 machine.

I got as far as installing 32-bit PB on a 32-bit (Win7) machine, copying the contents of its 'compilers' folder onto my x64 (Win8) machine, and adding it to the compilers list in 'preferences'. But when I try to compile using the x86 compiler, I get messages saying 'Can't load any residents'.

I can't find any help on how to do it right. Help, anyone? Thanks.

Re: Cross-compiling for x86 on x64 (Windows)

Posted: Fri May 30, 2014 6:47 am
by davido
You can install both x64 and x86 on a 64 bit machine.
You can then choose the compiler from compiler options in the tools menu.

Also see: http://www.purebasic.com/documentation/ ... al_pb.html
from the online manual.

Re: Cross-compiling for x86 on x64 (Windows)

Posted: Fri May 30, 2014 10:17 am
by Fred
Once installed, you can also use a single IDE with several compilers: http://www.purebasic.com/documentation/ ... ences.html -> look for "compiler" section.

Re: Cross-compiling for x86 on x64 (Windows)

Posted: Fri May 30, 2014 10:23 am
by HeX0R
I think you will need not only the compilers-folder, but also PureLibraries and Residents (maybe Subsystems, Catalogs also?)

Would be interesting to know what really is needed, to set up a minimal multi-compiler-system (with one IDE).

Re: Cross-compiling for x86 on x64 (Windows)

Posted: Thu Sep 04, 2014 7:18 pm
by paulr
Resurrecting an old thread here, but I discovered the minimal requirements to run a cross-compiler without installing that version of PB:

Just create a folder anywhere, and copy the following folders to it, from the PB version you'd like to cross-compile to:

Compilers
PureLibraries
Residents
Subsystems

...then add pbcompiler.exe (from the Compilers folder) to the compiler list in the Preferences of the PB version you're cross-compiling from. You're ready to go.

Actually in my tests, Residents & Subsystems folder didn't appear to be necessary, but they sound important so I left them in.