Adding those options when I ran the build script worked just fine, thank you so much!
Best, Emilio El miércoles, 20 de enero de 2016, 21:06:37 (UTC+1), Christoph Junghans escribió: > > 2016-01-20 12:40 GMT-07:00 Emilio Ruiz <[email protected] <javascript:>>: > > Ok, so I did that and the error was fixed, but now I get a different > one: > > > > -- checking for module 'libgromacs_d' > > -- package 'libgromacs_d' not found > > -- checking for module 'libgromacs' > > -- package 'libgromacs' not found > > CMake Error at > > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 > > (message): > > Could NOT find GROMACS (missing: GROMACS_LIBRARY GROMACS_INCLUDE_DIR > > GROMACS_VERSION) > > Call Stack (most recent call first): > > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 > > (_FPHSA_FAILURE_MESSAGE) > > CMakeModules/FindGROMACS.cmake:73 (find_package_handle_standard_args) > > CMakeLists.txt:82 (find_package) > > > > My first reaction was to try to install gromacs-dev with apt-get but the > > error persists. I find it confusing since I had previously installed > gromacs > > before I installed votca, so I tried to install gromacs again while > forcing > > it to be in double precision. When I run sudo make install this was part > of > > the output: > > > > -- Installing: > /usr/local/gromacs/lib/x86_64-linux-gnu/libgromacs_d.so.0.0.0 > > -- Installing: /usr/local/gromacs/lib/x86_64-linux-gnu/libgromacs_d.so.0 > > -- Installing: /usr/local/gromacs/lib/x86_64-linux-gnu/libgromacs_d.so > > -- Set runtime path of > > "/usr/local/gromacs/lib/x86_64-linux-gnu/libgromacs_d.so.0.0.0" to > > "$ORIGIN/../lib/x86_64-linux-gnu:/usr/local/lib" > > -- Installing: > > /usr/local/gromacs/lib/x86_64-linux-gnu/pkgconfig/libgromacs_d.pc > > > > Could it be one of these libraries? Maybe they are not placed in the > right > > directory or the names are wrong? > The path "/usr/local/gromacs/lib/x86_64-linux-gnu/" is a bit of an > uncommon location, and most likely pkg-config (which cmake is using) > wasn't able to find gromacs, running > $ pkg-config --libs libgromacs > should return something like: > "-I/paht/to/gromacs -lgromacs -lm -lfftw3f" > If that doesn't work for you, you can try to give pkg-config a hint by > exporting: > $ export PKG_CONFIG_PATH= /usr/local/gromacs/lib/x86_64-linux-gnu > > Alternatively you can add > -DGROMACS_LIBRARY=/usr/local/gromacs/lib/x86_64-linux-gnu/libgromacs_d.so > -DGROMACS_INCLUDE_DIR=/usr/local/gromacs/include to build.sh or cmake > command line. > > Christoph > > > > > Thanks again for your help, > > > > Emilio > > > > El miércoles, 20 de enero de 2016, 0:22:25 (UTC+1), Christoph Junghans > > escribió: > >> > >> 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > 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.
