[Lazarus] Suggestion again: remove GTK1 from IDE and LCL

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Jun 2 17:20:48 CEST 2010


On 2 June 2010 16:18, Vincent Snijders <vsnijders at vodafonevast.nl> wrote:
>
> False. I just compiled it.

13:30 (GMT+2) it did not.  I just tried again with new updated Lazarus
SVN, and now LCL-GTK1 does indeed compile. I can also compile a simple
1 Form, 1 Button with 1 Editbox project and it ran.  Trying to compile
the Lazarus IDE also worked, but trying to run the Lazarus IDE
compiled with GTK1 gives the following error.

I suppose, even if Lazarus IDE itself cannot be compiled with GTK1, at
least projects using GTK1 can - though I would still be very wary
about this.


----------------------------------------------------------
$ ./lazarus --pcp=/temp/lazarus-gtk1

Gtk-WARNING **: Failed to load module "libcanberra-gtk-module.so":
`gtk_module_init': /usr/lib/libcanberra-gtk-module.so: undefined
symbol: gtk_module_init
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
SetPrimaryConfigPath NewValue="/temp/lazarus-gtk1" -> "/temp/lazarus-gtk1"
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/temp/lazarus-gtk1"
  SecondaryConfigPath="/etc/lazarus"
ERROR in LCL:
Creating gdb catchable error:
  $00000000006CACD1 line 1513 of lclproc.pas
  $00000000008D635B line 679 of gtkdef.pp
  $00000000008D62E7 line 658 of gtkdef.pp
  $00000000008B739B line 5017 of gtkwidgetset.inc
  $00000000008BD28D line 1436 of gtkwinapi.inc
  $00000000008BBFE6 line 1607 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
ERROR in LCL:
Creating gdb catchable error:
  $00000000006CACD1 line 1513 of lclproc.pas
  $00000000008B73AC line 5020 of gtkwidgetset.inc
  $00000000008BCA20 line 1844 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
  $00000000007BCD97 line 260 of include/canvas.inc
  $000000000084A725 line 41 of include/controlcanvas.inc
  $00000000007BFBBF line 1574 of include/canvas.inc
TApplication.HandleException Division by zero
  Stack trace:
  $00000000006CAD02 line 1514 of lclproc.pas
  $00000000008B73AC line 5020 of gtkwidgetset.inc
  $00000000008BCA20 line 1844 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
  $00000000007BCD97 line 260 of include/canvas.inc
  $000000000084A725 line 41 of include/controlcanvas.inc
  $00000000007BFBBF line 1574 of include/canvas.inc
  $00000000007BF128 line 1251 of include/canvas.inc
  $00000000007BEC81 line 1154 of include/canvas.inc
  $00000000006D9353 line 118 of splash.pp
  $000000000086CEA9 line 96 of include/graphiccontrol.inc
  $000000000090A75B line 213 of include/customimage.inc
  $000000000086CD84 line 64 of include/graphiccontrol.inc
  $000000000069E685
  $0000000000862DB5 line 1011 of include/control.inc
ERROR in LCL:
Creating gdb catchable error:
  $00000000006CACD1 line 1513 of lclproc.pas
  $00000000008D635B line 679 of gtkdef.pp
  $00000000008D62E7 line 658 of gtkdef.pp
  $00000000008B739B line 5017 of gtkwidgetset.inc
  $00000000008BD28D line 1436 of gtkwinapi.inc
  $00000000008BBFE6 line 1607 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
ERROR in LCL:
Creating gdb catchable error:
  $00000000006CACD1 line 1513 of lclproc.pas
  $00000000008B73AC line 5020 of gtkwidgetset.inc
  $00000000008BCA20 line 1844 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
  $00000000008A435F line 290 of include/promptdialog.inc
  $00000000008A4191 line 241 of include/promptdialog.inc
  $00000000008A4DF3 line 536 of include/promptdialog.inc
[FORMS.PP] ExceptionOccurred
  Sender=EDivByZero
  Exception=Division by zero
  Stack trace:
  $00000000006CAD02 line 1514 of lclproc.pas
  $00000000008B73AC line 5020 of gtkwidgetset.inc
  $00000000008BCA20 line 1844 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
  $00000000008A435F line 290 of include/promptdialog.inc
  $00000000008A4191 line 241 of include/promptdialog.inc
  $00000000008A4DF3 line 536 of include/promptdialog.inc
  $00000000007591D3 line 591 of include/intfbaselcl.inc
  $00000000007AAD3A line 337 of include/lclintf.inc
  $00000000008A30B1 line 192 of include/messagedialogs.inc
  $000000000089E4F0 line 651 of dialogs.pp
  $00000000006C0EEA line 198 of include/application.inc
  $00000000006C479C line 1507 of include/application.inc
  $00000000006C381C line 1196 of include/application.inc
  $0000000000950621 line 114 of lclmessageglue.pas
TApplication.HandleException: there was another exception during
showing the first exception
  Stack trace:
  $00000000006CAD02 line 1514 of lclproc.pas
  $00000000008B73AC line 5020 of gtkwidgetset.inc
  $00000000008BCA20 line 1844 of gtkwinapi.inc
  $00000000007A6066 line 126 of include/winapi.inc
  $00000000007BB8C4 line 1125 of include/font.inc
  $00000000007BC0A1 line 1246 of include/font.inc
  $00000000008A435F line 290 of include/promptdialog.inc
  $00000000008A4191 line 241 of include/promptdialog.inc
  $00000000008A4DF3 line 536 of include/promptdialog.inc
  $00000000007591D3 line 591 of include/intfbaselcl.inc
  $00000000007AAD3A line 337 of include/lclintf.inc
  $00000000008A30B1 line 192 of include/messagedialogs.inc
  $000000000089E4F0 line 651 of dialogs.pp
  $00000000006C0EEA line 198 of include/application.inc
  $00000000006C479C line 1507 of include/application.inc
  $00000000006C381C line 1196 of include/application.inc
  $0000000000950621 line 114 of lclmessageglue.pas
[TGtkWidgetSet.Destroy] WARNING: There are 3 unreleased DCs, a
detailed dump follows:
[TGtkWidgetSet.Destroy]  DCs:   00007FD434241440 00007FD434241240
00007FD434241040
[TGtkWidgetSet.Destroy] WARNING: There are 9 unreleased GDIObjects, a
detailed dump follows:
[TGtkWidgetSet.Destroy]   GDIOs: 00007FD434253340 00007FD4342532C0
00007FD434253140 00007FD4342530C0 00007FD4342531C0 00007FD434253240
00007FD434253040
[TGtkWidgetSet.Destroy]   gdiBitmap: 2
[TGtkWidgetSet.Destroy]   gdiBrush: 2
[TGtkWidgetSet.Destroy]   gdiFont: 2
[TGtkWidgetSet.Destroy]   gdiPen: 2
[TGtkWidgetSet.Destroy]   gdiRegion: 1

----------------------------------------------------------


You can ignore the "libcanberra-gtk-module.so" warning, that is only
GTK1 sound support and not needed for even small test applications
which do run.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list