On 25.10.2012 20:05, SkyDiablo wrote:

This is related to the fact that 2.6.0's fpcmake does not support
mips-linux yet. Possible solution:

First do (once, independantly) the following:

(assuming the current dir is your 2.7.1 source directory)
cd utils\fpcm
make all

And then add "FPCMAKE=%YOURSOURCEDIR%\utils\fpcm\fpcmake.exe" to the
"crossinstall" line. This should hopefully help...

Regards,
Sven


okay, thats works fine! thx! and now, it is possible to say "lazarus" is
to use this new crosscompiler?

You can change the compiler that Lazarus uses in "Tools" => "Options" => "Environment" => "Files" => "Compiler path".

Here you have two possiblities:
1. Do additionally a "make all install INSTALL_PREFIX=%INSTALLDIR%" and point Lazarus to the "fpc.exe" binary in the %INSTALLDIR%\bin\i386-win32 directory (this way you can also compile for Windows in your case)
2. Simply point Lazarus to the "ppcrossmips.exe"

In both cases you also need to change your target OS to "Linux" and your target CPU to "MIPS" in "Project" => "Project Options" => "Compiler Options" => "Code Generation" and then compile as usual (Ctrl + F9), but you might want to avoid using "Run" (F9) as then you'll get a "debugger has crashed" error dialog, because of the different executable format ;)

Regards,
Sven


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to