Using FFTW (the fastest FFT) under Visual Studio 2013
来源:互联网 发布:刘弘章 知乎 编辑:程序博客网 时间:2024/05/29 23:48
Keywords:
FFTW (3.3.4Version), FFT, DFT, C/C++, Visual Studio 2013, Win7/Win8
Step 1. First visit ffte.org and download the version (32 or 64-bit) of your interest, for precompiled FFTW 3.3.4 windows dlls.
Here I would like to choose the 32bit version.See Fig 1. Then, extract the files in a target directory, say D:\FFTW32.
Fig 1. Precompiled FFTW 3.3.4 Windows DLLs
Step 2. You should be able to call those DLLs from your compiler. In order to link to them from Visual C++, you will need to create .lib"import libraries" using the Command Prompt program included with VC++.
You can achieve this objective through the following steps.
1) Open Visual Studio Command Prompt. See Fig 2.For Visual Studio 2013 in Windows8 or Windows 8.1
On the Start screen, type Visual Studio, and then choose Visual Studio Tools. (To access the Start screen, press the Windows logo key on your keyboard.)
In File Explorer, choose Developer Command Prompt for VS2013.
For Visual Studio (any version) in Windows 7
Choose Start, and then choose All Programs, Microsoft Visual Studio, Visual Studio Tools, Visual Studio Command Prompt.
Fig 2 Visual Studio 2013 Command Prompt in Windows 7
Fig 3 Change Current Directory to D:\FFTW32\fftw-3.3.4-dll32
3)Within VS2013 x86 Native Tools Command Prompt, Run the following commands. SeeFig 4 for results.
a) On Visual Studio 2008 in 32-bit mode, Run:
- lib/machine:ix86 /def:libfftw3-3.def
- lib/machine:ix86 /def:libfftw3f-3.def
- lib/machine:ix86 /def:libfftw3l-3.def
- lib/machine:x64 /def:libfftw3-3.def
- lib/machine:x64 /def:libfftw3f-3.def
- lib /machine:x64/def:libfftw3l-3.def
Fig 4 Results of Run VS2013 x86 Native Tools Command Prompt
Fig 5 Generated Files
Step 3. Thelast four steps, in Visual C++, are the following.
Now, open Visual Studio and:- Go to: Project -> Properties -> Configuration Properties ->VC++ Directories -> Include Directories, and then add the D:\FFTW32\fftw-3.3.4-dll32to the Include Directories;
- Go to: Project ->Properties -> Configuration Properties -> VC++ Directories -> LibraryDirectories, and then add the D:\FFTW32\fftw-3.3.4-dll32, to the Library Directories;
- Go to: Project ->Properties -> Configuration Properties -> VC++ Directories -> Linker-> Input, and then add the libfftw3-3.lib and/or libfftw3f-3.liband/or libfftw3l-3.libto the Additional Dependencies.
- Copy the three .dll FFTW files (Note: .dll files, NOT .lib files) into the folder of your project where.vcxproj and .vcxproj.filters are located.
Remember that FFTW can deal with floating point,double precision and long double numbers.The libfftw3f-3.lib library is for floating points, the libfftw3-3.libis for double precision and libfftw3l-3.lib is for long double.
Enjoy the Fastest Fourier Transform in the West (FFTW) in your IDE!
0 0
- Using FFTW (the fastest FFT) under Visual Studio 2013
- Compiling the OpenSSL under Windows 32 + Visual Studio 2010
- Using the Microsoft Visual Studio 2005 Debugger
- Visual Studio 2008下安装FFTW
- Installing FLTK 1.3.3 under Visual Studio Community 2013
- Using the JavaScript console in Visual Studio Code
- Debugging Windows Services under Visual Studio .NET
- Using GDB in Visual Studio
- using switch case block not just under the integral type
- Android C native development using the NDK under Windows
- Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio
- 基于FFTW的FFT和IFFT
- itk下FFTW的FFT和IFFT
- Refactoring C# Code Using Visual Studio 2005
- Some tips for using visual studio .net
- Using LINQ in Visual Studio 2005
- Remote debug using Visual Studio 2005
- Using Database Features in Visual Studio
- 编程中的命名设计那点事
- JDK1.5 泛型
- eclipse 增加cpp 语法高亮插件
- PHP 中获取文件名及路径
- 实例学习maven 项目构建 .
- Using FFTW (the fastest FFT) under Visual Studio 2013
- 青涩记忆
- 两个有序的数组,挑选出相同的元素
- cKermit 安装及配置
- {郎油帽着断展}更好吗口语化
- [LeetCode117]Unique Paths II
- ZOJ 3794 Greedy Driver 最短路
- 集线器 交换机 网桥 路由器的作用
- ZOJ 3791 An Easy Game DP