Compiling FFTW source in Visual studio

前端 未结 2 908
自闭症患者
自闭症患者 2021-01-20 08:42

Recently I am trying to compile the source code of FFTW in Visual studio 2010. I followed the instruction from the FFTW website. I downloaded the source code fftw-3.3.2.zip

2条回答
  •  终归单人心
    2021-01-20 09:22

    It seems that it can be solved without installing the Windows 7.1 SDK

    1. Right click on the 'libfftw-3.3' project and selected properties
    2. Go to Configuration Properties -> General
    3. Switch 'Platfrom Toolset' from 'Windows7.1SDK' to 'v100'
    4. Recompile

    Works for the projects 'libfftwf-3.3' and 'libfftw-3.3'

    The project 'bench' and 'benchf' are failing to build:

    fatal error C1083: Cannot open source file: '....\libbench2\aligned-main.c': No such file or directory

    Can be solved by removing the aligned-main.c from both projects.

    You can also use CMake - I created this CMake file for fftw-3.3.2 which I tested with Visual Studio 2010 x64: https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/CMakeLists.txt?at=default

    You also need this config.h file: https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/config.h?at=default

提交回复
热议问题