[Lazarus] Cross-compiling -> MIPS

Sven Barth pascaldragon at googlemail.com
Thu Oct 25 08:39:48 CEST 2012


Am 24.10.2012 22:08 schrieb "SkyDiablo" <skydiablo at gmx.net>:
>
> wow ! thats amazing!
>
> okay, i create the follow batch-file:
>
> =======================================================
> set PATH=C:\lazarus\fpc\2.6.0\bin\i386-win32;C:\Program Files
(x86)\CodeSourcery\Sourcery G++ Lite\lib\gcc
> set PREFIX=mips-linux-
> set BINUTILSDIR="C:\Program Files (x86)\CodeSourcery\Sourcery G++
Lite\bin"
> set INSTALLDIR="D:\fpc\install"
>
> cd D:\fpc\trunc\2.7.x\fpcbuild\fpcsrc
>
> make all OS_TARGET=linux CPU_TARGET=mips BINUTILSPREFIX=%PREFIX%
CROSSBINDIR=%BINUTILSDIR%
> make crossinstall OS_TARGET=linux CPU_TARGET=mips BINUTILSPREFIX=%PREFIX%
CROSSBINDIR=%BINUTILSDIR% INSTALL_PREFIX=%INSTALLDIR%
>
> pause
> =======================================================
>
> so, it runs and runs and runs... but then:
>

The error says that it can't find the "mips-linux-as" executable which is
because there are spaces in the path to it. This is something make handles
rather badly...

But you have already a part of the solution: you added the path to PATH.
With that you can now simply remove the "CROSSBINDIR=%BINUTILSDIR%" from
both commands and it should work.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121025/2136ca56/attachment-0003.html>


More information about the Lazarus mailing list