Install Libusb Compat Ubuntu Linux

Active6 years, 9 months ago
  1. Install Libusb Windows 10
  2. Install Libusb Compat Ubuntu Linux
  3. Linux Libusb
  4. Install Libusb Compat Ubuntu Linux Download

I need the package libusb for another package I am installing.

I wanted > to try and see if I could install Linux on this thing, since it works > fine on a pc running ubuntu, and see if I maybe could get it working > with that (thus checking if hardware was the problem), but my wifi > wasn't detected so I had to quit that route. Maybe this has something to do with the USB 3.0 thingy.

I tried the following which seemed to install the package,

  • In order to install the ST-Link utilities on Linux (Ubuntu) we have to make sure to have the libusb-dev library installed. On Ubuntu systems you can install the necessary library by executing: sudo apt-get install libusb-1.0-0-dev. We will now download, build and install the latest ST-Link utilities from scratch.
  • Installing libusb-1 and libudev to get openni to compile on Fedora. With ubuntu so there are some new things for me. For compat/libusb-1.0 Fixed by installing.

but when I try to install the other package I get,

When I run the command dpkg -L libusb-dev, I get:

Any ideas??

TomSelleck
TomSelleckTomSelleck
3,13814 gold badges57 silver badges116 bronze badges

1 Answer

A bit of reading ... http://www.libusb.org/wiki/libusb-1.0#libusb-0.1

It appears, that the 0.1 and 1.0 series of the library are fundamentally different. A number of Linux distributions keep shipping the 0.1 series primarily, while an 1.x version can be installed additionally in parallel. You're looking for a package called libusb-1.0 and corresponding development packages: http://packages.ubuntu.com/quantal/libusb-1.0-0 and http://packages.ubuntu.com/quantal/libusb-1.0-0-dev

s-m-es-m-eCompat
1,6192 gold badges19 silver badges39 bronze badges
Install
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Install Libusb Windows 10

Not the answer you're looking for? Browse other questions tagged linuxubuntupackagelibusbpkg-config or ask your own question.

Permalink

Install Libusb Compat Ubuntu Linux

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Linux Libusb

Sign up

Install Libusb Compat Ubuntu Linux Download

Find file Copy path
Cannot retrieve contributors at this time
# Makefile for 'linkmbootload' and 'linkmboot-lib'
#
#
#
# Platform-specific notes:
#
# Mac OS X
# - Install Xcode with Unix Dev Support
# - Install 'make' from macports (or similar)
# Windows XP/7
# - Install MinGW and MSYS (http://www.tdragon.net/recentgcc/ )
# Linux (Ubuntu)
# - apt-get install gcc-avr avr-libc avrdude java librxtx-java
#
#
#
#
PROGNAME = linkmbootload
# try to do some autodetecting
UNAME := $(shell uname -s)
ifeq '$(UNAME)' 'Darwin'
OS=macosx
endif
ifeq '$(OS)' 'Windows_NT'
OS=windows
endif
ifeq '$(UNAME)' 'Linux'
OS=linux
endif
################# Mac OS X ##################################################
ifeq '$(OS)' 'macosx'
# If you want to build for PowerPC too, you'll need to edit
# /opt/local/etc/macports/macports.conf: universal_archs and add 'ppc'
# otherwise swap the OS_CFLAGS with the commented one below
#USBFLAGS = `libusb-legacy-config --cflags`
#USBLIBS = /opt/local/lib/libusb-legacy/libusb.a
USBFLAGS = `/opt/local/bin/libusb-config --cflags`
USBLIBS = /opt/local/lib/libusb.a /opt/local/lib/libusb-1.0.a
USBLIBS += -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind
#OS_CFLAGS= -arch i386 -arch x86_64
OS_CFLAGS= -arch i386 -arch x86_64 -arch ppc
OS_LIBS = $(OS_CFLAGS)
EXE_SUFFIX=
endif
################# Windows ##################################################
ifeq '$(OS)' 'windows'
USBFLAGS=
USBLIBS= -lhid -lsetupapi
EXE_SUFFIX= .exe
endif
################# Linux ###################################################
ifeq '$(OS)' 'linux'
USBFLAGS = `libusb-config --cflags`
USBLIBS = `libusb-config --libs`
EXE_SUFFIX=
endif
CC= gcc
CXX= g++
#CFLAGS= $(OS_CFLAGS) -std=gnu99 -O2 -Wall $(USBFLAGS) -DPROGNAME='$(PROGNAME)'
CFLAGS= $(OS_CFLAGS) -O -Wall -std=gnu99 $(USBFLAGS) -DPROGNAME='$(PROGNAME)'
LIBS= $(OS_LIBS) $(USBLIBS)
OBJ= $(PROGNAME).o $(PROGNAME)-lib.o usbcalls.o
PROGRAM= $(PROGNAME)$(EXE_SUFFIX)
all: msg $(PROGRAM)
msg:
@echo 'Building for OS=$(OS)'
$(PROGRAM): lib
$(CC) $(CFLAGS) $(LIBS) -L. -l$(PROGNAME) -o $(PROGRAM) $(LIBS)
# FIXME: this isn't cross-platform I think
lib: $(OBJ)
rm -f lib$(PROGNAME).a # FIXME
ar rcs lib$(PROGNAME).a $(OBJ)
msleeptst:
$(CC) $(CFLAGS) -o msleeptst$(EXE_SUFFIX) msleeptst.c $(LIBS)
strip: $(PROGRAM)
strip $(PROGRAM)
clean:
rm -f $(OBJ) $(PROGRAM) lib$(PROGNAME).a msleeptst.o
.c.o:
$(CC) $(ARCH_COMPILE) $(CFLAGS) -c $*.c -o $*.o
Libusb
  • Copy lines
  • Copy permalink