Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

gdk_pixbuf

14 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

Hi,

I started to experiment some more and installed the latest OpenSuse 11.2. It is really cool otherwise (look at the latest KDE, wow), but when I build Lazarus for GTK2 widgets I get error:

Compiling lazarus.pp
Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lgdk_pixbuf-2.0
lazarus.pp(126,1) Error: Error while linking
lazarus.pp(126,1) Fatal: There were 1 errors compiling module, stopping

However, I have installed gdk_pixbuf. When I run ldconfig as root, see...

# ldconfig -p | grep gdk_pixbuf
libgvplugin_gdk_pixbuf.so.5 (libc6) =>
/usr/lib/graphviz/libgvplugin_gdk_pixbuf.so.5
libgvplugin_gdk_pixbuf.so (libc6) =>
/usr/lib/graphviz/libgvplugin_gdk_pixbuf.so
libgdk_pixbuf_xlib.so.2 (libc6) => /usr/lib/libgdk_pixbuf_xlib.so.2 libgdk_pixbuf_xlib.so (libc6) => /usr/lib/libgdk_pixbuf_xlib.so libgdk_pixbuf_xlib-2.0.so.0 (libc6) => /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 libgdk_pixbuf.so.2 (libc6) => /usr/lib/libgdk_pixbuf.so.2 libgdk_pixbuf.so (libc6) => /usr/lib/libgdk_pixbuf.so libgdk_pixbuf-2.0.so.0 (libc6) => /usr/lib/libgdk_pixbuf-2.0.so.0

Last line should be the one Lazarus needs I think. Who has Linux? What name the lib has there?

What means warning: "../link.res contains output sections; did you forget -T?"

Earlier there was an error for missing X11 lib but installing X11-devel package helped.
Maybe I will try deleting and reloading the whole Lazarus source.

I even installed FPC 2.4.0 RC1 but still get the same error. (I had to ignore a dependency for libtinfo.so.5 but that is not a problem. Seems to affect the text IDE only, not the compiler).

Other ideas?

Juha Manninen

Reply by email

Mattias Gaertner
to Juha Manninen: I started to experiment some more and installed the latest OpenSuse 11.2. It is really…
Show quoted text 26 lines
Hi, I started to experiment some more and installed the latest OpenSuse 11.2. It is really cool otherwise (look at the latest KDE, wow), but when I build Lazarus for GTK2 widgets I get error: Compiling lazarus.pp Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 lazarus.pp(126,1) Error: Error while linking lazarus.pp(126,1) Fatal: There were 1 errors compiling module, stopping However, I have installed gdk_pixbuf. When I run ldconfig as root, see... # ldconfig -p | grep gdk_pixbuf libgvplugin_gdk_pixbuf.so.5 (libc6) => /usr/lib/graphviz/libgvplugin_gdk_pixbuf.so.5 libgvplugin_gdk_pixbuf.so (libc6) => /usr/lib/graphviz/libgvplugin_gdk_pixbuf.so libgdk_pixbuf_xlib.so.2 (libc6) => /usr/lib/libgdk_pixbuf_xlib.so.2 libgdk_pixbuf_xlib.so (libc6) => /usr/lib/libgdk_pixbuf_xlib.so libgdk_pixbuf_xlib-2.0.so.0 (libc6) => /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 libgdk_pixbuf.so.2 (libc6) => /usr/lib/libgdk_pixbuf.so.2 libgdk_pixbuf.so (libc6) => /usr/lib/libgdk_pixbuf.so libgdk_pixbuf-2.0.so.0 (libc6) => /usr/lib/libgdk_pixbuf-2.0.so.0

It's missing:
libgdk_pixbuf-2.0.so (libc6) => /usr/lib/libgdk_pixbuf-2.0.so

Last line should be the one Lazarus needs I think. Who has Linux? What name the lib has there?

This is installed by the libgtk2.0-dev under debian/ubuntu. Under Fedora 11 the packages are called "gtk2-devel glibc-devel". I don't know how it is called under OpenSuSE.

What means warning: "../link.res contains output sections; did you forget -T?"

See here:
http://lists.freepascal.org/lists/fpc-devel/2009-May/016828.html

Show quoted text 7 lines
Earlier there was an error for missing X11 lib but installing X11-devel package helped. Maybe I will try deleting and reloading the whole Lazarus source. I even installed FPC 2.4.0 RC1 but still get the same error. (I had to ignore a dependency for libtinfo.so.5 but that is not a problem. Seems to affect the text IDE only, not the compiler).

Mattias

Reply by email

