Which gtk? lazarus / 1-Linux ---------------------------------------------------------------------- ijontichy · 2007-03-14 23:58 Does the installation of Lazarus require GTK1? I'm asking because my Linux distribution (Zenwalk) has dropped GTK1, so I don't currently have it installed -- I only have GTK2. I know that you can recompile the Lazarus IDE to work with GTK2, but I'm wondering if the installation process itself requires GTK1. ---------------------------------------------------------------------- Vincent Snijders · 2007-03-15 07:12 The binary packages distributed by the Lazarus team require gtk1. If you install Lazarus from source, you can compile Lazarus for gtk2. ---------------------------------------------------------------------- ijontichy · 2007-04-01 05:30 I tried a "make clean all" and it compiled OK, and then it failed in the linking: Code: [Select]Linking ../lazarus /usr/bin/ld: cannot find -lgdk lazarus.pp(119,1) Error: Error while linking So do I need to install GTK1 first before I can install Lazarus, or can I really install and run Lazarus with only GTK2? ---------------------------------------------------------------------- Vincent Snijders · 2007-04-01 07:52 To compile lazarus for gtk2, use: Code: [Select]make LCL_PLATFORM=gtk2 ---------------------------------------------------------------------- ijontichy · 2007-04-03 12:31 Thanks, now it compiles and links properly, but when I run lazarus, I get an error: Code: [Select]$ ./startlazarus GTKWindowStateEventCB SplashForm:TSplashForm new_window_state=0 changed_mask=1 GTKWindowStateEventCB SplashForm:TSplashForm 0 [RMVDStPr] TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 Note: environment config file not found - using defaults GTKWindowStateEventCB :TPromptDialog new_window_state=0 changed_mask=1 GTKWindowStateEventCB :TPromptDialog 0 [RMVDStPr] NOTE: editor options config file not found - using defaults NOTE: miscellaneous options file not found - using defaults NOTE: codetools config file not found - using defaults NOTE: FPC Source Directory not set! (see Environment Options) TDefinePool.CreateFPCSrcTemplate FPCSrcDir does not exist: FPCSrcDir="" NOTE: Could not create Define Template for Free Pascal Sources NOTE: help options config file not found - using defaults [FORMS.PP] ExceptionOccurred   Sender=EReadError   Exception=Error reading CancelButton.Kind: Invalid floating point operation   Stack trace:   $080D5147   $080D48DB   $080CB65F   $080D4610   $080D4961   $080CB65F   $080D5B25   $08184EAA  INITCOMPONENT,  line 2639 of lresources.pp   $08184D12  INITLAZRESOURCECOMPONENT,  line 2658 of lresources.pp   $0817DD0F  INITRESOURCECOMPONENT,  line 506 of lresources.pp   $080776BE  TCUSTOMFORM__CREATE,  line 1297 of ./include/customform.inc   $0839B175  TLAZFINDREPLACEDIALOG__CREATE,  line 121 of findreplacedialog.pp   $0808E358  TMAINIDE__CREATEOFTENUSEDFORMS,  line 1216 of main.pp   $08059F29  main,  line 95 of lazarus.pp TApplication.HandleException Error reading CancelButton.Kind: Invalid floating point operation   Stack trace:   $080D5147   $080D48DB   $080CB65F   $080D4610   $080D4961   $080CB65F   $080D5B25   $08184EAA  INITCOMPONENT,  line 2639 of lresources.pp   $08184D12  INITLAZRESOURCECOMPONENT,  line 2658 of lresources.pp   $0817DD0F  INITRESOURCECOMPONENT,  line 506 of lresources.pp   $080776BE  TCUSTOMFORM__CREATE,  line 1297 of ./include/customform.inc   $0839B175  TLAZFINDREPLACEDIALOG__CREATE,  line 121 of findreplacedialog.pp   $0808E358  TMAINIDE__CREATEOFTENUSEDFORMS,  line 1216 of main.pp   $08059F29  main,  line 95 of lazarus.pp [FORMS.PP] ExceptionOccurred (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d050' has no handler with id `1046' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d140' has no handler with id `1074' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d230' has no handler with id `1102' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d320' has no handler with id `1130' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d458' has no handler with id `1158' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a38780' has no handler with id `1186' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d598' has no handler with id `1214' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d688' has no handler with id `1242' (lazarus:2986): GLib-GObject-WARNING **: gsignal.c:1741: instance `0x8a3d778' has no handler with id `1270' Note: GetTextBuf is overridden for: €                                       @#ÈÈY·v_€«ôÿ o_ [FORMS.PP] ExceptionOccurred [FORMS.PP] ExceptionOccurred Here is my fpc version: Code: [Select]$ fpc -i Free Pascal Compiler version 2.0.4 Compiler Date      : 2006/08/20 Compiler CPU Target: i386 ---------------------------------------------------------------------- Wanagen · 2007-04-06 02:16 Hi,  I've got no problem to compile and launch Lazarus from v0.9.18 to v0.9.23 with gtk2 and FPC 2.0.4 too. Maybe it's because i'm using Mandriva 2007.0 (a RedHat linux) I use GTK2 v2.10 and a maximum of associated libraries.(gtk/gdk/pixbuf/...) ---------------------------------------------------------------------- ijontichy · 2007-04-06 07:38 Quote from: "Wanagen"I've got no problem to compile and launch Lazarus from v0.9.18 to v0.9.23 with gtk2 and FPC 2.0.4 too. Maybe it's because i'm using Mandriva 2007.0 (a RedHat linux) But do you have the gtk1 libraries installed on your system? ---------------------------------------------------------------------- ijontichy · 2008-02-12 01:52 Works fine with the latest Lazarus, 0.9.24. Well done boys.