Skip to content

CMake build fails on linux due to hidapi missing error #2

@CommanderPho

Description

@CommanderPho

Build output:

Run cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/runner/work/emotiv-lsl-cpp/emotiv-lsl-cpp/install -DLSL_FETCH_IF_MISSING=ON 
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- 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
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Fetching liblsl v1.17.4 from GitHub...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Git: /usr/bin/git (found version "2.53.0")
-- Git version information: HEAD/v1.17.4
-- Using bundled pugixml
-- Using bundled header-only Boost
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Included LSLCMake helpers, rev. 18
-- LSL: Detected architecture: amd64
-- LSL: Detected OS: noble
-- Included LSLCMake helpers, rev. 18
CMake Error at build/_deps/hidapi-src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
Error: Process completed with exit code 1.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions