Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
jamonger
Posts: 1
Joined: 18 Sep 2014, 22:11

make install aborts...

Post by jamonger » 19 Sep 2014, 12:22

Can someone help with an install question.

I have downloaded the packages and unzipped to the following directories:-

/home/john/Downloads/usb-modeswitch-2.2.0
/home/john/Downloads/usb-modeswitch-data-20140529

When issuing the install command get the following:-

$ make install
sed 's_!/usr/bin/tclsh_!'"/usr/bin/tclsh"'_' < usb_modeswitch.tcl > usb_modeswitch_dispatcher
cc -o usb_modeswitch usb_modeswitch.c -Wall `pkg-config --libs --cflags libusb-1.0`
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
In file included from usb_modeswitch.c:59:0:
usb_modeswitch.h:26:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>

compilation terminated.
make: *** [usb_modeswitch] Error 1



Any clues/pointers

Many thanks

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: make install aborts...

Post by Josh » 22 Sep 2014, 20:42

"Package libusb-1.0 was not found in the pkg-config search path."

That indicates that you did not install the development package for libusb-1.0.

You may want to read the "Install" paragraph on the usb_modeswitch page. See top nav bar.

Post Reply