[fpc-devel] Exception: ppcrossarm + arm-linux-uclibc + qt-embedded-linux-opensource-4.5.2 + qt4pas-V1.72_Qt4.5.2

Nataraj S Narayan natarajsn at gmail.com
Thu Nov 26 13:04:09 CET 2009


Hi

I am on ppcrossarm for arm-linux-uclibcgnueabi-

I get this :-

# ./shapedclock -qws
An unhandled exception occurred at $0105B180 :
EAccessViolation : Access violation
  $0105B180 of ../objpas/rtlconsts.pp
  $00009174  TCLOCK__CREATE,  line 73 of shapedclock.pas
  $0000A054  TAPPLICATION__CREATE,  line 319 of shapedclock.pas
  $0000A1B8  main,  line 340 of shapedclock.pas

in the following example code:-

constructor TApplication.Create;
begin
inherited;
QApplication_Create(@argc,argv);
Clock:=TClock.Create;
QWidget_Show(Clock.Handle);
QApplication_Exec();
end;

Using:-
/home/nataraj/fpc-armel/lib/fpc/2.5.1/ppcrossarm -MObjFPC -TLinux
-Parmv5 -gl -Xd -Xs -l -darm -XParm-linux-uclibcgnueabi- -CfSOFT
-CaEABI -darm -gl -O- -CpARMV5 -uUSE_LOCALIZE
-Fu/home/nataraj/fpc-armel/lib/fpc/2.5.1/units/arm-linux/*
-FL/home/sidhhik/buildroot/output/target/lib/ld-uClibc.so.0
-XR/home/sidhhik/buildroot/output/target
-Fl/home/sidhhik/buildroot/output/target/usr/lib  -k"
--sysroot=/home/sidhhik/buildroot/output/target"  shapedclock.pas

As mentioned by Jonas before, added {$linklib gcc_s} and compiled.

regards

Nataraj



More information about the fpc-devel mailing list