On 02.11.2010, at 21:26, Darren wrote in fltk.bugs:

[reply posted to fltk.general]

> I am building fltk-1.1.10 with shared libraries enabled so it links properly 
> with InsightApplications. The build works find and fluid runs fine as long as 
> it is in the build/bin directory.

Okay so far, although we do not recommend using the fltk shared
libraries for better redistribution. YMMV

> However, once it is installed into /usr/local/bin it complains:
>
> fluid: error while loading shared libraries: libfltk.so.10: cannot open 
> shared object file: No such file or directory
>
> Unfortunately I cannot tell where fluid is looking but libfltk.so.10 is in 
> /usr/local/lib.

What does "ldd fluid" show?

This is probably a standard linux problem with shared libraries.
I don't know the default search path for RedHat Linux, but I assume
that /usr/local/lib is not included.

You could try to set or extend LD_LIBRARY_PATH, but that's only
for your current shell. Something like:

echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

(bash-like shell assumed).

> I am using ccmake to build fltk-1.1.10.

CMake is not officially supported and may not work as expected.
You'd better try to use the supported configure/make/make install
approach (although it may work for you).

> The system is RedHat Enterprise Linux 5.4, 64 bit.
> The CMAKE_INSTALL_PREFIX is /usr/local.
>
> fltk-config -libs output is ./lib/libfltk.a  (This is probably the problem, 
> but I'm not sure how to fix it.)

That's probably not the problem. The output looks like you called
fltk-config locally in the fltk build directory. fltk-config will
show different output when called from the installed directory,
but this is not used when *running* fluid, thus it shouldn't
matter here.


Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to