Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fftw3 compile error #2

Closed
ayoungk opened this issue Aug 2, 2023 · 3 comments
Closed

fftw3 compile error #2

ayoungk opened this issue Aug 2, 2023 · 3 comments

Comments

@ayoungk
Copy link
Collaborator

ayoungk commented Aug 2, 2023

CMake Error at /usr/local/lib/cmake/fftw3/FFTW3Config.cmake:13 (include):
include could not find load file:

/usr/local/lib/cmake/fftw3/FFTW3LibraryDepends.cmake

This is because "FFTW3LibraryDepends.cmake" is missing. This is known issue from the community.
[REF] FFTW/fftw3#130

@pys0728k
Copy link
Collaborator

pys0728k commented Aug 3, 2023

When linking error is occured, compile and install "fftw3" once again using next commands:

$ ./configure --enable-shared --enable-threads --enable-float
$ make
$ sudo make install

for shared library : --enable-shared
for "-lfftw3f" : --enable-float
for "-lfftw3_threads" : --enable-threads

You can check other flags at "10 Installation and Customization" in fftw3 manual.

@ayoungk
Copy link
Collaborator Author

ayoungk commented Aug 3, 2023

Install fftw3 using the following command

After unzipping 'fftw-3.3.10.tar.gz' in the third-party folder, do the following to install

$ cmake .
$ ./configure --enable-shared --enable-threads --enable-float
$ make
$ sudo make install
$ sudo cp FFTW3LibraryDepends.cmake /usr/local/lib/cmake/fftw3/

@ayoungk ayoungk closed this as completed Aug 3, 2023
@ayoungk
Copy link
Collaborator Author

ayoungk commented Aug 18, 2023

You need to install both float and non-float option.

$ cmake .
$ ./configure --enable-shared --enable-threads
$ make
$ sudo make install

Check /usr/local/lib/cmake and if FFTW3Config.cmake exist. If yes, install float option once more.

$ cmake .
$ ./configure --enable-shared --enable-threads --enable-float
$ make
$ sudo make install

Check /usr/local/lib/cmake and if FFTW3fConfig.cmake exist.

Check /usr/local/lib/cmake and if FFTW3LibraryDepends.cmake exist. If not, run below to copy the file manually.

$ sudo cp FFTW3LibraryDepends.cmake /usr/local/lib/cmake/fftw3/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants