Skip to content

Potential issues under OpenBSD with libusb backend #798

@mcuee

Description

@mcuee

This is a bit strange, maybe specific to OpenBSD pkgconf only. The version number detection seems to be off. But then still 2.4.3 should be greater than 1.0.9, right?

openbsd78vm$ pwd
/home/mcuee/build/hidapi

openbsd78vm$ mkdir build
openbsd78vm$ mkdir install

openbsd78vm$ pkg-config --version libusb-1.0
2.4.3

openbsd78vm$ cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install -DHIDAPI_BUILD_HIDTEST=1
-- The C compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- hidapi: v0.16.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.4.3")
-- Checking for module 'libusb-1.0>=1.0.9'
--   Package dependency requirement 'libusb-1.0 >= 1.0.9' could not be satisfied.
Package 'libusb-1.0' has version '..', required version is '>= 1.0.9'
CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
  The following required packages were not found:

   - libusb-1.0>=1.0.9

Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  libusb/CMakeLists.txt:15 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bsdFreeBSD, NetBSD, OpenBSD, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions