Sign in Join

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

Mailing lists / lazarus / 2003-10

problem with linking: gdk_pixbuf

9 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Joris Spriet

Hi,

I've downloaded lazarus from cvs, and did a make and it works fine; however, when I want to compile a
project, I get an error while linking saying ld cannot find gdk_pixbuf; which is kind of strange, as lazarus itself was built without any problem. There was a time when I had to build lazarus with
OPT=-dNoGdkPixBufLib, but I've upgraded my system
lately. The error is literaly:

/usr/bin/ld: cannot find -lgdk_pixbuf

Thanks for your time.

Joris Spriet

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

Reply by email

Joris Spriet
to Marc Weustink: How ? Is there any output on the console window ? Marc
Is there any output on the console window ?

Yes, this is what I get in the console window:

TOutputFilter: "Assembling project1"
TOutputFilter: "Linking
/home/joris/projects/project1/project1"
TOutputFilter: "/usr/bin/ld: cannot find -lgdk_pixbuf" TOutputFilter: "project1.lpr(15) Error: Error while linking"
TOutputFilter: "Closing script ppas.sh"
[TMainIDE.DoOpenMainUnit] A ProjectLoading=FALSE
MainUnitID=0

The funny this is, I can compile lazarus, but not a project; when I build lazarus WITH
OPT=-dNoGdkPixBufLib, it works, of course. Strange ? What "settings" should I check additionally ?

The compiler options are, according to the "Compiler options" dialog: -Rintel -S2cgi -CD -Ch8000000 -OG1p1 -gl -XD -vewnhi -l -Fu../lazarus/lcl/units/
-Fu../lazarus/lcl/units/gtk/
-Fu../lazarus/packager/units/ -Fu. -dLCL

I have no clue...

Joris Spriet

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

Reply by email

Marco van de Voort
to Joris Spriet: but I did that (version 0.18.0-223 to be precise); and now I can compile lazarus fine,…
Show quoted text 23 lines
--- Florian Klaempfl wrote: > Joris Spriet wrote: > > Hi, > > > > I've downloaded lazarus from cvs, and did a make > and > > it works fine; however, when I want to compile a > > project, I get an error while linking saying ld > cannot > > find gdk_pixbuf; which is kind of strange, as > lazarus > > itself was built without any problem. There was a > > time when I had to build lazarus with > > OPT=-dNoGdkPixBufLib, but I've upgraded my system > > lately. The error is literaly: > > > > /usr/bin/ld: cannot find -lgdk_pixbuf > > Install the developement package of of gdk_pixpuf. > but I did that (version 0.18.0-223 to be precise); and now I can compile lazarus fine, but lazarus will not let me compile a project...

Check your -Fl options.

When building lazarus, it uses -Fl data in fpc.cfg, while building _with_ lazarus it uses lazarus' library path?

Reply by email

Marco van de Voort
to Joris Spriet: Well, modified fpc.cfg -Fl options (added /opt/gnome/lib which contains gdk-pixbuf libs),…
Show quoted text 11 lines
> Check your -Fl options. > > When building lazarus, it uses -Fl data in fpc.cfg, > while building _with_ > lazarus it uses lazarus' library path? Well, modified fpc.cfg -Fl options (added /opt/gnome/lib which contains gdk-pixbuf libs), and now it works. Still can't figure out how I can build lazarus ide without this modification, while lazarus won't build my app...

I assume adding those paths to some library path inside lazarus.

Can you shed a light on this ? Does the order of installing (I installed gdk-pixbuf last, after installing fpc and trying to compile lazarus) have an influence ?

No. Those are all independant. If a package installs in a non default library, this library has to be added.

What about ld.conf.so ?

Very system dependant, in binary format. Maybe a future installer might want to decrypt it, (or search for the hints file somewhere in /var).

I see ld.so.conf as gcc configuration, and fpc.cfg as fpc comfiguration for this issue. If you want both compilers, you have to edit both(at least for now)

Anyhow, thanks for the help. Lazarus is great !

Reply by email

Marc Weustink
to Marc Weustink: How ? Is there any output on the console window ? Marc
Joris Spriet wrote 17 lines
> Is there any output on the console window ? Yes, this is what I get in the console window: TOutputFilter: "Assembling project1" TOutputFilter: "Linking /home/joris/projects/project1/project1" TOutputFilter: "/usr/bin/ld: cannot find -lgdk_pixbuf" TOutputFilter: "project1.lpr(15) Error: Error while linking" TOutputFilter: "Closing script ppas.sh" [TMainIDE.DoOpenMainUnit] A ProjectLoading=FALSE MainUnitID=0 The funny this is, I can compile lazarus, but not a project; when I build lazarus WITH OPT=-dNoGdkPixBufLib, it works, of course. Strange ?

EHm... Do you mean here that you can build Lazarus without OPT=-dNoGdkPixBufLib ?

What "settings" should I check additionally ?

If you can build (clean) and run lazarus without options, you should be able to build & run your project.

Show quoted text 5 lines
The compiler options are, according to the "Compiler options" dialog: -Rintel -S2cgi -CD -Ch8000000 -OG1p1 -gl -XD -vewnhi -l -Fu../lazarus/lcl/units/ -Fu../lazarus/lcl/units/gtk/ -Fu../lazarus/packager/units/ -Fu. -dLCL

What is the output of the "Test" button on the same "Compiler options" dialog

Marc

Reply by email

Joris Spriet
to Florian Klaempfl: Install the developement package of of gdk_pixpuf.
--- Florian Klaempfl wrote 19 lines
Joris Spriet wrote: > Hi, > > I've downloaded lazarus from cvs, and did a make and > it works fine; however, when I want to compile a > project, I get an error while linking saying ld cannot > find gdk_pixbuf; which is kind of strange, as lazarus > itself was built without any problem. There was a > time when I had to build lazarus with > OPT=-dNoGdkPixBufLib, but I've upgraded my system > lately. The error is literaly: > > /usr/bin/ld: cannot find -lgdk_pixbuf Install the developement package of of gdk_pixpuf.

but I did that (version 0.18.0-223 to be precise); and now I can compile lazarus fine, but lazarus will not let me compile a project...

Joris

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

Reply by email

Florian Klaempfl
to Joris Spriet: I've downloaded lazarus from cvs, and did a make and it works fine; however, when I want…
Joris Spriet wrote 12 lines
Hi, I've downloaded lazarus from cvs, and did a make and it works fine; however, when I want to compile a project, I get an error while linking saying ld cannot find gdk_pixbuf; which is kind of strange, as lazarus itself was built without any problem. There was a time when I had to build lazarus with OPT=-dNoGdkPixBufLib, but I've upgraded my system lately. The error is literaly: /usr/bin/ld: cannot find -lgdk_pixbuf

Install the developement package of of gdk_pixpuf.

Reply by email

Joris Spriet
to Marco van de Voort: Check your -Fl options. When building lazarus, it uses -Fl data in fpc.cfg, while…
Show quoted text 6 lines
Check your -Fl options. When building lazarus, it uses -Fl data in fpc.cfg, while building _with_ lazarus it uses lazarus' library path?

Well, modified fpc.cfg -Fl options (added
/opt/gnome/lib which contains gdk-pixbuf libs), and now it works. Still can't figure out how I can build lazarus ide without this modification, while lazarus won't build my app... Can you shed a light on this ? Does the order of installing (I installed gdk-pixbuf last, after installing fpc and trying to compile
lazarus) have an influence ? What about ld.conf.so ?

Anyhow, thanks for the help. Lazarus is great !

Joris Spriet.

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Reply by email