> I had the next error when i treid to install Stage in my laptop:
>
> :~/Stage-3.0.0-Source$ make
> Linking CXX shared library libstage.so
> /usr/bin/ld: /usr/local/lib/libfltk_images.a(fl_images_core.o): =20
> relocation R_X86_64_32 against `a local symbol' can not be used when =20
> making a shared object; recompile with -fPIC
> /usr/local/lib/libfltk_images.a: could not read symbols: Bad value
> collect2: ld devolvi=F3 el estado de salida 1
> make[2]: *** [libstage/libstage.so.3.0.0] Error 1
> make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2
> make: *** [all] Error 2
>
> I release that there are a problem with a fltk library.
>
> Im quite desperate


If I recall correctly, this is a problem with linkage of shared libraries on 
AMD64 systems, or at least systems using the X86_64 ABI anyway.

The solution, as recommended in the error you got, is to re-link the shared 
libraries you are using, making them explicitly "PIC-enabled" by adding the 
flag '-fPIC' to the link command line.

An alternate approach, which I believe also works, is simply to avoid the 
shared library problem altogether and link statically...

Hope that helps,
--
Ian



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

Reply via email to