Mattias Gärtner wrote:
Zitat von Bernd Mueller <[EMAIL PROTECTED]>:
-Tlinux
-XParm-linux-
-FDc:\windows\app\lazarus0922\fpc\2.1.4_8169\bin\arm-linux
-FuC:\windows\app\lazarus0922\fpc\2.1.4_8169\units\arm-linux\
-FuC:\windows\app\lazarus0922\fpc\2.1.4_8169\units\arm-linux\*
-FuC:\windows\app\lazarus0922\fpc\2.1.4_8169\units\arm-linux\rtl
Any hints, what could be the reason for the Lazarus error message?
It means lazarus did not found either the system.pp for arm-linux
or the system.ppu for arm-linux.
Check:
Where is the arm-linux system.ppu?
in
c:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\units\arm-linux\rtl
Where is the arm-linux system.pp (your-fpc-src\rtl\linux\system.pp)?
in
c:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\source\rtl\linux
What contains inputhistory.xml in the FPCConfigCache node?
I made a fresh lazarus installation, started lazarus and filled in the
environment options for the arm-linux crosscompiler, when I confirm the
dialog, I get the error message for the first time. I confirmed the
error message and closed lazarus. I did no further changes. This is the
resulting inputhistory.xml:
<?xml version="1.0"?>
<CONFIG>
<InputHistory>
<Version Value="1"/>
<FileDialog InitialDir="C:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\">
<HistoryList Count="2">
<Item1 Value="C:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\"/>
<Item2
Value="C:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\bin\arm-linux\"/>
</HistoryList>
</FileDialog>
</InputHistory>
<FPCConfigCache
CompilerPath="C:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\bin\arm-linux\ppcrossarm.exe"
CompilerDate="922452539">
<Items Count="1"/>
<Item1>
<Options Value="-Twin32 -Pi386"/>
<FPCSrcDir
Value="C:\WINDOWS\app\lazarus0922\fpc\2.1.4_8169\source\"/>
</Item1>
The 'SearchPath' entry is missing. The IDE calls the compiler and collects the
unit paths to create the SearchPath entry. See below.
</FPCConfigCache>
</CONFIG>
I changed then the Item1 Options Value to -Tlinux -Parm manually in
inputhistory.xml, started lazarus and was able to create a new project
without getting the error message.
The IDE creates one 'Item' per used target. The IDE was started under target
win32/i386, so it uses this as default for new projects.
When you switch in the compiler options to another target like linux/arm, a new
target is added to the list. The number of the Item is irrelevant.
I changed target OS to linux and target processor to arm in
Project/Compiler Options.../Code and was able to build a project
successfully.
That's the right way.
But If I restart lazarus and want to create a new project, I get the
error message again. The resulting inputhistory.xml is attached.
When the IDE asks the compiler with the default target (win32/i386) it does not
find the system.ppu. So the error message is correct: your compiler does not
support the target, because the system.ppu is missing.
ToDos:
1.
Improve the message, which target was tested.
2.
The IDE should start new projects with the default target of the compiler,
instead of the target of the IDE.
thank you for tracking this down.
Regards, Bernd.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives