Recent

Author Topic: problem with lazarus  (Read 23248 times)

aliotti

  • Guest
problem with lazarus
« on: February 13, 2004, 02:08:13 am »
I use Suse 8.1 with kde 3.x, with packages of gnome installed:
but when I try compile return the message: /usr/bin/ld: cannot find -lgdk_pixbuf

but i installed:
  gdk-pixbuf  and  gdk-pixbuf-devel

what is wrong ?

neli

  • Jr. Member
  • **
  • Posts: 86
problem with lazarus
« Reply #1 on: February 13, 2004, 09:11:04 am »
Maybe you still need to run 'ldconfig' as root? Suse should do that for you.

Try 'locate libgdk | grep pixbuf' or something alike to see if you've actually got the library.

Micha.

aliotti

  • Guest
I try
« Reply #2 on: February 14, 2004, 05:49:23 pm »
I try :ldconfig but result in the same message, after try the another but the command not was run.

And now ???

neli

  • Jr. Member
  • **
  • Posts: 86
problem with lazarus
« Reply #3 on: February 15, 2004, 09:34:27 pm »
What was the exact result? Messages? Instead of the second command you can also do:

# cd /
# find | grep 'libgdk.*pixbuf'

List the output here.

Micha.

aliotti

  • Guest
continuing the subject
« Reply #4 on: February 17, 2004, 11:01:56 pm »
Thank by help Nely,
           
           finally i found in .opt/gnome/lib/:
                      libgdk_pixbuf.so.2
                      libgdk_pixbuf.so
                      libgdk_pixbuf_xlib.so.2
                      libgdk_pixbuf.so.2.0.0
                      libgdk_pixbuf_xlib.so.2.0.0
                      libgdk_xlib.so

but how set the rigth shared object to lazarus ?

neli

  • Jr. Member
  • **
  • Posts: 86
problem with lazarus
« Reply #5 on: February 19, 2004, 10:14:00 am »
These are all .so files, but you need a .a file like: 'libgdk_pixbuf.a'. '*.so' is used when starting the app, '*.a' is used when linking the app, which you are doing now. Please try to find the .a files, they should be in the gdk-pixbuf-devel package which you said you installed. Are you able to get a listing of files installed by this gdk-pixbuf-devel package?

HTH,

Micha.

aliotti

  • Guest
found in same directory
« Reply #6 on: February 19, 2004, 09:46:28 pm »
Too found in .opt/gnome/lib/:

libgdk_pixbuf.la
libgdk_pixbuf_xlib.a
libgdk_pixbuf.a
libgdk_pixbuf_xlib.la

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
problem with lazarus
« Reply #7 on: February 20, 2004, 12:36:57 am »
Could you try this? Add the following line to /etc/fpc.cfg

-Fl/opt/gnome/lib/

RGB

  • Guest
Ubuntu 5.10 AMD64
« Reply #8 on: November 23, 2005, 12:57:32 am »
Hi,

1) First I've a question, is GLScene for Lazarus also working under Linux? (Is this the right file? http://prdownloads.sourceforge.net/lazarus-ccr/glscene-0.9.1.4.zip?download or perhaps is there a complete installation package like for the windows users?)

2) I've a similar problem under Ubuntu 5.10 AMD64. I have properly installed Lazarus, downloaded the three RPM packages, like written in the Wiki. Unpacked these and moved the files.

Code: [Select]
sudo cp -r usr /

Now, when I want to start Larzarus there is an error message: lazarus: error while loading shared libraries: libgdk_pixbuf.so.2: cannot open shared object file: No such file or directory

I've installed all packages with pattern *pixbuf*, a complete GTK and GTK2 installation.

