# Setup 32bit and 64 bit Windows
cd /usr/share/fpcsrc/$FPCVER
make clean all OS_TARGET=win32 CPU_TARGET=i386
make crossinstall OS_TARGET=win32 CPU_TARGET=i386 INSTALL_PREFIX=/usr
ln -sf /usr/lib/fpc/$FPCVER/ppcross386 /usr/bin/ppcross386
make clean all OS_TARGET=win64 CPU_TARGET=x86_64
make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=/usr
ln -sf /usr/lib/fpc/$FPCVER/ppcrossx64 /usr/bin/ppcrossx64
# Make sure its all there (we should see ppcross386, ppcrossx64)
echo "watch for ppcross386, ppcrossx64"
ls -la /usr/lib/fpc/$FPCVER/ppcross*
ls -la /usr/bin/ppcross*
Odd. What is the output of this command in the 3.0.4 directory:
Odd. What is the output of this command in the 3.0.4 directory:
$ grep -i ^clean Makefile
Says https://wiki.freepascal.org/Installing_Lazarus_on_Linux
Some distro prepared packages do not include the tools necessary to add cross compiling to its capabilities. If you may want to cross compile in the future, please consider one of the next listed models.
Looks like yours does not have the make file there, it should have but distribution repo maintainers build a package to meet the declared need, not provide the flexability you need if you are to do something just a bit out unexpected. Sigh.
While you can probably build that Makefile your self, I suspect you might find it easier in the long run if you install an up to date FPC, please see - https://wiki.lazarus.freepascal.org/Installing_the_Free_Pascal_Compiler#Linux
I suggest you remove the existing FPC first, leave the dependencies there (or manually reinstall them) and then install FPC320, either a a deb from https://sourceforge.net/projects/lazarus/files/ or, a bit harder and a bit better, install a tar ball in your own (as opposed to root's) disk space.
( ;D Then, when you have a proper FPC, take the next step and install Lazarus from source. I am a big fan of developers knowing where all their tools are, being able to fiddle with the code easily. Join us, do not be afraid, you will be assimilated ....)
Davo