Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2010-04

ARM Qt4Pas V2.1 Access Violations

10 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anton Rieckert

Hello all on the Qt4Pas V2.1 mailing list.

Thank you for the great work.

I have a small problem and cant seem to fix it. I compiled libQt4Pas V2.1 for i386 and ARM. The examples works 100% on my i386 machine, but when I compile the project for ARM, it compiles without any problems. The problem is that when I try to run it on my ARM board (kernel 2.6.33-2) I receive the following errors.

When compiling for GTK2+ it work on both my i386 and ARM computers without any probelms.

Any suggestions or help would be appreciated. I would email you the compiled libraries for ARM or if someone has compiled ARM libs, please email them to me so that I can see if they work for me.

By the way, I'm using the latest svn versions of both lazarus and fpc

Kind Regards
Anton Rieckert

TQtMainWindow.CreateWidget Name: Form1
TQtWidget.InitializeWidget: Self:42F71020 Widget:36F630 was created for control Form1
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
[ 246.760009] usb 1-1.2.1: device not accepting address 108, error -32 $0017763C TQTOBJECT__BEGINEVENTPROCESSING, line 865 of qtobjects.pas [ 246.822814] hub 1-1.2:1.0: unable to enumerate USB device on port 1 $0016FE00 TQTMAINWINDOW__EVENTFILTER, line 4554 of qtwidgets.pas $401C5274
$0016D284 TQTWIDGET__SETCOLOR, line 3038 of qtwidgets.pas $00180E20 TQTWSWINCONTROL__SETCOLOR, line 564 of qtwscontrols.pp $00115D28 TWINCONTROL__INITIALIZEWND, line 7280 of ./include/wincontrol.inc
$00038850 TCUSTOMFORM__INITIALIZEWND, line 991 of ./include/customform.inc
$00115980 TWINCONTROL__CREATEWND, line 7178 of
./include/wincontrol.inc
$00035258 TSCROLLINGWINCONTROL__CREATEWND, line 36 of ./include/scrollingwincontrol.inc
$0003C398 TCUSTOMFORM__CREATEWND, line 2320 of
./include/customform.inc
$0003D1EC TFORM__CREATEWND, line 2648 of ./include/customform.inc $0011537C TWINCONTROL__CREATEHANDLE, line 7057 of ./include/wincontrol.inc
$0011694C TWINCONTROL__HANDLENEEDED, line 7549 of ./include/wincontrol.inc
$00044F6C TAPPLICATION__CREATEFORM, line 2091 of ./include/application.inc
$00018EE0 main, line 18 of /tmp/project1.lpr
TApplication.HandleException Access violation
Stack trace:
$0017763C TQTOBJECT__BEGINEVENTPROCESSING, line 865 of qtobjects.pas $0016FE00 TQTMAINWINDOW__EVENTFILTER, line 4554 of qtwidgets.pas $401C5274
$0016D284 TQTWIDGET__SETCOLOR, line 3038 of qtwidgets.pas $00180E20 TQTWSWINCONTROL__SETCOLOR, line 564 of qtwscontrols.pp $00115D28 TWINCONTROL__INITIALIZEWND, line 7280 of ./include/wincontrol.inc
$00038850 TCUSTOMFORM__INITIALIZEWND, line 991 of ./include/customform.inc
$00115980 TWINCONTROL__CREATEWND, line 7178 of
./include/wincontrol.inc
$00035258 TSCROLLINGWINCONTROL__CREATEWND, line 36 of ./include/scrollingwincontrol.inc
$0003C398 TCUSTOMFORM__CREATEWND, line 2320 of
./include/customform.inc
$0003D1EC TFORM__CREATEWND, line 2648 of ./include/customform.inc $0011537C TWINCONTROL__CREATEHANDLE, line 7057 of ./include/wincontrol.inc
$0011694C TWINCONTROL__HANDLENEEDED, line 7549 of ./include/wincontrol.inc
$00044F6C TAPPLICATION__CREATEFORM, line 2091 of ./include/application.inc
$00018EE0 main, line 18 of /tmp/project1.lpr
[FORMS.PP] ExceptionOccurred

Reply by email

Nataraj S Narayan
to Anton Rieckert

Hi Anton

Try with CONFIG_OABI_COMPAT=y
in the arm-linux kernel.

regards

Nataraj

