2011/6/24 Nikos Bentenitis <bente...@southwestern.edu>:
> Thank you for the fix, Christoph. I was able to install the tools but
> I am now stuck with csg. I think this is probable due to a mistake I
> made with the command line. Can you review it, along with a fragment
> of the output from CMakeError.log and tell me what you think?
That is problem of library loader, it can not find gsl and so on.

You can either add the directories, where all the libraries are, to
LD_LIBRARY_PATH, e.g.
export  
LD_LIBRARY_PATH=$HOME/programs/fftw-3.2.1/lib:$HOME/programs/gsl-1.0/lib:.....
or build everything statically, (which maybe lead to other problems)
-DBUILD_SHARED_LIBS=OFF

Cheers,

Christoph

>
> Thanks!
>
> ./build.sh --prefix $HOME/programs/votca-1.2
> -DGSL_INCLUDE_DIR=$HOME/programs/gsl-1.0/include
> -DGSL_LIBRARY=$HOME/programs/gsl-1.0/lib/libgsl.so
> -DCBLAS_LIBRARY=$HOME/programs/gsl-1.0/lib/libgslcblas.so
> -DFFTW3_INCLUDE_DIR=$HOME/programs/fftw-3.2.1/include
> -DFFTW3_LIBRARY=$HOME/programs/fftw-3.2.1/lib/libfftw3.so
> -DGMX_INCLUDE_DIR=$HOME/programs/gromacs-4.5.3/include
> -DGMX_LIBRARY=$HOME/programs/gromacs-4.5.3/lib
> -DVOTCA_TOOLS_LIBRARY='$HOME/programs/votca-1.2/lib/libvotca_tools.so;$HOME/programs/gsl-1.0/lib/libgsl.so;$HOME/programs/gsl-1.0/lib/libgslcblas.so.0;/usr/lib64/libm.so;$HOME/programs/fftw-3.2.1/lib/libfftw3.so'
> -DEXTERNAL_BOOST=OFF -DWITH_SQLITE3=OFF csg
>
> Fragment of CMakeError.log
>
> /usr/bin/ld: warning: libgsl.so.0, needed by
> /home/bentenin/programs/votca-1.1.2/lib/libvotca_tools.so, not found
> (try using -rpath or -rpath-link)
> /usr/bin/ld: warning: libgslcblas.so.0, needed by
> /home/bentenin/programs/votca-1.1.2/lib/libvotca_tools.so, not found
> (try using -rpath or -rpath-link)
> /usr/bin/ld: warning: libfftw3.so.3, needed by
> /home/bentenin/programs/votca-1.1.2/lib/libvotca_tools.so, not found
> (try using -rpath or -rpath-link)
>
>
>
> On Fri, Jun 24, 2011 at 2:55 PM, Christoph Junghans
> <jungh...@mpip-mainz.mpg.de> wrote:
>> 2011/6/24 Nikos Bentenitis <bente...@southwestern.edu>:
>>> This is a followup to my last question: I found out that there is an
>>> option to exclude sqlite3, and I used it as in the following command.
>>> However, I now get a new problem with fftw. Could you please take a
>>> look?
>> There is just a typo in -DFFTW3_LIBRARY, it must be
>>  -DFFTW3_LIBRARY=$HOME/programs/fftw-3.2.1d/lib/libfftw3.so
>> mind the 'libfftw3.so' at the end. In case you have only a static
>> version of fftw, it should be
>>  -DFFTW3_LIBRARY=$HOME/programs/fftw-3.2.1d/lib/libfftw3.a
>>
>> Cheers,
>>
>> Christoph
>>>
>>> Input:
>>> ./build.sh --prefix /home/bentenin/programs/votca-1.1.2
>>> -DGSL_INCLUDE_DIR=$HOME/programs/gsl-1.0/include
>>> -DGSL_LIBRARY=$HOME/programs/gsl-1.0/lib/libgsl.so
>>> -DCBLAS_LIBRARY=$HOME/programs/gsl-1.0/lib/libgslcblas.so
>>> -DFFTW3_INCLUDE_DIR=$HOME/programs/fftw-3.2.1d/include
>>> -DFFTW3_LIBRARY=$HOME/programs/fftw-3.2.1d/lib
>>> -DGMX_INCLUDE_DIR=$HOME/programs/gromacs-4.5.3/include
>>> -DGMX_LIBRARY=$HOME/programs/gromacs-4.5.3/lib
>>> -DEXTERNAL_BOOST=OFF -DWITH_SQLITE3=OFF tools
>>>
>>> Output:
>>> libvotca_tools.so.2: undefined reference to `fftw_plan_dft_r2c_1d'
>>> libvotca_tools.so.2: undefined reference to `fftw_plan_r2r_1d'
>>> libvotca_tools.so.2: undefined reference to `fftw_plan_dft_c2r_1d'
>>> libvotca_tools.so.2: undefined reference to `fftw_execute'
>>> libvotca_tools.so.2: undefined reference to `fftw_destroy_plan'
>>> libvotca_tools.so.2: undefined reference to `fftw_free'
>>> libvotca_tools.so.2: undefined reference to `fftw_malloc'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [src/libtools/linktest] Error 1
>>> make[1]: *** [src/libtools/CMakeFiles/linktest.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> --
>>> This email was Anti Virus checked by Astaro Security Gateway. 
>>> http://www.astaro.com
>>>
>>
>>
>>
>> --
>> Dr. Christoph Junghans
>> Max Planck Institute for Polymer Research
>> Theory Group
>> POBox 3148
>> D 55021 Mainz, Germany
>>
>> Phone: +49 6131 379 335
>> Web: http://www.mpip-mainz.mpg.de/~junghans
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "votca" group.
> To post to this group, send email to votca@googlegroups.com.
> To unsubscribe from this group, send email to 
> votca+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/votca?hl=en.
>
>



-- 
Dr. Christoph Junghans
Votca Core Developer

Web: http://www.votca.org

-- 
You received this message because you are subscribed to the Google Groups 
"votca" group.
To post to this group, send email to votca@googlegroups.com.
To unsubscribe from this group, send email to 
votca+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/votca?hl=en.

Reply via email to