Cross-compiling for x86 on x64 (Windows)

Just starting out? Need help? Post your questions and find answers here.
paulr
User
User
Posts: 70
Joined: Sat Sep 27, 2003 2:53 pm

Cross-compiling for x86 on x64 (Windows)

Post 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.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post 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.
DE AA EB
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post 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.
User avatar
HeX0R
Addict
Addict
Posts: 1188
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

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

Post 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).
paulr
User
User
Posts: 70
Joined: Sat Sep 27, 2003 2:53 pm

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

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