Solution: Nice IDE on Ubuntu (GTK2) lazarus / 1-Linux ---------------------------------------------------------------------- Lanxelot · 2007-05-06 15:57 After installing Lazarus on Ubuntu, i got the same ugly IDE (colors,fonts,control design) as many mentioned here already. Recompiling for gtk2 didn't fix anything in the first place, because the options don't match for that! Here's the solution: 1. Click menu Deutsch: "Werkzeuge/Lazarus erstellen einrichten ..." English: "Tools/Rebuild Lazarus ..."  (or similar, i'm not sure cuz using german) 2. Set all items in list to "Clean+Build" (rightmost icon), except the following: CodeTools -> "None" Package registration -> "None" Samples -> "None" 3. Select "gtk2" in LCL interface 4. Check "clean all" | "Alles säubern" at top right corner 5. Check "with packages" | "Mit Packages" below lcl-groupbox 6. Check "restart.." | "Neustart ..." at bottom 7. Click "Create" | "Erstellen" button. After that, lazarus should restart as a nice gnome/gtk2 application with correct fonts and colors and design of all controls. ---------------------------------------------------------------------- Wanagen · 2007-05-06 21:53 - can you resize a tListBox correctly or not ? - Can you use the inline help (ex : form1. wait for the procedures and functions list and select one) ? - can you use the menu "find/replace" with a replacing word containing an "a" ? ---------------------------------------------------------------------- alfadaemon · 2007-05-10 14:39 I get a Fatal error: /usr/lib/lazarus/ide/main.pp(123,40) Fatal: Can't find unit Laz_XMLCfg Any ideas???!!! I saw this same problem on this post: http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtop ic&p=16785 but he is using SUSE, what I use: fpc 2.0.4 lazarus 0.9.22 ubuntu 7.04 The error disappears if you include the code tools option, but I get a error while linking. (cannot find -lgdk_pixbuf-2.0) I'll try to download it later to see if I can get it to work. ---------------------------------------------------------------------- felipemdc · 2007-05-10 20:18 Quote from: "alfadaemon" The error disappears if you include the code tools option, but I get a error while linking. (cannot find -lgdk_pixbuf-2.0) I'll try to download it later to see if I can get it to work. That´s a FAQ http://wiki.lazarus.freepascal.org/Lazarus_Faq#Lazarus_compiles.2C_but _linking_fails_with:_libgdk-pixbuf_not_found Every time you get a can´t find -lanything you need to download and install a package called: libanything-dev or libanything-devel or something similar The names change from distribution to distribution, but are similar ---------------------------------------------------------------------- alfadaemon · 2007-05-12 03:40 Yes I know, but the problem is this: I have the libgdk-pixbuf-dev package (which supposibly have the library) installed, what I'm looking right now is that the gdk_pixbuf-2.0 library does not exists on my system. I'm trying to make a symbolic link: /usr/lib # ln -s libgdk_pixbuf.so.2.0.0 gdk_pixbuf-2.0.so but is not working neither, I do not know if this is the correct name that lazarus is looking for. ---------------------------------------------------------------------- Wanagen · 2007-05-12 23:29 the libgdk_pixbuf.so.2.0.0 isn't the correct library you must have libgdk_pixbuf-2.0.so.0.xxxx.xx first then symlink it to libgdk_pixbuf-2.0.so.0 and libgdk_pixbuf-2.0.so here is all the gtk package you must have : libgdk-pixbuf2_0.22.0-8.1_i386.deb libgdk-pixbuf-dev_0.22.0-8.1_i386.deb libglib1.2_1.2.10-9_i386.deb libglib1.2-dev_1.2.10-9_i386.deb libgtk1.2_1.2.10-17_i386.deb libgtk1.2-common_1.2.10-17_all.deb libgtk1.2-dev_1.2.10-17_i386.deb libpng10-0_1.0.18-1_i386.deb ---------------------------------------------------------------------- alfadaemon · 2007-05-16 06:41 Thanks Wanagen, you where right. I already have all those packages installed. The problem I am facing now is with the links to other libraries... so far a need to create links to libgdk-x11, libgtk-x11, libgobject, libglib, libgthread, libgmodule, libpango and libatk. It looks nice but I see some problems with dbgrids and page controls (tabs and notebook). I think will keep working with gtk1 and leave gtk2 for a more stable version. Thanks again. ---------------------------------------------------------------------- Almindor · 2007-05-26 21:41 I recently switched to gtk2 Lazarus, and it's become generally usable. It has a lot of quirks tho and I think we need more people to at least try to use it and report bugs actively. There's more interest for gtk2 from the devs now too. They just need proper bugreports since many of the gtk2 problems are eg: theme related (I just had one). But for a stable development I'd still recommend gtk1 ---------------------------------------------------------------------- dorice · 2007-06-04 06:55 Thanks. It works. But there are still some problems with the source editor. It display character incorrectly. For example: Code: [Select] form1.show(); will be display as: Code: [Select] form1          .        show   ()    ; But when you select all text, it will display correctly. Why? My system is Ubuntu 7.04 with zh_CN.UTF8 locale.