SoapyRTLSDR icon indicating copy to clipboard operation
SoapyRTLSDR copied to clipboard

How to build on Windows using cmake?

Open eabase opened this issue 10 months ago • 22 comments

Trying to build on Windows:

# cmake -S .. -B . -Ax64 -Wno-dev -Wno-deprecated --fresh --install-prefix 'C:\Program Files\SoapyRTLSDR' -DCMAKE_BUILD_TYPE=Release | Tee-object -Append $XXLOG

-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
-- The CXX compiler identification is MSVC 19.43.34808.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at CMakeLists.txt:16 (message):
  RTL-SDR development files not found...

-- Could NOT find RTLSDR (missing: RTLSDR_LIBRARY RTLSDR_INCLUDE_DIR)
-- Configuring incomplete, errors occurred!

According to some sources say that VS 2022 already have PkgConfig... How can I verify? How can I install?

What is PKG_CONFIG_EXECUTABLE? Is it an environment variable?

eabase avatar Feb 23 '25 19:02 eabase