Anton Rieckert wrote 88 lines
Hello all on the Qt4Pas V2.1 mailing list. Thank you for the great work. I have a small problem and cant seem to fix it. I compiled libQt4Pas V2.1 for i386 and ARM. The examples works 100% on my i386 machine, but when I compile the project for ARM, it compiles without any problems. The problem is that when I try to run it on my ARM board (kernel 2.6.33-2) I receive the following errors. When compiling for GTK2+ it work on both my i386 and ARM computers without any probelms. Any suggestions or help would be appreciated. I would email you the compiled libraries for ARM or if someone has compiled ARM libs, please email them to me so that I can see if they work for me. By the way, I'm using the latest svn versions of both lazarus and fpc Kind Regards Anton Rieckert TQtMainWindow.CreateWidget Name: Form1 TQtWidget.InitializeWidget: Self:42F71020 Widget:36F630 was created for control Form1 [FORMS.PP] ExceptionOccurred ?Sender=EAccessViolation ?Exception=Access violation ?Stack trace: [ ?246.760009] usb 1-1.2.1: device not accepting address 108, error -32 ?$0017763C ?TQTOBJECT__BEGINEVENTPROCESSING, ?line 865 of qtobjects.pas [ ?246.822814] hub 1-1.2:1.0: unable to enumerate USB device on port 1 ?$0016FE00 ?TQTMAINWINDOW__EVENTFILTER, ?line 4554 of qtwidgets.pas ?$401C5274 ?$0016D284 ?TQTWIDGET__SETCOLOR, ?line 3038 of qtwidgets.pas ?$00180E20 ?TQTWSWINCONTROL__SETCOLOR, ?line 564 of qtwscontrols.pp ?$00115D28 ?TWINCONTROL__INITIALIZEWND, ?line 7280 of ./include/wincontrol.inc ?$00038850 ?TCUSTOMFORM__INITIALIZEWND, ?line 991 of ./include/customform.inc ?$00115980 ?TWINCONTROL__CREATEWND, ?line 7178 of ./include/wincontrol.inc ?$00035258 ?TSCROLLINGWINCONTROL__CREATEWND, ?line 36 of ./include/scrollingwincontrol.inc ?$0003C398 ?TCUSTOMFORM__CREATEWND, ?line 2320 of ./include/customform.inc ?$0003D1EC ?TFORM__CREATEWND, ?line 2648 of ./include/customform.inc ?$0011537C ?TWINCONTROL__CREATEHANDLE, ?line 7057 of ./include/wincontrol.inc ?$0011694C ?TWINCONTROL__HANDLENEEDED, ?line 7549 of ./include/wincontrol.inc ?$00044F6C ?TAPPLICATION__CREATEFORM, ?line 2091 of ./include/application.inc ?$00018EE0 ?main, ?line 18 of /tmp/project1.lpr TApplication.HandleException Access violation ?Stack trace: ?$0017763C ?TQTOBJECT__BEGINEVENTPROCESSING, ?line 865 of qtobjects.pas ?$0016FE00 ?TQTMAINWINDOW__EVENTFILTER, ?line 4554 of qtwidgets.pas ?$401C5274 ?$0016D284 ?TQTWIDGET__SETCOLOR, ?line 3038 of qtwidgets.pas ?$00180E20 ?TQTWSWINCONTROL__SETCOLOR, ?line 564 of qtwscontrols.pp ?$00115D28 ?TWINCONTROL__INITIALIZEWND, ?line 7280 of ./include/wincontrol.inc ?$00038850 ?TCUSTOMFORM__INITIALIZEWND, ?line 991 of ./include/customform.inc ?$00115980 ?TWINCONTROL__CREATEWND, ?line 7178 of ./include/wincontrol.inc ?$00035258 ?TSCROLLINGWINCONTROL__CREATEWND, ?line 36 of ./include/scrollingwincontrol.inc ?$0003C398 ?TCUSTOMFORM__CREATEWND, ?line 2320 of ./include/customform.inc ?$0003D1EC ?TFORM__CREATEWND, ?line 2648 of ./include/customform.inc ?$0011537C ?TWINCONTROL__CREATEHANDLE, ?line 7057 of ./include/wincontrol.inc ?$0011694C ?TWINCONTROL__HANDLENEEDED, ?line 7549 of ./include/wincontrol.inc ?$00044F6C ?TAPPLICATION__CREATEFORM, ?line 2091 of ./include/application.inc ?$00018EE0 ?main, ?line 18 of /tmp/project1.lpr [FORMS.PP] ExceptionOccurred _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

Reply by email

Anton Rieckert
to Nataraj S Narayan

Hello Nataraj,

I've enabled CONFIG_OABI_COMPAT in the kernel so my kernel image now looks like this, but I still get exactly the same error. It is weird that GTK2 runs fine but QT gives a problem. Could it be that my libQt4Pas.so file is not compatible?

Kind Regards
Anton

#
# Kernel Features
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_VMSPLIT_3G=y
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_1G is not set
CONFIG_PAGE_OFFSET=0xB0000000
# CONFIG_PREEMPT is not set
CONFIG_HZ=128
CONFIG_AEABI=y
CONFIG_OABI_COMPAT=y
CONFIG_ARCH_FLATMEM_HAS_HOLES=y
# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not set
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
CONFIG_VIRT_TO_BUS=y
CONFIG_UNEVICTABLE_LRU=y
# CONFIG_LEDS is not set
CONFIG_ALIGNMENT_TRAP=y

Nataraj S Narayan wrote 107 lines
Hi Anton Try with CONFIG_OABI_COMPAT=y in the arm-linux kernel. regards Nataraj On Fri, Apr 23, 2010 at 12:24 PM, Anton Rieckert wrote: > Hello all on the Qt4Pas V2.1 mailing list. > > Thank you for the great work. > > I have a small problem and cant seem to fix it. I compiled libQt4Pas > V2.1 for i386 and ARM. The examples works 100% on my i386 machine, but > when I compile the project for ARM, it compiles without any problems. > The problem is that when I try to run it on my ARM board (kernel > 2.6.33-2) I receive the following errors. > > When compiling for GTK2+ it work on both my i386 and ARM computers > without any probelms. > > Any suggestions or help would be appreciated. I would email you the > compiled libraries for ARM or if someone has compiled ARM libs, please > email them to me so that I can see if they work for me. > > By the way, I'm using the latest svn versions of both lazarus and fpc > > Kind Regards > Anton Rieckert > > > TQtMainWindow.CreateWidget Name: Form1 > TQtWidget.InitializeWidget: Self:42F71020 Widget:36F630 was created for > control Form1 > [FORMS.PP] ExceptionOccurred > Sender=EAccessViolation > Exception=Access violation > Stack trace: > [ 246.760009] usb 1-1.2.1: device not accepting address 108, error -32 > $0017763C TQTOBJECT__BEGINEVENTPROCESSING, line 865 of qtobjects.pas > [ 246.822814] hub 1-1.2:1.0: unable to enumerate USB device on port 1 > $0016FE00 TQTMAINWINDOW__EVENTFILTER, line 4554 of qtwidgets.pas > $401C5274 > $0016D284 TQTWIDGET__SETCOLOR, line 3038 of qtwidgets.pas > $00180E20 TQTWSWINCONTROL__SETCOLOR, line 564 of qtwscontrols.pp > $00115D28 TWINCONTROL__INITIALIZEWND, line 7280 of > ./include/wincontrol.inc > $00038850 TCUSTOMFORM__INITIALIZEWND, line 991 of > ./include/customform.inc > $00115980 TWINCONTROL__CREATEWND, line 7178 of > ./include/wincontrol.inc > $00035258 TSCROLLINGWINCONTROL__CREATEWND, line 36 of > ./include/scrollingwincontrol.inc > $0003C398 TCUSTOMFORM__CREATEWND, line 2320 of > ./include/customform.inc > $0003D1EC TFORM__CREATEWND, line 2648 of ./include/customform.inc > $0011537C TWINCONTROL__CREATEHANDLE, line 7057 of > ./include/wincontrol.inc > $0011694C TWINCONTROL__HANDLENEEDED, line 7549 of > ./include/wincontrol.inc > $00044F6C TAPPLICATION__CREATEFORM, line 2091 of > ./include/application.inc > $00018EE0 main, line 18 of /tmp/project1.lpr > TApplication.HandleException Access violation > Stack trace: > $0017763C TQTOBJECT__BEGINEVENTPROCESSING, line 865 of qtobjects.pas > $0016FE00 TQTMAINWINDOW__EVENTFILTER, line 4554 of qtwidgets.pas > $401C5274 > $0016D284 TQTWIDGET__SETCOLOR, line 3038 of qtwidgets.pas > $00180E20 TQTWSWINCONTROL__SETCOLOR, line 564 of qtwscontrols.pp > $00115D28 TWINCONTROL__INITIALIZEWND, line 7280 of > ./include/wincontrol.inc > $00038850 TCUSTOMFORM__INITIALIZEWND, line 991 of > ./include/customform.inc > $00115980 TWINCONTROL__CREATEWND, line 7178 of > ./include/wincontrol.inc > $00035258 TSCROLLINGWINCONTROL__CREATEWND, line 36 of > ./include/scrollingwincontrol.inc > $0003C398 TCUSTOMFORM__CREATEWND, line 2320 of > ./include/customform.inc > $0003D1EC TFORM__CREATEWND, line 2648 of ./include/customform.inc > $0011537C TWINCONTROL__CREATEHANDLE, line 7057 of > ./include/wincontrol.inc > $0011694C TWINCONTROL__HANDLENEEDED, line 7549 of > ./include/wincontrol.inc > $00044F6C TAPPLICATION__CREATEFORM, line 2091 of > ./include/application.inc > $00018EE0 main, line 18 of /tmp/project1.lpr > [FORMS.PP] ExceptionOccurred > > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

Reply by email

Nataraj S Narayan
to Anton Rieckert

Hi

What about your ppcrossarm? How did you compile the App using ppcrossarm?

regards

Nataraj

