From 978e0acd26303c3477cfe089d39c7d6d86d6828c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 10 Jun 2011 12:03:40 +0200 Subject: force use of libusb-1.0 --- CMakeLists.txt | 2 +- libk8055/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a820b55..11ef350 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ if(NOT WIN32) FIND_PACKAGE(PkgConfig) endif() if(PKG_CONFIG_FOUND) - pkg_check_modules(LIBUSB libusb) + pkg_check_modules(LIBUSB libusb-1.0) else() MESSAGE(STATUS "Checking for module 'libusb'") endif() diff --git a/libk8055/main.c b/libk8055/main.c index 50e361c..a62050d 100644 --- a/libk8055/main.c +++ b/libk8055/main.c @@ -154,7 +154,7 @@ int main ( int argc,char* params[] ) { * and enable debug mode */ if ( debug ) - usb_set_debug( 2 ); + libusb_set_debug( 2 ); dev = k8055_alloc(); if(dev==NULL) { fprintf(stderr,"Could not allocate data for k8055_dev struct.\n"); -- cgit v1.1-2-g2b99