so, next one. there was an fail PREFIX at all so i change it to
"mips-linux-gnu-", this scrips works at first:
===================================================
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
set PREFIX=mips-linux-gnu-
set INSTALLDIR="D:\fpc\install"
cd D:\fpc\trunc\2.7.x\fpcbuild\fpcsrc
make all OS_TARGET=linux CPU_TARGET=mips BINUTILSPREFIX=%PREFIX%
make crossinstall OS_TARGET=linux CPU_TARGET=mips
BINUTILSPREFIX=%PREFIX% INSTALL_PREFIX=%INSTALLDIR%
===================================================
but now, i get the following error:
===================================================
C:/lazarus/fpc/2.6.0/bin/i386-win32/ginstall.exe -m 755 -d
D:\fpc\install/bin/i386-win32
C:/lazarus/fpc/2.6.0/bin/i386-win32/cp.exe -fp ppcrossmips.exe
D:\fpc\install/bin/i386-win32/ppcrossmips.exe
make[4]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc/compiler'
make[3]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc'
make rtl_install
FPC=D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc/compiler/ppcrossmips.exe
ZIPDESTDIR=D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc
FPCMAKE=C:/lazarus/fpc/2.6.0/bin/i386-win32/fpcmake.exe
make[3]: Entering directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc'
make -C rtl install
make[4]: Entering directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc/rtl'
make -C linux all
make[5]: Entering directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc/rtl/linux'
make[5]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc/rtl/linux'
C:/lazarus/fpc/2.6.0/bin/i386-win32/fpcmake.exe -p -Tmips-linux Makefile.fpc
Processing Makefile.fpc
Error: No targets set
make[4]: *** [fpc_install] Error 1
make[4]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc/rtl'
make[3]: *** [rtl_install] Error 2
make[3]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc'
make[2]: *** [installbase] Error 2
make[2]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc'
make[1]: *** [installall] Error 2
make[1]: Leaving directory `D:/fpc/trunc/2.7.x/fpcbuild/fpcsrc'
make: *** [crossinstall] Error 2
===================================================
any idea ?
greez & thx,
sky...
Am 25.10.2012 08:39, schrieb Sven Barth:
Am 24.10.2012 22:08 schrieb "SkyDiablo" <[email protected]
<mailto:[email protected]>>:
>
> 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
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus