2016-01-19 16:09 GMT-07:00 Emilio Ruiz <[email protected]>: > Hi everyone, > > I'm trying to install VOTCA but when I run the build script I get the > following error: > > [ 93%] Building CXX object > src/libtools/CMakeFiles/votca_tools.dir/linalg/gsl/cholesky.cc.o > Linking CXX shared library libvotca_tools.so > /usr/bin/ld: /usr/local/lib/libfftw3.a(mapflags.o): relocation R_X86_64_32 > against `.rodata' can not be used when making a shared object; recompile > with -fPIC > /usr/local/lib/libfftw3.a: error adding symbols: Bad value > collect2: error: ld returned 1 exit status > make[2]: *** [src/libtools/libvotca_tools.so.4] Error 1 > make[1]: *** [src/libtools/CMakeFiles/votca_tools.dir/all] Error 2 > make: *** [all] Error 2 > > I have attached cmake's log files (the ones in tools/ and the ones in csg/, > I'm not sure which ones have the right information here). I guess the > problem comes from fftw, but when I installed it there was no problem...Am I > doing something wrong? Maybe there is something missing? I went over the > list of dependencies in the github wiki but I think I have everything > installed. You need to configure/build fftw with --enable-double --enable-shared, see <https://github.com/votca/csg/wiki/Dependencies> Also if you are able to install in /usr/local, it might be easier to install fftw via your distribution's package manager. In general, static libraries (.a files) are a bit hairy to work with in cmake.
Cheers, Christoph > > Thanks in advance, > > Emilio > > -- > You received this message because you are subscribed to the Google Groups > "votca" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/votca. > For more options, visit https://groups.google.com/d/optout. -- Christoph Junghans Web: http://www.compphys.de -- You received this message because you are subscribed to the Google Groups "votca" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/votca. For more options, visit https://groups.google.com/d/optout.