Anton Rieckert wrote 163 lines
Hello Nataraj, I've enabled CONFIG_OABI_COMPAT in the kernel so my kernel image now looks like this, but I still get exactly the same error. It is weird that GTK2 runs fine but QT gives a problem. Could it be that my libQt4Pas.so file is not compatible? Kind Regards Anton # # Kernel Features # CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y CONFIG_GENERIC_CLOCKEVENTS_BUILD=y CONFIG_VMSPLIT_3G=y # CONFIG_VMSPLIT_2G is not set # CONFIG_VMSPLIT_1G is not set CONFIG_PAGE_OFFSET=0xB0000000 # CONFIG_PREEMPT is not set CONFIG_HZ=128 CONFIG_AEABI=y CONFIG_OABI_COMPAT=y CONFIG_ARCH_FLATMEM_HAS_HOLES=y # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y # CONFIG_DISCONTIGMEM_MANUAL is not set # CONFIG_SPARSEMEM_MANUAL is not set CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=4 # CONFIG_RESOURCES_64BIT is not set # CONFIG_PHYS_ADDR_T_64BIT is not set CONFIG_ZONE_DMA_FLAG=0 CONFIG_VIRT_TO_BUS=y CONFIG_UNEVICTABLE_LRU=y # CONFIG_LEDS is not set CONFIG_ALIGNMENT_TRAP=y On 23/04/2010 14:28, Nataraj S Narayan wrote: > > Hi Anton > > Try with CONFIG_OABI_COMPAT=y > in the arm-linux kernel. > > regards > > Nataraj > > > On Fri, Apr 23, 2010 at 12:24 PM, Anton Rieckert > ?wrote: > >> >> Hello all on the Qt4Pas V2.1 mailing list. >> >> Thank you for the great work. >> >> I have a small problem and cant seem to fix it. I compiled libQt4Pas >> V2.1 for i386 and ARM. The examples works 100% on my i386 machine, but >> when I compile the project for ARM, it compiles without any problems. >> The problem is that when I try to run it on my ARM board (kernel >> 2.6.33-2) I receive the following errors. >> >> When compiling for GTK2+ it work on both my i386 and ARM computers >> without any probelms. >> >> Any suggestions or help would be appreciated. I would email you the >> compiled libraries for ARM or if someone has compiled ARM libs, please >> email them to me so that I can see if they work for me. >> >> By the way, I'm using the latest svn versions of both lazarus and fpc >> >> Kind Regards >> Anton Rieckert >> >> >> TQtMainWindow.CreateWidget Name: Form1 >> TQtWidget.InitializeWidget: Self:42F71020 Widget:36F630 was created for >> control Form1 >> [FORMS.PP] ExceptionOccurred >> ?Sender=EAccessViolation >> ?Exception=Access violation >> ?Stack trace: >> [ ?246.760009] usb 1-1.2.1: device not accepting address 108, error -32 >> ?$0017763C ?TQTOBJECT__BEGINEVENTPROCESSING, ?line 865 of qtobjects.pas >> [ ?246.822814] hub 1-1.2:1.0: unable to enumerate USB device on port 1 >> ?$0016FE00 ?TQTMAINWINDOW__EVENTFILTER, ?line 4554 of qtwidgets.pas >> ?$401C5274 >> ?$0016D284 ?TQTWIDGET__SETCOLOR, ?line 3038 of qtwidgets.pas >> ?$00180E20 ?TQTWSWINCONTROL__SETCOLOR, ?line 564 of qtwscontrols.pp >> ?$00115D28 ?TWINCONTROL__INITIALIZEWND, ?line 7280 of >> ./include/wincontrol.inc >> ?$00038850 ?TCUSTOMFORM__INITIALIZEWND, ?line 991 of >> ./include/customform.inc >> ?$00115980 ?TWINCONTROL__CREATEWND, ?line 7178 of >> ./include/wincontrol.inc >> ?$00035258 ?TSCROLLINGWINCONTROL__CREATEWND, ?line 36 of >> ./include/scrollingwincontrol.inc >> ?$0003C398 ?TCUSTOMFORM__CREATEWND, ?line 2320 of >> ./include/customform.inc >> ?$0003D1EC ?TFORM__CREATEWND, ?line 2648 of ./include/customform.inc >> ?$0011537C ?TWINCONTROL__CREATEHANDLE, ?line 7057 of >> ./include/wincontrol.inc >> ?$0011694C ?TWINCONTROL__HANDLENEEDED, ?line 7549 of >> ./include/wincontrol.inc >> ?$00044F6C ?TAPPLICATION__CREATEFORM, ?line 2091 of >> ./include/application.inc >> ?$00018EE0 ?main, ?line 18 of /tmp/project1.lpr >> TApplication.HandleException Access violation >> ?Stack trace: >> ?$0017763C ?TQTOBJECT__BEGINEVENTPROCESSING, ?line 865 of qtobjects.pas >> ?$0016FE00 ?TQTMAINWINDOW__EVENTFILTER, ?line 4554 of qtwidgets.pas >> ?$401C5274 >> ?$0016D284 ?TQTWIDGET__SETCOLOR, ?line 3038 of qtwidgets.pas >> ?$00180E20 ?TQTWSWINCONTROL__SETCOLOR, ?line 564 of qtwscontrols.pp >> ?$00115D28 ?TWINCONTROL__INITIALIZEWND, ?line 7280 of >> ./include/wincontrol.inc >> ?$00038850 ?TCUSTOMFORM__INITIALIZEWND, ?line 991 of >> ./include/customform.inc >> ?$00115980 ?TWINCONTROL__CREATEWND, ?line 7178 of >> ./include/wincontrol.inc >> ?$00035258 ?TSCROLLINGWINCONTROL__CREATEWND, ?line 36 of >> ./include/scrollingwincontrol.inc >> ?$0003C398 ?TCUSTOMFORM__CREATEWND, ?line 2320 of >> ./include/customform.inc >> ?$0003D1EC ?TFORM__CREATEWND, ?line 2648 of ./include/customform.inc >> ?$0011537C ?TWINCONTROL__CREATEHANDLE, ?line 7057 of >> ./include/wincontrol.inc >> ?$0011694C ?TWINCONTROL__HANDLENEEDED, ?line 7549 of >> ./include/wincontrol.inc >> ?$00044F6C ?TAPPLICATION__CREATEFORM, ?line 2091 of >> ./include/application.inc >> ?$00018EE0 ?main, ?line 18 of /tmp/project1.lpr >> [FORMS.PP] ExceptionOccurred >> >> >> _______________________________________________ >> Qt mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/qt >> >> > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

Reply by email

Anton Rieckert
to Nataraj S Narayan

Hello,

Yes, I've followed this wiki page to download binutils, build it and cross compilled fpc to get a ppcrossarm

http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM

I'm compiling the project with

