<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Am 25.10.2012 12:06, schrieb SkyDiablo:<br>
</div>
<blockquote cite="mid:50890F21.4050400@gmx.net" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">so, next one. there was an fail
PREFIX at all so i change it to "mips-linux-gnu-", this scrips
works at first:<br>
<br>
===================================================<br>
set PATH=C:\lazarus\fpc\2.6.0\bin\i386-win32;C:\Program Files
(x86)\CodeSourcery\Sourcery G++ Lite\lib\gcc;C:\Program Files
(x86)\CodeSourcery\Sourcery G++ Lite\bin<br>
set PREFIX=mips-linux-gnu-<br>
set INSTALLDIR="D:\fpc\install"<br>
<br>
cd D:\fpc\trunc\2.7.x\fpcbuild\fpcsrc<br>
<br>
make all OS_TARGET=linux CPU_TARGET=mips BINUTILSPREFIX=%PREFIX%<br>
make crossinstall OS_TARGET=linux CPU_TARGET=mips
BINUTILSPREFIX=%PREFIX% INSTALL_PREFIX=%INSTALLDIR%<br>
===================================================<br>
<br>
but now, i get the following error:<br>
<br>
</div>
</blockquote>
[snip]<br>
<blockquote cite="mid:50890F21.4050400@gmx.net" type="cite">
<div class="moz-cite-prefix">
C:/lazarus/fpc/2.6.0/bin/i386-win32/fpcmake.exe -p -Tmips-linux
Makefile.fpc<br>
Processing Makefile.fpc<br>
Error: No targets set<br>
<br>
</div>
</blockquote>
<br>
This is related to the fact that 2.6.0's fpcmake does not support
mips-linux yet. Possible solution:<br>
<br>
First do (once, independantly) the following:<br>
<br>
(assuming the current dir is your 2.7.1 source directory)<br>
cd utils\fpcm<br>
make all<br>
<br>
And then add "FPCMAKE=%YOURSOURCEDIR%\utils\fpcm\fpcmake.exe" to the
"crossinstall" line. This should hopefully help...<br>
<br>
Regards,<br>
Sven<br>
<br>
<blockquote cite="mid:50890F21.4050400@gmx.net" type="cite">
<div class="moz-cite-prefix"> Am 25.10.2012 08:39, schrieb Sven
Barth:<br>
</div>
<blockquote
cite="mid:CAFMUeB_+-fVQeYkLwJyvCDc0zm-=Ok_LhF93Y=zsjD+CFjr4kg@mail.gmail.com"
type="cite">
<p>Am 24.10.2012 22:08 schrieb "SkyDiablo" <<a
moz-do-not-send="true" href="mailto:skydiablo@gmx.net">skydiablo@gmx.net</a>>:<br>
><br>
> wow ! thats amazing!<br>
><br>
> okay, i create the follow batch-file:<br>
><br>
> =======================================================<br>
> set PATH=C:\lazarus\fpc\2.6.0\bin\i386-win32;C:\Program
Files (x86)\CodeSourcery\Sourcery G++ Lite\lib\gcc<br>
> set PREFIX=mips-linux-<br>
> set BINUTILSDIR="C:\Program Files
(x86)\CodeSourcery\Sourcery G++ Lite\bin"<br>
> set INSTALLDIR="D:\fpc\install"<br>
><br>
> cd D:\fpc\trunc\2.7.x\fpcbuild\fpcsrc<br>
><br>
> make all OS_TARGET=linux CPU_TARGET=mips
BINUTILSPREFIX=%PREFIX% CROSSBINDIR=%BINUTILSDIR%<br>
> make crossinstall OS_TARGET=linux CPU_TARGET=mips
BINUTILSPREFIX=%PREFIX% CROSSBINDIR=%BINUTILSDIR%
INSTALL_PREFIX=%INSTALLDIR%<br>
><br>
> pause<br>
> =======================================================<br>
><br>
> so, it runs and runs and runs... but then:<br>
></p>
<p>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...</p>
<p>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.</p>
<p>Regards,<br>
Sven</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>