Compiling an FFTW Source in Visual Studio

Recently, I am trying to compile FFTW source code in Visual Studio 2010. I followed the instructions from the FFTW website. I downloaded the source code fftw-3.3.2.zip and the corresponding package vs 2010 fftw-3.3-libs-visual-studio-2010.zip.

  • I got four projects from the solution, bench, benchf, libfftw-3.3, libfftwf-3.3

But when compiling, I received the following errors for each of the projects: C: \ Program Files (x86) \ MSBuild \ Microsoft.Cpp \ v4.0 \ Platforms \ x64 \ Microsoft.Cpp.x64.Targets (514.5): error MSB8008 : The installed platform toolkit (Windows7.1SDK) is not installed or is invalid. Ensure that the supported PlatformToolset value is selected. which indicates the following content   

I tried the debug / release build for x64 and win32, none of them worked.

Can someone help me with this?

+3
source share
2 answers

It looks like you need to install the Windows 7.1 SDK, if you have already installed it, try reinstalling it if it is damaged.

You can download the 7.1 SDK from http://www.microsoft.com/en-us/download/details.aspx?id=8279

0
source

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

  • Right-click the "libfftw-3.3" project and selected properties
  • Go to Configuration Properties -> General
  • Switch 'Platfrom Toolset' from 'Windows7.1SDK' to 'v100'
  • Recompiled

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

"bench" "benchf" :

C1083: : '....\libbench2\aligned-main.c':

, aligned-main.c .

CMake - CMake fftw-3.3.2, Visual Studio 2010 x64: https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/CMakeLists.txt?at=default

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

+9

Source: https://habr.com/ru/post/1743121/


All Articles