/usr/bin/fpc -MObjFPC -Scghi -CX -CirotR -O1 -TLinux -Parm -g -gl -XX -va -l -Filib/arm-linux/
-Fu/home/anton/development/lazarus/lcl/units/arm-linux/ -Fu/home/anton/development/lazarus/lcl/units/arm-linux/qt/ -Fu/home/anton/development/lazarus/packager/units/arm-linux/ -Fu. -FUlib/arm-linux/ -Xd -Fl/home/anton/new_lib -dLCL -dLCLqt /tmp/testcompileroptions.pas

Kind Regards
Anton

Nataraj S Narayan wrote 180 lines
Hi What about your ppcrossarm? How did you compile the App using ppcrossarm? regards Nataraj On Fri, Apr 23, 2010 at 12:56 PM, Anton Rieckert wrote: > Hello Nataraj, > > I've enabled CONFIG_OABI_COMPAT in the kernel so my kernel image now looks > like this, but I still get exactly the same error. It is weird that GTK2 > runs fine but QT gives a problem. Could it be that my libQt4Pas.so file is > not compatible? > > Kind Regards > Anton > > # > # Kernel Features > # > CONFIG_TICK_ONESHOT=y > CONFIG_NO_HZ=y > CONFIG_HIGH_RES_TIMERS=y > CONFIG_GENERIC_CLOCKEVENTS_BUILD=y > CONFIG_VMSPLIT_3G=y > # CONFIG_VMSPLIT_2G is not set > # CONFIG_VMSPLIT_1G is not set > CONFIG_PAGE_OFFSET=0xB0000000 > # CONFIG_PREEMPT is not set > CONFIG_HZ=128 > CONFIG_AEABI=y > CONFIG_OABI_COMPAT=y > CONFIG_ARCH_FLATMEM_HAS_HOLES=y > # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set > # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set > CONFIG_SELECT_MEMORY_MODEL=y > CONFIG_FLATMEM_MANUAL=y > # CONFIG_DISCONTIGMEM_MANUAL is not set > # CONFIG_SPARSEMEM_MANUAL is not set > CONFIG_FLATMEM=y > CONFIG_FLAT_NODE_MEM_MAP=y > CONFIG_PAGEFLAGS_EXTENDED=y > CONFIG_SPLIT_PTLOCK_CPUS=4 > # CONFIG_RESOURCES_64BIT is not set > # CONFIG_PHYS_ADDR_T_64BIT is not set > CONFIG_ZONE_DMA_FLAG=0 > CONFIG_VIRT_TO_BUS=y > CONFIG_UNEVICTABLE_LRU=y > # CONFIG_LEDS is not set > CONFIG_ALIGNMENT_TRAP=y > > > On 23/04/2010 14:28, Nataraj S Narayan wrote: > >> Hi Anton >> >> Try with CONFIG_OABI_COMPAT=y >> in the arm-linux kernel. >> >> regards >> >> Nataraj >> >> >> On Fri, Apr 23, 2010 at 12:24 PM, Anton Rieckert >> wrote: >> >> >>> Hello all on the Qt4Pas V2.1 mailing list. >>> >>> Thank you for the great work. >>> >>> I have a small problem and cant seem to fix it. I compiled libQt4Pas >>> V2.1 for i386 and ARM. The examples works 100% on my i386 machine, but >>> when I compile the project for ARM, it compiles without any problems. >>> The problem is that when I try to run it on my ARM board (kernel >>> 2.6.33-2) I receive the following errors. >>> >>> When compiling for GTK2+ it work on both my i386 and ARM computers >>> without any probelms. >>> >>> Any suggestions or help would be appreciated. I would email you the >>> compiled libraries for ARM or if someone has compiled ARM libs, please >>> email them to me so that I can see if they work for me. >>> >>> By the way, I'm using the latest svn versions of both lazarus and fpc >>> >>> Kind Regards >>> Anton Rieckert >>> >>> >>> TQtMainWindow.CreateWidget Name: Form1 >>> TQtWidget.InitializeWidget: Self:42F71020 Widget:36F630 was created for >>> control Form1 >>> [FORMS.PP] ExceptionOccurred >>> Sender=EAccessViolation >>> Exception=Access violation >>> Stack trace: >>> [ 246.760009] usb 1-1.2.1: device not accepting address 108, error -32 >>> $0017763C TQTOBJECT__BEGINEVENTPROCESSING, line 865 of qtobjects.pas >>> [ 246.822814] hub 1-1.2:1.0: unable to enumerate USB device on port 1 >>> $0016FE00 TQTMAINWINDOW__EVENTFILTER, line 4554 of qtwidgets.pas >>> $401C5274 >>> $0016D284 TQTWIDGET__SETCOLOR, line 3038 of qtwidgets.pas >>> $00180E20 TQTWSWINCONTROL__SETCOLOR, line 564 of qtwscontrols.pp >>> $00115D28 TWINCONTROL__INITIALIZEWND, line 7280 of >>> ./include/wincontrol.inc >>> $00038850 TCUSTOMFORM__INITIALIZEWND, line 991 of >>> ./include/customform.inc >>> $00115980 TWINCONTROL__CREATEWND, line 7178 of >>> ./include/wincontrol.inc >>> $00035258 TSCROLLINGWINCONTROL__CREATEWND, line 36 of >>> ./include/scrollingwincontrol.inc >>> $0003C398 TCUSTOMFORM__CREATEWND, line 2320 of >>> ./include/customform.inc >>> $0003D1EC TFORM__CREATEWND, line 2648 of ./include/customform.inc >>> $0011537C TWINCONTROL__CREATEHANDLE, line 7057 of >>> ./include/wincontrol.inc >>> $0011694C TWINCONTROL__HANDLENEEDED, line 7549 of >>> ./include/wincontrol.inc >>> $00044F6C TAPPLICATION__CREATEFORM, line 2091 of >>> ./include/application.inc >>> $00018EE0 main, line 18 of /tmp/project1.lpr >>> TApplication.HandleException Access violation >>> Stack trace: >>> $0017763C TQTOBJECT__BEGINEVENTPROCESSING, line 865 of qtobjects.pas >>> $0016FE00 TQTMAINWINDOW__EVENTFILTER, line 4554 of qtwidgets.pas >>> $401C5274 >>> $0016D284 TQTWIDGET__SETCOLOR, line 3038 of qtwidgets.pas >>> $00180E20 TQTWSWINCONTROL__SETCOLOR, line 564 of qtwscontrols.pp >>> $00115D28 TWINCONTROL__INITIALIZEWND, line 7280 of >>> ./include/wincontrol.inc >>> $00038850 TCUSTOMFORM__INITIALIZEWND, line 991 of >>> ./include/customform.inc >>> $00115980 TWINCONTROL__CREATEWND, line 7178 of >>> ./include/wincontrol.inc >>> $00035258 TSCROLLINGWINCONTROL__CREATEWND, line 36 of >>> ./include/scrollingwincontrol.inc >>> $0003C398 TCUSTOMFORM__CREATEWND, line 2320 of >>> ./include/customform.inc >>> $0003D1EC TFORM__CREATEWND, line 2648 of ./include/customform.inc >>> $0011537C TWINCONTROL__CREATEHANDLE, line 7057 of >>> ./include/wincontrol.inc >>> $0011694C TWINCONTROL__HANDLENEEDED, line 7549 of >>> ./include/wincontrol.inc >>> $00044F6C TAPPLICATION__CREATEFORM, line 2091 of >>> ./include/application.inc >>> $00018EE0 main, line 18 of /tmp/project1.lpr >>> [FORMS.PP] ExceptionOccurred >>> >>> >>> _______________________________________________ >>> Qt mailing list >>> >>> http://lists.lazarus.freepascal.org/mailman/listinfo/qt >>> >>> >>> >> _______________________________________________ >> Qt mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/qt >> >> >> > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

