Hello freinds i am first time here,
I was trying to install usb_modeswitch on
Linux Mint 16 64bit petra
But it sayed compilation error while running
Sudo make install
And error showed
Error while compiling #include<libusb.h>
Libusb.h not found.
What to do someone please help
-
- Posts: 3
- Joined: 29 Mar 2014, 14:31
Re: libusb.h missing error while installing usb_modeswitch !
First, you want to make sure there is no conflict with the "official" usb_modeswitch package.
Second, for compiling you need the libusb development package. See the README file in the source package, paragraph "How to install".
Second, for compiling you need the libusb development package. See the README file in the source package, paragraph "How to install".
-
- Posts: 3
- Joined: 29 Mar 2014, 14:31
Re: libusb.h missing error while installing usb_modeswitch !
Thanks for reply i dont really know any thing about conflict but i have installed all that was required including,
Libusb-dev
and some thing like
Tcl or tlc i cant remeber perfectly
But still error pleas help
Libusb-dev
and some thing like
Tcl or tlc i cant remeber perfectly
But still error pleas help
Re: libusb.h missing error while installing usb_modeswitch !
From the README:
"The main prerequisite for installing from source is the development package for
"libusb". It may be called "libusb-dev" or similar in your distribution. From
usb_modeswitch 2.0.0 it should have an "1.x" in the name to reflect the change
to libusb-1."
You need to install "libusb1-dev" or similar (may also be "libusbx-dev").
"The main prerequisite for installing from source is the development package for
"libusb". It may be called "libusb-dev" or similar in your distribution. From
usb_modeswitch 2.0.0 it should have an "1.x" in the name to reflect the change
to libusb-1."
You need to install "libusb1-dev" or similar (may also be "libusbx-dev").
-
- Posts: 3
- Joined: 29 Mar 2014, 14:31
Re: libusb.h missing error while installing usb_modeswitch !
OK i will try to find them too
Re: libusb.h missing error while installing usb_modeswitch !
I've met same problem today on my RaspberryPi with "Fedora remix release 18" installed.
libusb-devel package didn't work.
So I've found also libusbx package installed.
"Libusbx is a fork of the original libusb ... The libusbx fork was started by most of the libusb-1.0 developers, after the original libusb project did not produce a new release for over 18 month".
So, installing libusbx-devel package brought me needed for compilation source files.
libusb-devel package didn't work.
So I've found also libusbx package installed.
"Libusbx is a fork of the original libusb ... The libusbx fork was started by most of the libusb-1.0 developers, after the original libusb project did not produce a new release for over 18 month".
So, installing libusbx-devel package brought me needed for compilation source files.
Re: libusb.h missing error while installing usb_modeswitch !
To elaborate further on the libusb1 / libusbx matter, I quote the following from libusbx.org:
"libusbx was a fork of libusb, a library that provides generic access to USB devices.
As of 2014.01.26, this project has been fully merged back into libusb and is being discontinued.
Since there will be no further releases of libusbx, you are strongly encouraged to switch to using libusb."
In conclusion, there may be both variants around in distributions for a while, until package updates will finally reflect the re-merge.
"libusbx was a fork of libusb, a library that provides generic access to USB devices.
As of 2014.01.26, this project has been fully merged back into libusb and is being discontinued.
Since there will be no further releases of libusbx, you are strongly encouraged to switch to using libusb."
In conclusion, there may be both variants around in distributions for a while, until package updates will finally reflect the re-merge.