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 linking problem #9

Open
apc518 opened this issue Mar 25, 2022 · 1 comment
Open

FFTW3 linking problem #9

apc518 opened this issue Mar 25, 2022 · 1 comment

Comments

@apc518
Copy link

apc518 commented Mar 25, 2022

Same error as in this issue from the nfft library. I'm getting this error after running make in the repo:
/usr/bin/ld: /usr/local/lib/libfftw3f.a(assert.o): relocation R_X86_64_PC32 against symbol `stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC

The issue linked above said to recompile fftw3 with --enable-shared, so I did, but that did not change anything.

I compiled fftw3 with

./configure --enable-shared --enable-float
make
make install

then went back to talentedhack and tried make again. The output of make install said that the library was installed at /usr/local/lib, and I made sure to pass in /usr/local/lib/pkgconfig as the PKG_CONFIG_PATH environment variable to make for TalentedHack.

Any idea how I can resolve this?

@jeremysalwen
Copy link
Owner

Have you tried using prebuilt FFTW libraries from your package manager? have you tried https://stackoverflow.com/questions/45321342/how-to-build-fftw-in-ubuntu?

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