Reply by email

Nataraj S Narayan
to Anton Rieckert

Hi

I was using something like this:-

# ppcrossarm -MObjFPC -Sgi -CX -TLinux -Parm -gl -XX -l -Fi/home/siddhiq/:/software/lazarus-svn/lcl/units/arm-linux/include/ -Fl/cdrom/output/build/staging_dir/usr/lib/
-Fl/cdrom/output/build/staging_dir/lib/
-Fu/software/lazarus-svn/lcl/units/arm-linux/
-Fu/software/lazarus-svn/lcl/units/arm-linux/qt/
-Fu/software/lazarus-svn/packager/units/arm-linux/ -Fu. -CfSOFT -darmLCLqt noy1.lpr -XLAc= -XR/cdrom/output/target

But all the apps didn't work. SOme of them gave access violations. I was using arm-linux-uclibc and qt-embedded-linux-opensource-src-4.5.2

regards

Nataraj

Anton Rieckert wrote 216 lines
Hello, Yes, I've followed this wiki page to download binutils, build it and cross compilled fpc to get a ppcrossarm http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM I'm compiling the project with /usr/bin/fpc ?-MObjFPC -Scghi -CX -CirotR -O1 -TLinux -Parm -g -gl -XX -va -l -Filib/arm-linux/ -Fu/home/anton/development/lazarus/lcl/units/arm-linux/ -Fu/home/anton/development/lazarus/lcl/units/arm-linux/qt/ -Fu/home/anton/development/lazarus/packager/units/arm-linux/ -Fu. -FUlib/arm-linux/ -Xd -Fl/home/anton/new_lib -dLCL -dLCLqt /tmp/testcompileroptions.pas Kind Regards Anton On 23/04/2010 15:00, Nataraj S Narayan wrote: > > Hi > > What about your ppcrossarm? How did you compile the App using ppcrossarm? > > regards > > Nataraj > > On Fri, Apr 23, 2010 at 12:56 PM, Anton Rieckert > ?wrote: > >> >> Hello Nataraj, >> >> I've enabled CONFIG_OABI_COMPAT in the kernel so my kernel image now >> looks >> like this, but I still get exactly the same error. It is weird that GTK2 >> runs fine but QT gives a problem. Could it be that my libQt4Pas.so file >> is >> not compatible? >> >> Kind Regards >> Anton >> >> # >> # Kernel Features >> # >> CONFIG_TICK_ONESHOT=y >> CONFIG_NO_HZ=y >> CONFIG_HIGH_RES_TIMERS=y >> CONFIG_GENERIC_CLOCKEVENTS_BUILD=y >> CONFIG_VMSPLIT_3G=y >> # CONFIG_VMSPLIT_2G is not set >> # CONFIG_VMSPLIT_1G is not set >> CONFIG_PAGE_OFFSET=0xB0000000 >> # CONFIG_PREEMPT is not set >> CONFIG_HZ=128 >> CONFIG_AEABI=y >> CONFIG_OABI_COMPAT=y >> CONFIG_ARCH_FLATMEM_HAS_HOLES=y >> # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set >> # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set >> CONFIG_SELECT_MEMORY_MODEL=y >> CONFIG_FLATMEM_MANUAL=y >> # CONFIG_DISCONTIGMEM_MANUAL is not set >> # CONFIG_SPARSEMEM_MANUAL is not set >> CONFIG_FLATMEM=y >> CONFIG_FLAT_NODE_MEM_MAP=y >> CONFIG_PAGEFLAGS_EXTENDED=y >> CONFIG_SPLIT_PTLOCK_CPUS=4 >> # CONFIG_RESOURCES_64BIT is not set >> # CONFIG_PHYS_ADDR_T_64BIT is not set >> CONFIG_ZONE_DMA_FLAG=0 >> CONFIG_VIRT_TO_BUS=y >> CONFIG_UNEVICTABLE_LRU=y >> # CONFIG_LEDS is not set >> CONFIG_ALIGNMENT_TRAP=y >> >> >> On 23/04/2010 14:28, Nataraj S Narayan wrote: >> >>> >>> Hi Anton >>> >>> Try with CONFIG_OABI_COMPAT=y >>> in the arm-linux kernel. >>> >>> regards >>> >>> Nataraj >>> >>> >>> On Fri, Apr 23, 2010 at 12:24 PM, Anton Rieckert >>> ?wrote: >>> >>> >>>> >>>> Hello all on the Qt4Pas V2.1 mailing list. >>>> >>>> Thank you for the great work. >>>> >>>> I have a small problem and cant seem to fix it. I compiled libQt4Pas >>>> V2.1 for i386 and ARM. The examples works 100% on my i386 machine, but >>>> when I compile the project for ARM, it compiles without any problems. >>>> The problem is that when I try to run it on my ARM board (kernel >>>> 2.6.33-2) I receive the following errors. >>>> >>>> When compiling for GTK2+ it work on both my i386 and ARM computers >>>> without any probelms. >>>> >>>> Any suggestions or help would be appreciated. I would email you the >>>> compiled libraries for ARM or if someone has compiled ARM libs, please >>>> email them to me so that I can see if they work for me. >>>> >>>> By the way, I'm using the latest svn versions of both lazarus and fpc >>>> >>>> Kind Regards >>>> Anton Rieckert >>>> >>>> >>>> TQtMainWindow.CreateWidget Name: Form1 >>>> TQtWidget.InitializeWidget: Self:42F71020 Widget:36F630 was created for >>>> control Form1 >>>> [FORMS.PP] ExceptionOccurred >>>> ?Sender=EAccessViolation >>>> ?Exception=Access violation >>>> ?Stack trace: >>>> [ ?246.760009] usb 1-1.2.1: device not accepting address 108, error -32 >>>> ?$0017763C ?TQTOBJECT__BEGINEVENTPROCESSING, ?line 865 of qtobjects.pas >>>> [ ?246.822814] hub 1-1.2:1.0: unable to enumerate USB device on port 1 >>>> ?$0016FE00 ?TQTMAINWINDOW__EVENTFILTER, ?line 4554 of qtwidgets.pas >>>> ?$401C5274 >>>> ?$0016D284 ?TQTWIDGET__SETCOLOR, ?line 3038 of qtwidgets.pas >>>> ?$00180E20 ?TQTWSWINCONTROL__SETCOLOR, ?line 564 of qtwscontrols.pp >>>> ?$00115D28 ?TWINCONTROL__INITIALIZEWND, ?line 7280 of >>>> ./include/wincontrol.inc >>>> ?$00038850 ?TCUSTOMFORM__INITIALIZEWND, ?line 991 of >>>> ./include/customform.inc >>>> ?$00115980 ?TWINCONTROL__CREATEWND, ?line 7178 of >>>> ./include/wincontrol.inc >>>> ?$00035258 ?TSCROLLINGWINCONTROL__CREATEWND, ?line 36 of >>>> ./include/scrollingwincontrol.inc >>>> ?$0003C398 ?TCUSTOMFORM__CREATEWND, ?line 2320 of >>>> ./include/customform.inc >>>> ?$0003D1EC ?TFORM__CREATEWND, ?line 2648 of ./include/customform.inc >>>> ?$0011537C ?TWINCONTROL__CREATEHANDLE, ?line 7057 of >>>> ./include/wincontrol.inc >>>> ?$0011694C ?TWINCONTROL__HANDLENEEDED, ?line 7549 of >>>> ./include/wincontrol.inc >>>> ?$00044F6C ?TAPPLICATION__CREATEFORM, ?line 2091 of >>>> ./include/application.inc >>>> ?$00018EE0 ?main, ?line 18 of /tmp/project1.lpr >>>> TApplication.HandleException Access violation >>>> ?Stack trace: >>>> ?$0017763C ?TQTOBJECT__BEGINEVENTPROCESSING, ?line 865 of qtobjects.pas >>>> ?$0016FE00 ?TQTMAINWINDOW__EVENTFILTER, ?line 4554 of qtwidgets.pas >>>> ?$401C5274 >>>> ?$0016D284 ?TQTWIDGET__SETCOLOR, ?line 3038 of qtwidgets.pas >>>> ?$00180E20 ?TQTWSWINCONTROL__SETCOLOR, ?line 564 of qtwscontrols.pp >>>> ?$00115D28 ?TWINCONTROL__INITIALIZEWND, ?line 7280 of >>>> ./include/wincontrol.inc >>>> ?$00038850 ?TCUSTOMFORM__INITIALIZEWND, ?line 991 of >>>> ./include/customform.inc >>>> ?$00115980 ?TWINCONTROL__CREATEWND, ?line 7178 of >>>> ./include/wincontrol.inc >>>> ?$00035258 ?TSCROLLINGWINCONTROL__CREATEWND, ?line 36 of >>>> ./include/scrollingwincontrol.inc >>>> ?$0003C398 ?TCUSTOMFORM__CREATEWND, ?line 2320 of >>>> ./include/customform.inc >>>> ?$0003D1EC ?TFORM__CREATEWND, ?line 2648 of ./include/customform.inc >>>> ?$0011537C ?TWINCONTROL__CREATEHANDLE, ?line 7057 of >>>> ./include/wincontrol.inc >>>> ?$0011694C ?TWINCONTROL__HANDLENEEDED, ?line 7549 of >>>> ./include/wincontrol.inc >>>> ?$00044F6C ?TAPPLICATION__CREATEFORM, ?line 2091 of >>>> ./include/application.inc >>>> ?$00018EE0 ?main, ?line 18 of /tmp/project1.lpr >>>> [FORMS.PP] ExceptionOccurred >>>> >>>> >>>> _______________________________________________ >>>> Qt mailing list >>>> >>>> http://lists.lazarus.freepascal.org/mailman/listinfo/qt >>>> >>>> >>>> >>> >>> _______________________________________________ >>> Qt mailing list >>> >>> http://lists.lazarus.freepascal.org/mailman/listinfo/qt >>> >>> >>> >> >> _______________________________________________ >> Qt mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/qt >> >> > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt > > _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

Reply by email

Anton Rieckert
to Den Jean

Hello Den and Nataraj,

Thank you for your help ans suggestions. I still couldn't get the compiler to compile workable binaries for QT ARM interface. I suspect that it has something to do with my binutils and arm-linux-gnueabi- compiler. I'm going to do a fresh installation and start from scratch. Will keep you updated with my findings.

Kind Regards
Anton Rieckert

Den Jean wrote 16 lines
On Friday 23 April 2010 14:24:04 Anton Rieckert wrote: > compiled libraries for ARM or if someone has compiled ARM libs, please > email them to me so that I can see if they work for me. > you probably read this, but just in case. http://lists.lazarus.freepascal.org/pipermail/lazarus/2010-April/051148.html http://lists.lazarus.freepascal.org/pipermail/lazarus/2010-April/050949.html _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

Reply by email

Anton Rieckert
to Den Jean

Hello,

Ok, I got time to recompile my whole toolchain for scratch again. GTK2 works for arm-linux but Qt now gives me a different error. If anyone has a suggestion or solution it will be great. I'm not sure that the libpthread library should be linked?

GThread-ERROR **: file
/build/buildd/glib2.0-2.24.0/gthread/gthread-posix.c: line 140 (g_thread_impl_init): error 'No such process' during 'pthread_getschedparam (pthread_self(), &policy, &sched)' aborting...
Aborted

