Skip to content

How to build on Windows using cmake? #79

Description

@eabase

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions