[fpc-pascal] GTK2 Lazarus Project, but I want QT.

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Jun 21 15:42:41 CEST 2007


I just added here support for Qt 4.2

Only some ifdefs to switch between qt4 and the qt42 unit were necessary.

You can turn the Qt 4.2 mode using the define USE_QT_4_2. commited on
revision 11352

Unfortunately it didn't work. Compiles and links fine, but crashes at
startup. Not sure what is wrong, however. Anyway, I need to go now,
I'll be back in manyy hours or in the weekend.

[felipe at felipe test]$ ./projecttest
Gleitkomma-Ausnahme

Lol! Maybe it wasn't a good idea to change my linux to german =) I
have no idea what this means ... only that Ausnahme=exception

Possibilities:
1 - I need to upgrade my Qt 4.2.2 to 4.2.3
2 - The quick bindings that Dean made are broken.

Backtrace just for the record:

[felipe at felipe test]$ ./projecttest
Gleitkomma-Ausnahme

(gdb) break fpc_raiseexception
Breakpoint 1 at 0x805b00a
(gdb) run
Starting program: /home/felipe/Programas/test/projecttest
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xbfffe000

Program received signal SIGFPE, Arithmetic exception.
0xb7f0e95f in do_lookup_x (undef_name=0xb70427e0 "__cxa_finalize",
    hash=199910549, ref=0xb70426d4, result=0xbf830990, scope=0xb7f1f838, i=1,
    version=0xb7041f50, flags=0, skip=0x0, type_class=Variable
"type_class" is not available.
) at do-lookup.h:72
72      do-lookup.h: Datei oder Verzeichnis nicht gefunden.
        in do-lookup.h
(gdb) bt
#0  0xb7f0e95f in do_lookup_x (undef_name=0xb70427e0 "__cxa_finalize",
    hash=199910549, ref=0xb70426d4, result=0xbf830990, scope=0xb7f1f838, i=1,
    version=0xb7041f50, flags=0, skip=0x0, type_class=Variable
"type_class" is not available.
) at do-lookup.h:72
#1  0xb7f0ec77 in _dl_lookup_symbol_x (undef_name=0xb70427e0 "__cxa_finalize",
    undef_map=0xb7276af8, ref=0xbf830ab0, symbol_scope=0xb7276ca0,
    version=0xb7041f50, type_class=0, flags=0, skip_map=0x0) at dl-lookup.c:233
#2  0xb7f10253 in _dl_relocate_object (l=Variable "l" is not available.
) at ../sysdeps/i386/dl-machine.h:354
#3  0xb7f0931f in dl_main (phdr=0x8048034, phnum=160, user_entry=0xbf830ea0)
    at rtld.c:2235
#4  0xb7f1842e in _dl_sysdep_start (start_argptr=0xbf830f00,
    dl_main=0xb7f08050 <dl_main>) at ../elf/dl-sysdep.o:239
#5  0xb7f07709 in _dl_start (arg=0xbf830f00) at rtld.c:333
#6  0xb7f06847 in _start () at rtld.c:788
(gdb)

In case anyone is wondering by this bizarre error, the app does work
fine with Gtk 2



More information about the fpc-pascal mailing list