Sven Barth wrote
Graeme, please. You should be around here long enough to already know that.
;)
I hate cross-compiling because it never works for me, or gives very unstable executable as end result. But I wanted to cross-compile in a pinch - which clearly is not a good choice.
Your fpc is compiled for x86_64 which defaults to calling ppcx64 which can
only compile for x86_64. If you now pass "fpc -i -Pi386" and have a
ppcross386 compiler available in the location fpc looks for then you'll see
I have a ppc386 symlink in the same 'bin' directory as my 64-bit 'fpc' executable and this is what Lazarus gives me when I changed linking Target and CPU settings.... I guess there is a big difference between ppc386 and ppcross386. ;-)
[ see attached images ]
I guess I'll just have to setup a full blown "native" FPC for each platform I want to support in separate VM's. This clearly seems the safest and most reliable option (and what I have used to date - but I don't have a current 32-bit FPC for FreeBSD 9.0 setup, hence my attempt at cross compiling).
Thanks for responding though... I'm installing FPC from scratch in my FreeBSD VM now.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net