greatscottgadgets / hackrf

low cost software radio platform
https://greatscottgadgets.com/hackrf/
GNU General Public License v2.0
6.44k stars 1.51k forks source link

Cmake is unable to find FFTW on cygwin #977

Closed Anjum9694 closed 2 years ago

Anjum9694 commented 2 years ago

Steps to reproduce

1.cd host/build 2.cmake ../ -G "Unix Makefiles" -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/ 3.

Expected behaviour

Actual behaviour

I have installed fftw3 on cygwin setup but it's still failing

Version information

Operating system: Windows 10 building on Cygwin

hackrf_info output:

If you are reporting a problem that involves third party software (GNU Radio, Gqrx, etc), please report the version here.

Output

$ cmake ../ -G "Unix Makefiles" -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Defining WIN32 under Cygwin due to CMAKE_LEGACY_CYGWIN_WIN32
CMake Deprecation Warning at libhackrf/CMakeLists.txt:24 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at hackrf-tools/CMakeLists.txt:24 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Error at /usr/share/cmake-3.20.0/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find FFTW (missing: FFTW_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.20.0/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindFFTW.cmake:28 (find_package_handle_standard_args)
  hackrf-tools/src/CMakeLists.txt:26 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/Anjum/hackrf-2021.03.1/host/build/CMakeFiles/CMakeOutput.log".
See also "/home/Anjum/hackrf-2021.03.1/host/build/CMakeFiles/CMakeError.log".
miek commented 2 years ago

Have you installed the libfftw3-devel package too?

Anjum9694 commented 2 years ago

Have you installed the libfftw3-devel package too?

Yes but same result

Anjum9694 commented 2 years ago

Screenshot_1

Anjum9694 commented 2 years ago

971

straithe commented 2 years ago

Good catch! Have you tried updating from source?

Anjum9694 commented 2 years ago

Steps taken:

curl -L http://www.fftw.org/fftw-3.3.9.tar.gz | tar xz
./configure
make
make install

Still the hackrf cmake outputs Could NOT find FFTW (missing: FFTW_LIBRARIES)

straithe commented 2 years ago

Sorry, I meant to say, have you tried updating your HackRF firmware from the GitHub repository?

Anjum9694 commented 2 years ago

I was able to update the firmware of my hackrf itself through linux, it was pretty easy. I'm trying to compile the source to use hackrf_tools executables on windows.

Edit: Temporary workaround: cmake ../ -G "Unix Makefiles" -DCMAKE_LEGACY_CYGWIN_WIN32= -DFFTW_LIBRARY=/lib/

straithe commented 2 years ago

Thank you for the update!