gerade versuche ich, ein erstes vom PC (Linux) nach Raspberry3 crosskompiliertes Minimal-HalloWelt zum Laufen zu bekommen.
Lazarusversion: 1.7 Rev. 54523M
FPC Version: 3.1.1
Als erstes habe ich mit fpclazupdeluxe: (*) arm (*) linux , [Install cross-compiler] ausgeführt,
dann in den Projektoptionen eingestellt:
[*]TargetOS: Default (da gleiches OS, Debian Jessie an der Quelle bzw. Rasbian 8 am Ziel)
[*]Target CPU family: arm
[*]Target processor:ARMV7
Beim Ausführen von "checking compiler options" erscheinen auch keine ERRORs mehr.
Code: Alles auswählen
unit Unit1;
{$mode objfpc}{$H+}
{$ifdef FPC_CROSSCOMPILING}
{$ifdef Linux}
// for most versions of Linux in case of linking errors
{$linklib libc_nonshared.a}
{$IFDEF CPUARM}
// for GUI on RPi[1,2,3] with Arch Linux in case of linking errors
// {$linklib GLESv2}
{$ENDIF}
{$endif}
{$endif}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Unix, BaseUnix;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
Edit1.Text:='Hallo Welt!';
end;
end.
Code: Alles auswählen
file rpi_ws281x/project1
rpi_ws281x/project1: [b]ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.0.0, not stripped [/b]
Code: Alles auswählen
TApplication.HandleException Error reading Form1.Left: Unknown property: "Left"
Stack trace:
$000C0284
$000BF5F0
$000C0ED4
$002548E8 INITCOMPONENT, line 3156 of lresources.pp
$002546EC INITLAZRESOURCECOMPONENT, line 3183 of lresources.pp
$0024C5E0 INITRESOURCECOMPONENT, line 804 of lresources.pp
$00060FE8 TCUSTOMFORM__PROCESSRESOURCE, line 2090 of ./include/customform.inc
$00060E94 TCUSTOMFORM__CREATE, line 2078 of ./include/customform.inc
$00063DD0 TFORM__CREATE, line 3166 of ./include/customform.inc
$0006D830 TAPPLICATION__CREATEFORM, line 2200 of ./include/application.inc
$00025960 main, line 19 of project1.lpr
Als noch Unerfahrener auf dem Gelände Querfeldeinkompilierens nehme ich eher an, noch etwas übersehen zu haben. Nur was?
Bin für jeden Vorschlag dankbar, da mir inzwischen sowohl die relevanten Suchergebnisse als auch die Ideen ausgegangen sind.