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.
Cross-compiling for x86 on x64 (Windows)
Re: Cross-compiling for x86 on x64 (Windows)
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.
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
Re: Cross-compiling for x86 on x64 (Windows)
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)
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).
Would be interesting to know what really is needed, to set up a minimal multi-compiler-system (with one IDE).
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Re: Cross-compiling for x86 on x64 (Windows)
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.
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.