LDD-Output:
Code: [Select]
ldd /usr/bin/lazarus
        linux-gate.so.1 =>  (0xffffe000)
        libglib-1.2.so.0 => /usr/lib32/libglib-1.2.so.0 (0x55590000)
        libgdk-1.2.so.0 => /usr/lib32/libgdk-1.2.so.0 (0x555b4000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0x555eb000)
        libgtk-1.2.so.0 => /usr/lib32/libgtk-1.2.so.0 (0x556ab000)
        libXi.so.6 => /usr/lib32/libXi.so.6 (0x557e6000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0x557ee000)
        libm.so.6 => /lib32/tls/libm.so.6 (0x557fb000)
        libgdk_pixbuf.so.2 => not found
        libdl.so.2 => /lib32/tls/libdl.so.2 (0x5581e000)
        libc.so.6 => /lib32/tls/libc.so.6 (0x55821000)
        libgmodule-1.2.so.0 => /usr/lib32/libgmodule-1.2.so.0 (0x5594f000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0x55952000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0x55956000)
        /lib/ld-linux.so.2 (0x55555000)


Made:
Code: [Select]
sudo ldconfig

Long output (locate libgdk | grep pixbuf):
Code: [Select]
locate libgdk | grep pixbuf
/var/lib/dpkg/info/libgdk-pixbuf2-ruby.md5sums
/var/lib/dpkg/info/libgdk-pixbuf2-ruby.list
/var/lib/dpkg/info/libgdk-pixbuf2.shlibs
/var/lib/dpkg/info/libgdk-pixbuf2.list
/var/lib/dpkg/info/libgdk-pixbuf2.postinst
/var/lib/dpkg/info/libgdk-pixbuf2.md5sums
/var/lib/dpkg/info/libgdk-pixbuf-dev.md5sums
/var/lib/dpkg/info/libgdk-pixbuf-dev.list
/var/lib/dpkg/info/libgdk-pixbuf-gnome2.shlibs
/var/lib/dpkg/info/libgdk-pixbuf-gnome2.list
/var/lib/dpkg/info/libgdk-pixbuf-gnome2.md5sums
/var/lib/dpkg/info/libgdk-pixbuf-gnome-dev.md5sums
/var/lib/dpkg/info/libgdk-pixbuf-gnome-dev.list
/var/cache/apt/archives/libgdk-pixbuf2-ruby_0.13.0-2ubuntu1_amd64.deb
/var/cache/apt/archives/libgdk-pixbuf2_0.22.0-8ubuntu0.1_amd64.deb
/var/cache/apt/archives/libgdk-pixbuf-dev_0.22.0-8ubuntu0.1_amd64.deb
/var/cache/apt/archives/libgdk-pixbuf-gnome2_0.22.0-8ubuntu0.1_amd64.deb
/var/cache/apt/archives/libgdk-pixbuf-gnome-dev_0.22.0-8ubuntu0.1_amd64.deb
/usr/share/doc/libgdk-pixbuf2-ruby
/usr/share/doc/libgdk-pixbuf2-ruby/changelog.Debian.gz
/usr/share/doc/libgdk-pixbuf2-ruby/README.Debian
/usr/share/doc/libgdk-pixbuf2-ruby/AUTHORS
/usr/share/doc/libgdk-pixbuf2-ruby/README
/usr/share/doc/libgdk-pixbuf2-ruby/copyright
/usr/share/doc/libgdk-pixbuf2-ruby/changelog.gz
/usr/share/doc/libgdk-pixbuf2-ruby/examples
/usr/share/doc/libgdk-pixbuf2-ruby/examples/composite.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/anim.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/floppybuddy.gif
/usr/share/doc/libgdk-pixbuf2-ruby/examples/flip.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/gnome-foot.png
/usr/share/doc/libgdk-pixbuf2-ruby/examples/format.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/inline.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/loader.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/pixdata.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/rotate.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/save.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/scale.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/utils.rb
/usr/share/doc/libgdk-pixbuf2-ruby/examples/xpm.rb
/usr/share/doc/libgdk-pixbuf2-ruby/NEWS.gz
/usr/share/doc/libgdk-pixbuf2
/usr/share/doc/libgdk-pixbuf2/copyright
/usr/share/doc/libgdk-pixbuf2/README
/usr/share/doc/libgdk-pixbuf2/changelog.Debian.gz
/usr/share/doc/libgdk-pixbuf2/changelog.gz
/usr/share/doc/libgdk-pixbuf2/NEWS.gz
/usr/share/doc/libgdk-pixbuf2/html
/usr/share/doc/libgdk-pixbuf2/html/compiling.html
/usr/share/doc/libgdk-pixbuf2/html/a3696.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-gdk-pixbuf-xlib-init.html
/usr/share/doc/libgdk-pixbuf2/html/extra-configuration-options.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-animation.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-creating.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-file-loading.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-from-drawables.html

