BTW: Wouldn&#39;t it be better if one could specify the name of the library (e.g. fftw3f) and the folder as with -L and -l then the actually file?<div>I made the same mistake as Justin under Windows and tried to compile it with libfftw3f.dll instead of libfftw3f.lib. If the user doesn&#39;t have to specify the file ending those mistakes can&#39;t happen.</div>

<div><br></div><div>Roland<br><br><div class="gmail_quote">On Thu, Sep 2, 2010 at 4:32 PM, Rossen Apostolov <span dir="ltr">&lt;<a href="mailto:rossen.apostolov@cbr.su.se">rossen.apostolov@cbr.su.se</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Actually, I just noticed that even if you want static builds, the
    FindFFTW3*.cmake modules insist on linking against the dynamic *.so
    libraries. But you can force it with a -D option or modify
    CMakeCache.txt. (filed bug 541)<br><font color="#888888">
    <br>
    Rossen</font><div><div></div><div class="h5"><br>
    <br>
    On 09/02/2010 10:22 PM, Rossen Apostolov wrote:
    <blockquote type="cite">
      
      Hi again,<br>
      <br>
      Forgot to say: if you want static, you have to link against
      libXXXX.a., *.la are libtool archives.<br>
      <br>
      Rossen<br>
      <br>
      On 09/02/2010 08:23 PM, Justin A. Lemkul wrote:
      <blockquote type="cite">So I
        (after some additional trial-and-error) tried CMake: <br>
        <br>
        cmake ../gromacs-4.5.1
        -DFFTW3F_LIBRARIES=/apps/packages/FFTW32-3.0.1/lib/<a href="http://libfftw3f.la" target="_blank">libfftw3f.la</a>
        -DFFTW3F_INCLUDE_DIR=<i><span>/</span>apps/packages/FFTW32-3.0.1/include<span>/</span></i>
        -DCMAKE_INSTALL_PREFIX=/home/rdiv1001/gromacs-4.5.1_cmake-linux
        –DGMX_BINARY_SUFFIX=_4.5.1_s –DGMX_THREADS=OFF –DGMX_X11=OFF
        –DCMAKE_CXX_COMPILER=/apps/local/packages/gcc-4.2.2/bin/g++
        -DCMAKE_C_COMPILER=/apps/local/packages/gcc-4.2.2/bin/gcc <br>
        <br>
        The code begins compiling, but then exits with: <br>
        <br>
        Linking C shared library libmd.so <br>
        /apps/packages/FFTW32-3.0.1/lib/<a href="http://libfftw3f.la" target="_blank">libfftw3f.la</a>: file not
        recognized: File format not recognized <br>
        collect2: ld returned 1 exit status <br>
        make[2]: *** [src/mdlib/libmd.so.6] Error 1 <br>
        make[1]: *** [src/mdlib/CMakeFiles/md.dir/all] Error 2 <br>
        make: *** [all] Error 2 <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br></blockquote></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>

865-241-1537, ORNL PO BOX 2008 MS6309<br>
</div>