When I do a readelf on my binary file for QT-arm

ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32
Data: 2's complement, little endian Version: 1 (current)
OS/ABI: UNIX - System V ABI Version: 0
Type: EXEC (Executable file) Machine: ARM
Version: 0x1
Entry point address: 0x1d980
Start of program headers: 52 (bytes into file) Start of section headers: 14700972 (bytes into file) Flags: 0x5000002, has entry point, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 35
Section header string table index: 32

Dynamic section at offset 0x20ebf8 contains 24 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libQt4Pas.so.5]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000c (INIT) 0x1b925
0x0000000d (FINI) 0x1cb479
0x0000001a (FINI_ARRAY) 0x21ebc8
0x0000001c (FINI_ARRAYSZ) 4 (bytes)
0x00000004 (HASH) 0x8148
0x00000005 (STRTAB) 0x116f0
0x00000006 (SYMTAB) 0xac20
0x0000000a (STRSZ) 32400 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x21ece0
0x00000002 (PLTRELSZ) 5496 (bytes) 0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x1a3ac
0x00000011 (REL) 0x1a35c
0x00000012 (RELSZ) 80 (bytes) 0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x1a2dc
0x6fffffff (VERNEEDNUM) 2
0x6ffffff0 (VERSYM) 0x19580
0x00000000 (NULL) 0x0

My kernel is 2.6.33-2 and I'm running Ubuntu 9.10 on the arm (IGEPv2 board)

Kind Regards
Anton Rieckert

Den Jean wrote 17 lines
On Monday 26 April 2010 06:08:04 Anton Rieckert wrote: > compiler to compile workable binaries for QT ARM interface. I suspect > I tried only this small example in qemu debain lenny armel http://lists.lazarus.freepascal.org/pipermail/qt/2010-February/001461.html I now also tried running lazarus itself, it crashes, both with Qt and Gtk2. When I have time, I will investigate this further. _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20100428/fda3afea/attachment-0001.html>

Reply by email