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

Compile issue on Debian 11 #25

Open
improvethings opened this issue Jan 13, 2023 · 8 comments
Open

Compile issue on Debian 11 #25

improvethings opened this issue Jan 13, 2023 · 8 comments

Comments

@improvethings
Copy link

[ 94%] Building CXX object tests/CMakeFiles/keyfinder-tests.dir/windowfunctiontest.cpp.o
[ 97%] Building CXX object tests/CMakeFiles/keyfinder-tests.dir/workspacetest.cpp.o
[100%] Linking CXX executable keyfinder-tests
/usr/bin/ld: ../libkeyfinder.so.2.2.7: undefined reference to fftw_execute' /usr/bin/ld: ../libkeyfinder.so.2.2.7: undefined reference to fftw_plan_dft_r2c_1d'
/usr/bin/ld: ../libkeyfinder.so.2.2.7: undefined reference to `fftw_plan_dft_c2r_1d'
collect2: error: ld returned 1 exit status
gmake[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/build.make:375: tests/keyfinder-tests] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:946: tests/CMakeFiles/keyfinder-tests.dir/all] Error 2
gmake: *** [Makefile:160: all] Error 2

$ dpkg -l | grep fftw
ii fftw-dev 2.1.5-4.2+b1 amd64 library for computing Fast Fourier Transforms
ii fftw2 2.1.5-4.2+b1 amd64 library for computing Fast Fourier Transforms
ii libfftw3-bin 3.3.8-2 amd64 Library for computing Fast Fourier Transforms - Tools
ii libfftw3-dev:amd64 3.3.8-2 amd64 Library for computing Fast Fourier Transforms - development
ii libfftw3-double3:amd64 3.3.8-2 amd64 Library for computing Fast Fourier Transforms - Double precision
ii libfftw3-long3:amd64 3.3.8-2 amd64 Library for computing Fast Fourier Transforms - Long precision
ii libfftw3-quad3:amd64 3.3.8-2 amd64 Library for computing Fast Fourier Transforms - Quad precision
ii libfftw3-single3:amd64 3.3.8-2 amd64 Library for computing Fast Fourier Transforms - Single precision

@daschuer
Copy link
Member

No idea. Is this issue still pending?

@improvethings
Copy link
Author

yes, I still have not resolved.

@daschuer
Copy link
Member

Please share the complete console output. With VERBOSE=1

@kikoucalou
Copy link

Error look probably similar on linux mint 22 :

libKeyFinder/build/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/keyfinder-tests.dir/link.txt --verbose=1
/usr/bin/c++ "CMakeFiles/keyfinder-tests.dir/_testhelpers.cpp.o" "CMakeFiles/keyfinder-tests.dir/audiodatatest.cpp.o" "CMakeFiles/keyfinder-tests.dir/binodetest.cpp.o" "CMakeFiles/keyfinder-tests.dir/chromagramtest.cpp.o" "CMakeFiles/keyfinder-tests.dir/chromatransformtest.cpp.o" "CMakeFiles/keyfinder-tests.dir/chromatransformfactorytest.cpp.o" "CMakeFiles/keyfinder-tests.dir/constantstest.cpp.o" "CMakeFiles/keyfinder-tests.dir/downsamplershortcuttest.cpp.o" "CMakeFiles/keyfinder-tests.dir/fftadaptertest.cpp.o" "CMakeFiles/keyfinder-tests.dir/keyclassifiertest.cpp.o" "CMakeFiles/keyfinder-tests.dir/keyfindertest.cpp.o" "CMakeFiles/keyfinder-tests.dir/lowpassfiltertest.cpp.o" "CMakeFiles/keyfinder-tests.dir/lowpassfilterfactorytest.cpp.o" "CMakeFiles/keyfinder-tests.dir/spectrumanalysertest.cpp.o" "CMakeFiles/keyfinder-tests.dir/temporalwindowfactorytest.cpp.o" "CMakeFiles/keyfinder-tests.dir/toneprofilestest.cpp.o" "CMakeFiles/keyfinder-tests.dir/windowfunctiontest.cpp.o" "CMakeFiles/keyfinder-tests.dir/workspacetest.cpp.o" -o keyfinder-tests -Wl,-rpath,/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/mixxx/libKeyFinder/build ../libkeyfinder.so.2.2.8 /usr/lib/libCatch2Main.a /usr/lib/libfftw.so /usr/lib/libCatch2.a
/usr/bin/ld : ../libkeyfinder.so.2.2.8 : référence indéfinie vers « fftw_execute »
/usr/bin/ld : ../libkeyfinder.so.2.2.8 : référence indéfinie vers « fftw_plan_dft_r2c_1d »
/usr/bin/ld : ../libkeyfinder.so.2.2.8 : référence indéfinie vers « fftw_plan_dft_c2r_1d »
collect2: error: ld returned 1 exit status
gmake[2]: *** [tests/CMakeFiles/keyfinder-tests.dir/build.make:373 : tests/keyfinder-tests] Erreur 1
gmake[2] : on quitte le répertoire « /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/mixxx/libKeyFinder/build »
gmake[1]: *** [CMakeFiles/Makefile2:882 : tests/CMakeFiles/keyfinder-tests.dir/all] Erreur 2
gmake[1] : on quitte le répertoire « /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/mixxx/libKeyFinder/build »
gmake: *** [Makefile:146 : all] Erreur 2

@kikoucalou
Copy link

dpkg -l | grep fftw
ii cl-fftw3 1.0.2-1 all Common Lisp package for using the FFTW3 library
ii fftw-dev 2.1.5-6build2 amd64 library for computing Fast Fourier Transforms
ii fftw2 2.1.5-6build2 amd64 library for computing Fast Fourier Transforms
ii libfftw3-bin 3.3.10-1ubuntu3 amd64 Library for computing Fast Fourier Transforms - Tools
ii libfftw3-dev:amd64 3.3.10-1ubuntu3 amd64 Library for computing Fast Fourier Transforms - development
ii libfftw3-double3:amd64 3.3.10-1ubuntu3 amd64 Library for computing Fast Fourier Transforms - Double precision
ii libfftw3-long3:amd64 3.3.10-1ubuntu3 amd64 Library for computing Fast Fourier Transforms - Long precision
ii libfftw3-mpi-dev:amd64 3.3.10-1ubuntu3 amd64 MPI Library for computing Fast Fourier Transforms - development
ii libfftw3-mpi3:amd64 3.3.10-1ubuntu3 amd64 MPI Library for computing Fast Fourier Transforms
ii libfftw3-quad3:amd64 3.3.10-1ubuntu3 amd64 Library for computing Fast Fourier Transforms - Quad precision
ii libfftw3-single3:amd64 3.3.10-1ubuntu3 amd64 Library for computing Fast Fourier Transforms - Single precision
ii python3-pyfftw 0.13.1-2build1 amd64 Pythonic wrapper around FFTW - Python 3

@daschuer
Copy link
Member

You link to "/usr/lib/libfftw.so" but you need to link to "/usr/lib/libfftw3.so" maybe removing fftw-dev does the trick.

@daschuer
Copy link
Member

A fix is here: #34

@kikoucalou
Copy link

Effectively removing completly fftw-dev and fftw2 does the trick.
It build and run nicely now on Linux mint 22.

Thanks

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

3 participants