/usr/share/doc/libgdk-pixbuf2/html/license.html
/usr/share/doc/libgdk-pixbuf2/html/index.html
/usr/share/doc/libgdk-pixbuf2/html/r27.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-gdk-pixbuf-xlib-from-drawables.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-gdk-pixbuf-xlib-rendering.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-gdk-pixbuf-xlib-rgb.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-gdk-pixbuf.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-refcounting.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-rendering.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-scaling.html
/usr/share/doc/libgdk-pixbuf2/html/gdk-pixbuf-util.html
/usr/share/doc/libgdk-pixbuf2/html/gdkpixbufloader.html
/usr/share/doc/libgdk-pixbuf2/html/gnomecanvaspixbuf.html
/usr/share/doc/libgdk-pixbuf2/html/x3715.html
/usr/share/doc/libgdk-pixbuf2/html/x3767.html
/usr/share/doc/libgdk-pixbuf-gnome2
/usr/share/doc/libgdk-pixbuf-dev
/usr/share/doc/libgdk-pixbuf-gnome-dev
/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.800.6
/usr/lib/libgdk_pixbuf-2.0.so.0.800.6
/usr/lib/libgdk_pixbuf_xlib-2.0.so.0
/usr/lib/libgdk_pixbuf-2.0.so.0
/usr/lib/libgdk_pixbuf_xlib-2.0.la
/usr/lib/libgdk_pixbuf-2.0.la
/usr/lib/libgdk_pixbuf_xlib-2.0.a
/usr/lib/libgdk_pixbuf-2.0.a
/usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libgdk_pixbuf_xlib-2.0.so
/usr/lib/libgdk_pixbuf_xlib.so.2.0.0
/usr/lib/libgdk_pixbuf.so.2.0.0
/usr/lib/libgdk_pixbuf_xlib.so.2
/usr/lib/libgdk_pixbuf.so.2
/usr/lib/libgdk_pixbuf.a
/usr/lib/libgdk_pixbuf.la
/usr/lib/libgdk_pixbuf_xlib.a
/usr/lib/libgdk_pixbuf_xlib.la
/usr/lib/libgdk_pixbuf.so
/usr/lib/libgdk_pixbuf_xlib.so
/usr/lib32/libgdk_pixbuf-2.0.so.0.800.2
/usr/lib32/libgdk_pixbuf_xlib-2.0.so.0.800.2
/usr/lib32/libgdk_pixbuf-2.0.so.0
/usr/lib32/libgdk_pixbuf_xlib-2.0.so.0


Any suggestion?

Thank you very much,

RGB

RudieD

  • Full Member
  • ***
  • Posts: 234
RE: Ubuntu 5.10 AMD64
« Reply #9 on: November 23, 2005, 07:59:36 pm »
Did you create the /etc/fpc.cfg file and configured it ?

See : <http://wiki.lazarus.freepascal.org/index.php/Installing_Lazarus#Installing_Lazarus_under_Debian_GNU.2FLinux>
The FRED Trainer. (Training FRED with Lazarus/FPC)

RGB

  • Guest