ing. A.J. Vogelaar
to Unknown author: perhaps you have to do ln -s libgdk_pixbuf-2.0.so.0 libgdk_pixbuf-2.0.so in /usr/lib as…

Hello,

there are a few links to create.
For installing on Mandriva 2010.0 is use following instructions:

MCC install : libgdk-pixbuf2 libgdk-pixbuf2-devel # cd /usr/lib/
ln -s libgdk_pixbuf-2.0.so.0 libgdk_pixbuf-2.0.so
ln -s libgtk-x11-2.0.so.0 libgtk-x11-2.0.so
ln -s libgdk-x11-2.0.so.0 libgdk-x11-2.0.so
ln -s libpango-1.0.so.0 libpango-1.0.so
ln -s libatk-1.0.so.0 libatk-1.0.so
Remark: delete ~/.fpc.cfg if present

   $ cd ~/lazarus
   make clean all

On desktop links to :
~/lazarus/startlazarus
/usr/local/share/doc/fpc-2.2.4/doc/fpdocs-2.2.4/
Configure Lazarus:
Environment | Options | Environment | Files | FPC source directory | /usr/local/lib/fpc/2.2.4/src/

Success, Anthony

========================================================================

Show quoted text 18 lines
Hello Juha, perhaps you have to do ln -s libgdk_pixbuf-2.0.so.0 libgdk_pixbuf-2.0.so in /usr/lib as root. Regards, Stephan -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Juha Manninen
to ing. A.J. Vogelaar
ing. A.J. Vogelaar wrote 21 lines
Hello, there are a few links to create. For installing on Mandriva 2010.0 is use following instructions: MCC install : libgdk-pixbuf2 libgdk-pixbuf2-devel # cd /usr/lib/ ln -s libgdk_pixbuf-2.0.so.0 libgdk_pixbuf-2.0.so ln -s libgtk-x11-2.0.so.0 libgtk-x11-2.0.so ln -s libgdk-x11-2.0.so.0 libgdk-x11-2.0.so ln -s libpango-1.0.so.0 libpango-1.0.so ln -s libatk-1.0.so.0 libatk-1.0.so Remark: delete ~/.fpc.cfg if present $ cd ~/lazarus make clean all On desktop links to : ~/lazarus/startlazarus /usr/local/share/doc/fpc-2.2.4/doc/fpdocs-2.2.4/ Configure Lazarus: Environment | Options | Environment | Files | FPC source directory | /usr/local/lib/fpc/2.2.4/src/

I managed to compile it finally. I had to make the sym-links you mentioned and then some more:

ln -s libgobject-2.0.so.0 libgobject-2.0.so
ln -s libglib-2.0.so.0 libglib-2.0.so
ln -s libgthread-2.0.so.0 libgthread-2.0.so
ln -s libgmodule-2.0.so.0 libgmodule-2.0.so
ln -s libcairo.so.2 libcairo.so

Someone should fix this issue. Is it a Mandrive / OpenSuse issue or FPC issue, I don't know?

Thanks to all who answered. You are clever people here :-)

Juha Manninen

Reply by email

zeljko
to Juha Manninen
Juha Manninen wrote 11 lines
I managed to compile it finally. I had to make the sym-links you mentioned and then some more: ln -s libgobject-2.0.so.0 libgobject-2.0.so ln -s libglib-2.0.so.0 libglib-2.0.so ln -s libgthread-2.0.so.0 libgthread-2.0.so ln -s libgmodule-2.0.so.0 libgmodule-2.0.so ln -s libcairo.so.2 libcairo.so Someone should fix this issue. Is it a Mandrive / OpenSuse issue or FPC issue, I don't know?

If you installed devel packages, and there's no symlinks then it's your distro problem, but if you didn't install devel packages then you are bug :) FC11 had such bug (no needed symlinks, but devel packages installed) somewhere around beta 1.

zeljko

Reply by email

Juha Manninen
to zeljko
zeljko wrote
If you installed devel packages, and there's no symlinks then it's your distro problem, but if you didn't install devel packages then you are bug :) FC11 had such bug (no needed symlinks, but devel packages installed) somewhere around beta 1.

I had at least gdk_pixbuf devel package installed but not many other devel packages. Actually only the library is needed for Lazarus compilation but the devel package adds some sym-links for them.
I have no energy to investigate this more. It works now.

Juha Manninen

Reply by email

waldo kitty
to Juha Manninen: I managed to compile it finally. I had to make the sym-links you mentioned and then some…
Juha Manninen wrote 11 lines
I managed to compile it finally. I had to make the sym-links you mentioned and then some more: ln -s libgobject-2.0.so.0 libgobject-2.0.so ln -s libglib-2.0.so.0 libglib-2.0.so ln -s libgthread-2.0.so.0 libgthread-2.0.so ln -s libgmodule-2.0.so.0 libgmodule-2.0.so ln -s libcairo.so.2 libcairo.so Someone should fix this issue. Is it a Mandrive / OpenSuse issue or FPC issue, I don't know?

