Re: [Evolution-hackers] libcamel problems



With the older versions of camel that install the libraries in an
evolution-specific directory, you have to either manually specify the
run-path to the linker, or use LD_LIBRARY_PATH.

For linking with gcc, you do something like

-Wl,-R/usr/lib64/evolution/2.0

Or just specify the full path to the .so file instead of using -lcamel.

For LD_LIBRARY_PATH you add something like

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/evolution/2.0

Basically the pkgconfig file isn't really correct, and camel wasn't
intended to be used outside of evolution (hence the private directory).

2.2 or newer installs it in /usr/lib*/ directly (although the pkgconfig
files may still be broken).

 Michael

On Wed, 2005-09-21 at 16:26 -0400, ethan zimmerman wrote:
> Hello I am new to this list. I've checked the list archives and done
> some googling but to no avail so I'm turning to you guys.
> 
> I'm trying to learn how to use libcamel (initially for MIME parsing)
> but I'm having compiling/linking problems. Here is my Hello World
> program (taken from the wiki). I'm not sure if I should attach it or
> cut and paste or what so here's a link to it...
> 
> http://ethanzimmerman.com/camel/camel_hello_world.c
> 
> This is what happens when I go to build it...
> 
> gcc `pkg-config --libs --cflags camel-2.0` -o camel_hello_world
> camel_hello_world.c
> ./camel_hello_world
> ./camel_hello_world: error while loading shared libraries:
> libcamel.so.0: cannot open shared object file: No such file or
> directory
> 
> but libcamel.so.0 exists in /usr/lib64/evolution/2.0 (it's a symlink
> to libcamel.so.0.0.0)
> 
> I am running Fedora Core 3 on (dual) amd64.
> 
> I don't know where to start looking for answers so any help would
> be ...uhm, helpfull.
> 
> Thank You
> -ethan
> 
> _______________________________________________
> Evolution-hackers mailing list
> Evolution-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers
-- 
adfa(evolution-2.4:20087): gtkhtml-WARNING **: cannot find icon:
'stock_insert-url' in gnome 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]