Recent

Author Topic: Solution: Nice IDE on Ubuntu (GTK2)  (Read 9506 times)

Lanxelot

  • Newbie
  • Posts: 1
Solution: Nice IDE on Ubuntu (GTK2)
« on: May 06, 2007, 05:57:58 pm »
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

  • New Member
  • *
  • Posts: 30
RE: Solution: Nice IDE on Ubuntu (GTK2)
« Reply #1 on: May 06, 2007, 11:53:17 pm »
- 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

  • Newbie
  • Posts: 5
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #2 on: May 10, 2007, 04:39:47 pm »
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=viewtopic&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

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #3 on: May 10, 2007, 10:18:46 pm »
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

  • Newbie
  • Posts: 5
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #4 on: May 12, 2007, 05:40:00 am »
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

  • New Member
  • *
  • Posts: 30
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #5 on: May 13, 2007, 01:29:10 am »
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

  • Newbie
  • Posts: 5
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #6 on: May 16, 2007, 08:41:44 am »
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

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #7 on: May 26, 2007, 11:41:10 pm »
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

  • Newbie
  • Posts: 2
Solution: Nice IDE on Ubuntu (GTK2)
« Reply #8 on: June 04, 2007, 08:55:10 am »
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.

 

TinyPortal © 2005-2018