Re: RE: Ubuntu 5.10 AMD64
« Reply #10 on: November 27, 2005, 09:59:52 pm »
Quote from: "RudieD"
Did you create the /etc/fpc.cfg file and configured it ?

See : <http://wiki.lazarus.freepascal.org/index.php/Installing_Lazarus#Installing_Lazarus_under_Debian_GNU.2FLinux>


Yes, of course. :)

Perhaps there is a problem with lib64 on my Ubuntu 5.10 AMD64. Does Lazarus run fine on Ubuntu 5.10 AMD64?

Code: [Select]
lazarus: error while loading shared libraries: libgdk_pixbuf.so.2: cannot open shared object file: No such file or directory

Any suggestion?

Drewski

  • Jr. Member
  • **
  • Posts: 55
RE: Re: RE: Ubuntu 5.10 AMD64
« Reply #11 on: November 28, 2005, 01:39:41 pm »
Yes. You don't have a libgdk_pixbuf.so. I had the same problem on my computer, so I copied the file from a different 32 pc to there as there wasn't a package included with my distro that had that file in it for 32 bits.

/usr/lib/libgdk_pixbuf.so.2 is a 64 bit binary so it won't work.

Why aren't you using a 64bit fpc with 64bit lazarus? I am.

You need a recent fpc from svn though.

Steps for 64 bit lazarus.

1) download and install FPC 2.0 64 bit.

2) download and install svn fpc sources.

svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
cd fpc
make all PP=ppcx64
su
make install PP=ppcx64
ln -sf /usr/local/lib/fpc/2.1.1/ppcx64 /usr/local/bin

this will install in /usr/local/lib/fpc/2.1.1
and create a link to the compiler in /usr/local/bin/


3) edit your /etc/fpc.cfg file

you should make sure the lines say:

-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget
etc

5) get lazarus from svn
there are several bugs fixed in 64 bit lazarus in svn version so lazarus from svn is pratically a requirement ;)

svn checkout http://svn.freepascal.org/svn/lazarus/trunk lazarus

cd lazarus
make PP=ppcx64

then ./lazarus to start it
this is useful because it makes it easy to update from svn and recompile
("svn update" from inside the lazarus dir)


That's it now you have a working fpc/laz 64bit

For your libgdk_pixbuf problem eiither locate a 32bit  package for your distro or you can copy the file from another pc to /usr/lib32/

HTH

Andrew

RGB

  • Guest
Thanks!
« Reply #12 on: November 29, 2005, 09:20:07 am »
Thanks for the answer.

I'll try this 'HowTo' after work. Also I'll put a response if this works ...  :D

RGB

  • Guest
HowTo
« Reply #13 on: November 30, 2005, 12:50:32 am »
I've uninstalled fpc and lazarus completely. All files were removed, also /etc/fpc.cfg. I dobble checked this, downloaded the rpm packages, checked every file. :)

1) First step was to install FreePascal 2.0 64 Bit: Done. (Also created the /etc/fpc.cfg and replaced the version with $fpcversion.)

2) Second 'svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc', 'cd fpc', but now at 'make all PP=ppcx64' I get the following:
Code: [Select]
...
zdeflate.pas(1223,3) Error: GOTO and LABEL are not supported (use switch -Sg)
zdeflate.pas(1369,11) Error: GOTO and LABEL are not supported (use switch -Sg)
zdeflate.pas(1373,11) Error: GOTO and LABEL are not supported (use switch -Sg)
zdeflate.pas(2130,4) Fatal: There were 3 errors compiling module, stopping
zdeflate.pas(110,59) Fatal: Compilation aborted
...



Perhaps this FreePascal SVN revision (1849) is broken? I'll try again tomorrow.

Any suggestion? :)


Thanks,

RGB

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: HowTo
« Reply #14 on: November 30, 2005, 09:13:02 am »
This a bug in this FPC svn revision. It will probably fixed soon.

 

TinyPortal © 2005-2018