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

Fedora 31, ffwtw3f_threads...linking issue #1

Open
fkoehleriv opened this issue May 29, 2020 · 0 comments
Open

Fedora 31, ffwtw3f_threads...linking issue #1

fkoehleriv opened this issue May 29, 2020 · 0 comments

Comments

@fkoehleriv
Copy link

fkoehleriv commented May 29, 2020

On a stock install of Fedora 31 x86_64, found a problem during linking:

[ 26%] Linking CXX executable materialise
/usr/bin/ld: cannot find -lfftw3f_threads
/usr/bin/ld: cannot find -lfftw3f_threads
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/materialise.dir/build.make:294: materialise] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/materialise.dir/all] Error 2

I edited the CMakeLists.txt to help ldd find this library for linking. I haven't worked with cmake before, so there's likely a more elegant (correct) way to fix this then what I came up with quickly:

diff CMakeLists.txt CMakeLists.txt.orig 
111c111
<       link_libraries(libfftw3f_threads.so.3 fftw3f)
---
>       link_libraries(fftw3f_threads.a fftw3f)
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

1 participant