[OpenWalnut-Dev] OpenWalnut and pre installed NIfTI library

Sebastian Eichelbaum eichelbaum at informatik.uni-leipzig.de
Mon Jul 4 11:48:57 CEST 2011


Hi

This seems to link the static libniftio. (the .a file). Do you have an libniftio.so in /usr/local/lib? 

Greetings
Sebastian

On Fri, 01 Jul 2011, Alexander Wiebel wrote:

> Hi,
> I just wanted to let you know that I had the following problem when
> compiling the current OpenWalnut:
> 
> I have a FSL installed in my system path. With it comes the
> niftilib, or at least I believe that the niftilib I have in my
> system path comes from FSL.
> 
> When compiling OpenWalnut I got the following error:
> 
> Linking CXX shared library ../lib/libopenwalnut.so
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
> /usr/local/lib/libniftiio.a(nifti1_io.o): relocation R_X86_64_32S
> against `.data' can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libniftiio.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> 
> I was able to fix this by clearing all nifti relevant variables in
> ccmake. This made the build the system think there was no
> preinstalled niftilib, and compile and use the one it brings itself.
> 
> This is OK for me, one just have to know it. So I wanted to share it
> with you.
> 
> Cheers,
> Alex
> 
> _______________________________________________
> OpenWalnut-Dev mailing list
> OpenWalnut-Dev at lists.informatik.uni-leipzig.de
> http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
> 

-- 
Dipl.-Inf. Sebastian Eichelbaum
Universität Leipzig
Institut für Informatik
Abteilung Bild- und Signalverarbeitung
PF 100920
D-04009 Leipzig


More information about the OpenWalnut-Dev mailing list