[fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?
jonas.maebe at elis.ugent.be
Mon Jun 10 10:52:41 CEST 2013
On 09 Jun 2013, at 19:08, Dennis Poon wrote:
>> Also, in Lazarus, it still report /usr/bin/fpc does not support
>> Should I go into the .lazarus folder in my user folder and change
>> the environmentoptions.xml
>> from <CompilerFilename Value="/usr/bin/fpc">
>> to <CompilerFilename Value="/home/dennis/fpc">
>> Frankly, I don't understand why I have to BOTH change the compiler
>> path AND change the project's option "Code Generation"->"Target
>> That looks redundant to me.
It's not redundant because /usr/bin/fpc cannot automagically find a
ppcmips binary located in a random directory on your system.
> I tried changing the environmentoptions.xml but that seems not
> enough. Upon starting lazarus, it complained under Compiler Tab:
> system.ppu not found. Check fpc.cfg
> Where I can locate that fpc.cfg?
This is explained in the manual: http://www.freepascal.org/docs-html/user/usersu10.html
. However, you should not modify the global fpc.cfg file. Instead,
in your home directory create a file .fpc.cfg (note the leading ".";
this is also mentioned in the manual at the same place) with as contents
> Also, if complained under "FPC Source" tab when I entered "/home/
> "Warning directory rtl not found"
That's because there is no /home/dennis/fpc/rtl/rtl directory.
Additionally, you have to point it to the top level directory
containing the FPC *sources*. Since your previous mails showed that
you specified "/home/dennis/fpc" as the INSTALL_PREFIX, I hope "/home/
dennis/fpc" is not also your source directory. It shouldn't break
anything in case it is, but it's not very clean to install there.
More information about the fpc-pascal