rom1v / usbaudio

Forward audio from Android devices
MIT License
352 stars 32 forks source link

Error while installing (libusb-1.0-0) #17

Closed kurdtpage closed 4 years ago

kurdtpage commented 4 years ago

I am using Linux Mint 19.3 and I have cloned the repo. When I try meson x --buildtype=release, it comes up with the following:

kurdtpage@mint:~/usbaudio$ meson x --buildtype=release
The Meson build system
Version: 0.51.1
Source dir: /home/kurdtpage/usbaudio
Build dir: /home/kurdtpage/usbaudio/x
Build type: native build
Project name: usbaudio
Project version: 1.0
C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libpulse found: YES 11.1
Found CMake: /usr/bin/cmake (3.10.2)
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)

meson.build:11:0: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake

A full log can be found at /home/kurdtpage/usbaudio/x/meson-logs/meson-log.txt

meson-log.txt Then when I try to install libusb:

kurdtpage@mint:~/usbaudio$ sudo apt-get install libusb-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-doc' for regex 'libusb-1.0'
libusb-1.0-0 is already the newest version (2:1.0.23-2build1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libusb-1.0-0-dev : Depends: libusb-1.0-0 (= 2:1.0.21-2) but 2:1.0.23-2build1 is to be installed
E: Unable to correct problems, you have held broken packages.

How can I resolve this?

rom1v commented 4 years ago
sudo apt update
sudo apt install libusb-1.0-0-dev

If that fails, your distrib has a problem :/

kurdtpage commented 4 years ago

Damn, I get: The following packages have unmet dependencies: libusb-1.0-0-dev : Depends: libusb-1.0-0 (= 2:1.0.21-2) but 2:1.0.23-2build1 is to be installed