hyesu-jang / PhaRaO_gtsam

51 stars 5 forks source link

fftw3 compile error #2

Closed ayoungk closed 1 year ago

ayoungk commented 1 year ago

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] https://github.com/FFTW/fftw3/issues/130

pys0728k commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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/