[Qt] uclibc + libqt4intf- EAccessViolation : Access violation

Nataraj S Narayan natarajsn at gmail.com
Tue Feb 2 06:15:47 CET 2010


Den,zeljko

I have wokring setup of qt-embedded-opensource-4.5.2 compiled using
buildroot toolchain - arm-linux-uclibcgnueabi- on my at91sam9263 SBC.

I have compiled and executed  /packages/ncurses/examples/firework.pp
on this setup using:-


# ppcrossarm -MObjFPC -TLinux -Parmv5 -gl -Xd -Xs -l -darm
-XParm-linux-uclibcgnueabi- -CfSOFT -CaEABI -darm -gl -O- -CpARMV5
-uUSE_LOCALIZE -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/*
-Fl$ARMPATH/usr/arm-linux-uclibcgnueabi/lib
-FL$ARMPATH/lib/ld-uClibc.so.0 -XR$ARMPATH -Fl$ARMPATH/lib
-Fl$ARMPATH/usr/lib -k"--sysroot=$ARMPATH"   firework.pp

Let me try out the addressbook example now,

regards

Nataraj

On Tue, Feb 2, 2010 at 12:51 AM, Den Jean <Den.Jean at telenet.be> wrote:
> On Monday 01 February 2010 11:41:25 Nataraj S Narayan wrote:
>> #1  0x401c0ab4 in QObject_hook::eventFilter () from /usr/lib/libqt4intf.so
>>
> in embedded, first try a very small c++ app like
> qt-embedded-linux-opensource-src-4.5.3/examples/tutorials/addressbook/part1
> to verify your qt setup
>
> then try a very small freepascal writeln hello world app in fpc (*without* Qt)
>
> then translate the qt tutor to a pascal qt4 app with the binding.(see below)
>
> compiling the Qt libs and the Qt binding with debug info if still problems
>
>
>
> addressbook.lpr:
> http://users.telenet.be/Jan.Van.hijfte/qtforfpc/addressbook.png
>
>
> program addressbook;
>
> {$mode objfpc}{$H+}
>
> uses
>  {$IFDEF UNIX}{$IFDEF UseCThreads}
>  cthreads,
>  {$ENDIF}{$ENDIF}
>  Classes,SysUtils,Types,Qt4;
>
>
> type
>
> TAddressBook = class(TObject)
>  public
>  Handle : QWidgetH;
>  NameLine : QLineEditH;
>  AddressText : QTextEditH;
>  constructor Create;
> end;
>
> constructor TAddressBook.Create;
> var
>  NameLabel : QLabelH;
>  AddressLabel : QLabelH;
>  MainLayout : QGridLayoutH;
>  w : WideString;
> begin
>  Handle:=QWidget_create;
>
>  w:='Name:';
>  NameLabel:=QLabel_Create(@w);
>  NameLine:=QLineEdit_create;
>
>  w:='Address:';
>  AddressLabel:=QLabel_create(@w);
>  AddressText:=QTextEdit_create;
>
>  MainLayout:=QGridLayout_create;
>  QGridLayout_addWidget(MainLayout,NameLabel,0,0);
>  QGridLayout_addWidget(MainLayout,NameLine,0,1);
>  QGridLayout_addWidget(MainLayout,AddressLabel,1,0,QtAlignTop);
>  QGridLayout_addWidget(MainLayout,AddressText,1,1);
>
>  QWidget_setLayout(Handle,MainLayout);
>  w:='Simple Address Book';
>  QWidget_setWindowTitle(Handle, at w);
>  end;
>
> var
>  App : QApplicationH;
>  AddrBook : TAddressBook;
>
> begin
>  App:=QApplication_create(@Argc,Argv);
>  AddrBook:=TAddressBook.Create;
>  QWidget_show(AddrBook.Handle);
>
>  QCoreApplication_exec;
> end.
>
>
>
>
>
> _______________________________________________
> Qt mailing list
> Qt at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
>




More information about the Qt mailing list