i would say that it is a Mandrive / OpenSuse issue because most every other *nix out there doesn't have trailing numbers after the .so extention... at least not in my experience with some 10+ flavors over the last years...

yes, perhaps the FPC and/or Lazarus installer can determine the OS it is being installed on and it can create these links as necessary? that may require root access, though... some may not want to provide that... especially if it is an install for only one user...

Reply by email

Gustavo Enrique Jimenez
to waldo kitty: i would say that it is a Mandrive / OpenSuse issue because most every other *nix out…
Show quoted text 6 lines
yes, perhaps the FPC and/or Lazarus installer can determine the OS it is being installed on and it can create these links as necessary? that may require root access, though... some may not want to provide that... especially if it is an install for only one user...

I think this is not a good idea. Developers MUST take care of the system's internals. It should not be problem for a responsible developer (hey, it is just a devel package). On windows systems, developers tends to ignore fundamental principles. Unix, Linux, etc. requires some background. That is why unix-like systems are more reliable than windows systems: unix's developers know unix, windows developers don't know windows.

Gustavo

ps: excuse my english

Reply by email

Mattias Gaertner
to waldo kitty: i would say that it is a Mandrive / OpenSuse issue because most every other *nix out…
Show quoted text 21 lines
Juha Manninen wrote: > I managed to compile it finally. I had to make the sym-links you mentioned and > then some more: > > ln -s libgobject-2.0.so.0 libgobject-2.0.so > ln -s libglib-2.0.so.0 libglib-2.0.so > ln -s libgthread-2.0.so.0 libgthread-2.0.so > ln -s libgmodule-2.0.so.0 libgmodule-2.0.so > ln -s libcairo.so.2 libcairo.so > > Someone should fix this issue. Is it a Mandrive / OpenSuse issue or FPC issue, > I don't know? i would say that it is a Mandrive / OpenSuse issue because most every other *nix out there doesn't have trailing numbers after the .so extention... at least not in my experience with some 10+ flavors over the last years... yes, perhaps the FPC and/or Lazarus installer can determine the OS it is being installed on and it can create these links as necessary? that may require root access, though... some may not want to provide that... especially if it is an install for only one user...

Normally these links are setup by some devel packages. If these symlinks are created by the lazarus rpms these packages would conflict. If there is really no package under OpenSuSE/Mandriva that is responsible for the symlinks - which I doubt - then maybe we have to create special rpm packages for these distros.

Mattias

Reply by email

Mattias Gaertner
to Juha Manninen: Ok. After reading I still don't know how to get rid of the warning. Juha
Show quoted text 9 lines
On sunnuntai, 15. marraskuuta 2009 12:57:45 Mattias Gaertner wrote: > > What means warning: "../link.res contains output sections; did you forget > > -T?" > > See here: > http://lists.freepascal.org/lists/fpc-devel/2009-May/016828.html Ok. After reading I still don't know how to get rid of the warning.

It means: the warning is just a warning and the FPC devels will live with it. You can not get rid of it.

Mattias

Reply by email

Hans-Peter Diettrich
to Gustavo Enrique Jimenez: I think this is not a good idea. Developers MUST take care of the system's internals. It…
Show quoted text 7 lines
Developers MUST take care of the system's internals. It should not be problem for a responsible developer (hey, it is just a devel package). On windows systems, developers tends to ignore fundamental principles. Unix, Linux, etc. requires some background. That is why unix-like systems are more reliable than windows systems: unix's developers know unix, windows developers don't know windows.

Developers should care of their code, while system maintenance is the job of administrators. A system administrator may be available in a company, but not for a private (desktop) system. Thus a private system is as reliable as its user is, when it comes to system administration tasks.

DoDi

Reply by email

Luca Olivetti
to Mattias Gaertner: On Sun, 15 Nov 2009 15:46:57 -0500 Normally these links are setup by some devel packages.…

En/na Mattias Gaertner ha escrit:

Show quoted text 6 lines
Normally these links are setup by some devel packages. If these symlinks are created by the lazarus rpms these packages would conflict. If there is really no package under OpenSuSE/Mandriva that is responsible for the symlinks - which I doubt - then maybe we have to create special rpm packages for these distros.

Don't know about opensuse, but for mandriva, simply use

urpmf filename

to find the devel package that contains the link you're after and install it.

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007

Reply by email