Skip to content

Installing on Ubuntu? #7

@naught101

Description

@naught101

when I run cmake on kubuntu 20.04 (5.4.0-31-lowlatency x86_64 x86_64), it fails with:

cmake ../ -DCMAKE_BUILD_TYPE=Release
-- Could NOT find LIBSNDFILE (missing: LIBSNDFILE_LIBRARY) 
-- LibUSB not found, try setting LibUSB_ROOT_DIR environment variable.
CMake Error at cmake/FindLibUSB.cmake:106 (message):
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/nedcr/Downloads/source_code/dtdump/build/CMakeFiles/CMakeOutput.log".

I have tried setting both variables, as well as the other variables listed in CmakeLists.txt, and failed to get much to work, e.g.

locate libsndfile.so
/usr/lib/x86_64-linux-gnu/libsndfile.so
/usr/lib/x86_64-linux-gnu/libsndfile.so.1
/usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.28

locate sndfile
/usr/include/sndfile.h

locate libusb.so    
/usr/lib/x86_64-linux-gnu/libusb.so

locate libusb.h  
/usr/include/libusb-1.0/libusb.h

So I have tried:

export LIBSNDFILE_INCLUDE_DIR=/usr/include
export LIBSNDFILE_LIBRARY=/usr/lib/x86_64-linux-gnu/libsndfile.so
export LibUSB_INCLUDE_DIRS=/usr/include/libusb-1.0/
export LibUSB_LIBRARIES=/usr/lib/x86_64-linux-gnu/libusb.so
export LibUSB_ROOT_DIR=/usr/lib/x86_64-linux-gnu/

Same errors as above. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions