[gmx-developers] Minor CMAKE/fftw3 problem VS2010 x64 - finally solved

Roland Schulz roland at utk.edu
Tue Feb 28 01:34:36 CET 2012


On Mon, Feb 27, 2012 at 7:17 PM, Mirco Wahab <
mirco.wahab at chemie.tu-freiberg.de> wrote:

> Am 28.02.2012 00:58, schrieb Roland Schulz:
> > I know almost nothing about Windows DLL linking. So I don't quite
> > understand what your saying and assume you're right. But somehow I got
> > it working without this FFTW_DLL. See here:
> >
> http://jenkins.gromacs.org/job/Gromacs_Gerrit_4_6/405/OPTIONS=Compiler=msvc%20CompilerVersion=2010%20host=bs_Win7_64,label=bs_Win7_64/consoleFull
> > Thus I'm confused why you need it.
>
> Yes, this seems to work. But does anybody know where
> this very fftw3f lib comes from? Is the library a dll
> compiled with VS2010? Or mingw64-compiled and
> converted afterwards?
>
> The out-of-the-box header file [fftw3.h] states:
>    ...
>    71 /* IMPORTANT: for Windows compilers, you should add a line
>    72 */
>    73 #define FFTW_DLL
>    74 /*
>    75    here and in kernel/ifftw.h if you are compiling/using FFTW as a
>    76    DLL, in order to do the proper importing/exporting, or
>    77    alternatively compile with -DFFTW_DLL or the equivalent
>    78    command-line flag. This is not necessary under MinGW/Cygwin, where
>    79    libtool does the imports/exports automatically. */
>    ...
>
>
> I had once a mingw-fftw3 - but it was slow and I didn't manage
> to get it multithreaded, so I tried a native build (works faster).
>

OK. That explains it. I took the fftw precompiled from
http://www.fftw.org/install/windows.html and it has the #define FFTW_DLL
not commented out.

Roland


>
> Thanks and regards
>
> M.
>
> --
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
>
>
>
>
>


-- 
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20120227/3f84bc06/attachment.html>


More information about the gromacs.org_gmx-developers mailing list