Compiling Lazarus lazarus / 1-Linux ---------------------------------------------------------------------- sandeep_c24 · 2009-05-31 07:59 I am trying to compile lazarus on latest version of (K)Ubuntu and I am getting this error Quote cannot find -lX11 Could anyone please tell me what I need to do to fix this error? Regards Sandeep ---------------------------------------------------------------------- clauslack · 2009-05-31 15:41 From this ubuntu forum http://ubuntuforums.org/archive/index.php/t-213986.html After a.. sudo apt-get install X-dev libX11-dev libXi-dev libXmu-dev ..it just compiled. ---------------------------------------------------------------------- sandeep_c24 · 2009-05-31 22:09 I tried Quotesudo apt-get install X-dev libX11-dev libXi-dev libXmu-dev but I get the following error QuoteCouldn't find package X-dev Sandeep ---------------------------------------------------------------------- clauslack · 2009-05-31 23:27 Maybe xorg-dev Look at this (It has many dependences xserver-xorg-dev, libx11-dev, etc) http://packages.ubuntu.com/jaunty/xorg-dev ---------------------------------------------------------------------- sandeep_c24 · 2009-05-31 23:35 I tried xorg-dev that fixed the -lX11 error but now I am getting follwoing error Quote/usr/bin/ld: cannot find -lgdk_pixbuf-2.0 lazarus.pp(123,1) Error: Error while linking lazarus.pp(123,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/sandeep/lazarus/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `/home/sandeep/lazarus/ide' make: *** [ide] Error 2 ---------------------------------------------------------------------- clauslack · 2009-05-31 23:41 Yeah try libgdk-pixbuf2 libgdk-pixbuf-dev ---------------------------------------------------------------------- sandeep_c24 · 2009-05-31 23:42 Sorry, but I am not quite sure what you want me to do there. Pls ignore this, I am downloading it now Sandeep ---------------------------------------------------------------------- clauslack · 2009-05-31 23:45 You must install the packages libgdk-pixbuf2 and maybe libgdk-pixbuf-dev too. ---------------------------------------------------------------------- sandeep_c24 · 2009-05-31 23:50 I have installed those 2 packages but now I am getting QuoteLinking ../lazarus /usr/bin/ld: cannot find -lgdk-x11-2.0 lazarus.pp(123,1) Error: Error while linking ---------------------------------------------------------------------- clauslack · 2009-06-01 00:07 It is GTK2 try gtk-sharp2 I think .. ---------------------------------------------------------------------- sandeep_c24 · 2009-06-01 00:14 That didn't help. I am still getting same error. ---------------------------------------------------------------------- clauslack · 2009-06-01 00:20 Sorry try libgtk2.0-dev or search with apt in what package is libgdk-x11-2.0 libgdk-x11-2.0.so.0.1200.12 libgdk-x11-2.0.la ---------------------------------------------------------------------- sandeep_c24 · 2009-06-01 00:47 Thanks for your help. That fixed all the issues and now I can compile my apps. Sandeep ---------------------------------------------------------------------- clauslack · 2009-06-01 00:58 Regards and good luck. clauslack ---------------------------------------------------------------------- alejol0 · 2009-06-07 20:43 I am a newbie in Linux. I am very frustrated triying to compile Lazarus in Puppy Linux 4.2.1 Why Lazarus do not have a REAL INSTALLER, with ALL STUFF INCLUDED????? Is so simple to install it in Windows!! ---------------------------------------------------------------------- Marc · 2009-06-07 23:21 please don't double post. ---------------------------------------------------------------------- cpalx · 2009-07-12 21:18 why dont you use another ditro? Puppy is a very simple distro, focus on be faster with new package. If you use Mandriva, for example, you will see it will be easier as you think.