[Qt] ARM Qt4Pas V2.1 Access Violations

Nataraj S Narayan natarajsn at gmail.com
Fri Apr 23 15:00:32 CEST 2010


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 <anton at riecktron.co.za> 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<anton at riecktron.co.za>
>>  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
>>> Qt at lists.lazarus.freepascal.org
>>> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
>>>
>>>
>>
>> _______________________________________________
>> Qt mailing list
>> Qt at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
>>
>>
>
> _______________________________________________
> Qt mailing list
> Qt at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
>




More information about the Qt mailing list