Obviously, that is not me
Here is what I have done:
In fpc 2.6.0 src directory:
make zipinstall OS_TARGET=win32 CPU_TARGET=i386after that, unzipped the resulting file on ~/lazarus/fpc/2.6.0-cross
I include these lines in /etc/fpc.cfg:
#IFDEF win32
-Fu~/lazarus/fpc/2.6.0-cross/units/i386-win32
-Fu~/lazarus/fpc/2.6.0-cross/units/i386-win32/*
-XPi586-mingw32msvc-
#ELSE linux
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIFThen, I go into lazarus directory, and try:
make clean bigide OS_TARGET=win32 CPU_TARGET=i386everything seems to work. After that, I start lazarus, chage LCLWidgetType and target OS to win32, and try to compile the project loadpicture.lpi (one of the examples), getting this:
win32/win32wsdialogs.pp(0,0) Fatal: Can not find unit Windows used by Win32WSDialogs.I am using debian stable, with mingw32 intalled, so prefix for crossbinutils is i586-mingw32msvc-
What am I missing or doing wrong?