Author Message

<  Setup Discussion  ~  libusb.h missing error while installing usb_modeswitch !!!

PostPosted: Sat Mar 29, 2014 2:43 pm Reply with quote
Posts: 3Joined: Sat Mar 29, 2014 2:31 pm
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


Offline Profile
PostPosted: Sat Mar 29, 2014 7:41 pm Reply with quote
Site AdminPosts: 6269Joined: Sat Nov 03, 2007 12:30 am
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".


Offline Profile
PostPosted: Mon Mar 31, 2014 5:33 am Reply with quote
Posts: 3Joined: Sat Mar 29, 2014 2:31 pm
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


Offline Profile
PostPosted: Mon Mar 31, 2014 8:21 am Reply with quote
Site AdminPosts: 6269Joined: Sat Nov 03, 2007 12:30 am
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").


Offline Profile
PostPosted: Mon Mar 31, 2014 1:47 pm Reply with quote
Posts: 3Joined: Sat Mar 29, 2014 2:31 pm
OK i will try to find them too


Offline Profile
PostPosted: Mon Apr 14, 2014 5:44 pm Reply with quote
Posts: 2Location: Kiev, UkraineJoined: Mon Apr 14, 2014 12:05 pm
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.


Offline Profile
PostPosted: Thu Apr 17, 2014 10:04 am Reply with quote
Site AdminPosts: 6269Joined: Sat Nov 03, 2007 12:30 am
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.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
7 posts
Users browsing this forum: No registered users and 2 guests
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum