LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2010, 11:29 AM   #1
stonehinge03
LQ Newbie
 
Registered: Jan 2010
Posts: 21

Rep: Reputation: 15
ubuntu 9.10 - #include <libusb/libusb.h>


Not able to do that simple include; gives this error:
"error: libusb/libusb.h: No such file or directory"

These are the packages I've installed:
Code:
dpkg --list |grep usb
ii  libusb-0.1-4                               2:0.1.12-13                        userspace USB programming library
ii  libusb-dev                                 2:0.1.12-13                        userspace USB programming library developmen
ii  python-usb                                 0.4.1-4ubuntu1                     USB interface for Python
ii  qc-usb-utils                               0.6.6-6ubuntu2                     utility programs for the QuickCam Express dr
ii  usb-creator                                0.1.16                             Ubuntu USB desktop image creator
ii  usbutils                                   0.73-8ubuntu3                      Linux USB utilities
ii  xserver-xorg-video-sisusb                  1:0.9.0-4                          X.Org X server -- SiS USB display driver
 
Old 04-19-2010, 12:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Ummm ... and where's the rest of the information?

What are you trying to compile?
How do you invoke gcc, what are your parameters for -I?

I don't use *buntu, so can't say what's part of libusb-dev,
but I'd assume the header is; if you do a
Code:
sudo updatedb && locate libusb.h
- what do you get?


Cheers,
Tink
 
1 members found this post helpful.
Old 04-19-2010, 02:06 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
dpkg -L libusb-dev
/usr/bin/libusb-config
/usr/include/usb.h
/usr/lib/libusb.so
/usr/lib/pkgconfig/libusb.pc
-------------------

#include <libusb/libusb.h> : Is wrong.

#include <libusb.h> : Will usually work.
EDIT → → #include <usb.h> : Sorry, typo in the above.
.....

Last edited by knudfl; 04-19-2010 at 04:19 PM.
 
1 members found this post helpful.
Old 04-19-2010, 02:09 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by knudfl View Post
dpkg -L libusb-dev
/usr/bin/libusb-config
/usr/include/usb.h
/usr/lib/libusb.so
/usr/lib/pkgconfig/libusb.pc
-------------------

#include <libusb/libusb.h> : Is wrong.

#include <libusb.h> : Will probably work.

.....
I actually don't see a libusb.h in that output :}

Maybe there's no libusb.h at all (there isn't on my
Slackware machine(s)), and including usb.h will do
the trick?


Cheers,
Tink
 
Old 04-19-2010, 04:18 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Sorry , my mistake.

#include <usb.h>

.....
 
Old 04-20-2010, 09:02 AM   #6
stonehinge03
LQ Newbie
 
Registered: Jan 2010
Posts: 21

Original Poster
Rep: Reputation: 15
dpkg -L <pkgname>

Thank you. Didn't know this one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
driver help with libusb halfwit Linux - Hardware 19 01-23-2008 12:59 AM
question about libusb?!! nesta Linux - Software 1 03-04-2007 10:12 AM
Help getting libusb 0.1.12 installed... 003 SUSE / openSUSE 7 07-15-2006 02:45 PM
help me --- interrupt_read() in libusb shiva_teknic Programming 0 09-27-2005 08:17 AM
libUSB install Dutch3 Linux - Newbie 1 04-30-2002 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration