2007-03-01 15:26:07

by Meenakshi Seeballack

[permalink] [raw]
Subject: Re: [Bluez-devel] missing bluetooth header file

In /usr/lib I have these files:
/usr/lib/libbluetooth.so.2 rw- r - r
/usr/lib/libbluetooth.so.2.4.1 rw- r - r

And the header files are absent in /usr/include.

The only header files I can see for bluetooth are here
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/bluetooth.h
/usr/src/kernels/2.6.19- 1.2911.fc6-i686/include/net/bluetooth/hci.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/hci_core.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/l2cap.h
/usr/src/kernels/2.6.19- 1.2911.fc6-i686 /include/net/bluetooth/rfcomm.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/sco.h

>
And the header files are absent in /usr/include. So how do I get the
bluetooth folder with the header files in /usr/include?
Where is the hci_lib.h header file?
----------------------------------------------------------------------------------

On 01/03/07, [email protected]
<[email protected]>
wrote:
>
> Send Bluez-devel mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Bluez-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: missing bluetooth header file (Vikas Sinha)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 1 Mar 2007 20:36:08 +0530
> From: "Vikas Sinha" <[email protected]>
> Subject: Re: [Bluez-devel] missing bluetooth header file
> To: "BlueZ development" <[email protected]>
> Message-ID:
> < [email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> ok plz check library path. did u have
>
> -rw-r--r-- 1 root root 52530 Aug 17 2004 libbluetooth.a
> lrwxrwxrwx 1 root root 22 Jun 21 2006 libbluetooth.so ->
> libbluetooth.so.1.0.10
> lrwxrwxrwx 1 root root 22 May 4 2006 libbluetooth.so.1 ->
> libbluetooth.so.1.0.10
> -rwxr-xr-x 1 root root 49780 Aug 17 2004 libbluetooth.so.1.0.10
>
> these files in ur /usr/lib or in /usr/local/lib. if these files are places
> other place then u need to
> export LD_LIBRARY_PATH=// lib path for these file. These files need at the
> time of compilation of any code containing bluetooth.h file. include these
> and i think ur programm will work
>
> Also check ur header files are present at /usr/include or not.
>
>
> On 3/1/07, Meenakshi Seeballack < [email protected]> wrote:
> >
> > the kernel is 2.6.19-1.2911.fc6-i686, and I assume bluez is installed on
> > the machine, since I tried "yum install bluez" and it says "nothing to
> do"
> >
> -------------------------------------------------------------------------------------------------------
> >
> > On 01/03/07, [email protected] <
> [email protected]>
> > wrote:
> > >
> > > Send Bluez-devel mailing list submissions to
> > > [email protected]
> > >
> > > To subscribe or unsubscribe via the World Wide Web, visit
> > > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> > > or, via email, send a message with subject or body 'help' to
> > > [email protected]
> > >
> > > You can reach the person managing the list at
> > > [email protected]
> > >
> > > When replying, please edit your Subject line so it is more specific
> > > than "Re: Contents of Bluez-devel digest..."
> > >
> > >
> > > Today's Topics:
> > >
> > > 1. Implementation of multifactor authentication (Leonardo Salas)
> > > 2. Re: how to create rfcomm channel (Vikas Sinha)
> > > 3. Help: missing Bluetooth header file (Meenakshi Seeballack)
> > > 4. Re: Help: missing Bluetooth header file (Vikas Sinha)
> > >
> > >
> > > ----------------------------------------------------------------------
> > >
> > > Message: 1
> > > Date: Thu, 1 Mar 2007 13:13:48 +0100
> > > From: "Leonardo Salas" <[email protected]>
> > > Subject: [Bluez-devel] Implementation of multifactor authentication
> > > To: "bluez-devel" <[email protected]>
> > > Message-ID: <000f01c75c03$cf4102b0$0140e6c4@computer69e32c >
> > > Content-Type: text/plain; charset="windows-1250"
> > >
> > >
> > > Dear National City Business Banking Customer,
> > > As use of the Internet continues to expand, more banks and thrifts are
>
> > > using the Web to offer products and
> > > services or otherwise enhance communications with consumers.
> > > Our bank works hard to ensure a safe banking online for our customers.
> > > We have developed a new security measure as an additional protection
> for
> > > accounts that have more than 10,000 dollars.
> > > The main function of this security program is to prevent any attempts
> of
> > > unauthorized access to a business account.
> > > The new safeguard system eliminates any possibility of illegal breach
> to
> > > a bank account.
> > > The core of a new security system is an authorization of each bank
> > > transaction of our customers.
> > > The authorization will only be successful after entering a personal
> > > identification number (PIN) using a personal PIN card:
> > > - Security Number consists of 6 digits
> > > - PIN card has a list of 300 unique PINs which can be used to confirm
> > > every transaction.
> > > After three unsuccessful attempts of entering a personal
> identification
> > > number (PIN) - an account would be automatically
> > > suspended to protect our customers from fraudulent activities.
> > > A security number can be used only once, and then it becomes invalid
> > > after a transaction is completed.
> > > To register for our new online guard protection system please, click
> on
> > > the link below and follow the
> > > instructions on the screen. At the last step of your registration you
> > > will be asked to enter the address
> > > where you would like your pin card be delivered, including full postal
> > > code. In order to avoid any delays,
> > > please verify that you have input all the correct information.
> > > The card will be delivered to you within 14 days after the application
> > > is submitted.
> > > In the meantime, you can continue to use your business account as
> usual.
> > >
> > > Please, note in case if we do not hear from you within 7 days your
> > > account will be temporary suspended as a security measure.
> > > To start the registration - please click here:
> https://authmaster.nationalcity.com/corporate/exact4web/login.jsp
> > > Support Department
> > > National City Corporation.
> > > -------------- next part --------------
> > > An HTML attachment was scrubbed...
> > >
> > > ------------------------------
> > >
> > > Message: 2
> > > Date: Thu, 1 Mar 2007 17:48:08 +0530
> > > From: "Vikas Sinha" <[email protected] >
> > > Subject: Re: [Bluez-devel] how to create rfcomm channel
> > > To: "BlueZ development" < [email protected]>
> > > Message-ID:
> > > < [email protected]>
> > > Content-Type: text/plain; charset="iso-8859-1"
> > >
> > > Hi Siddhant,
> > >
> > > ur code seems to be fine. I think there are some problem in releasing
> > > device. Generally Bad File Descriptor comes if socket does not get
> > > closed
> > > properly. Actually rfcomm takes some time to set free device. try to
> put
> > > some sleep time in between release and again bind. Even binding at
> hci
> > > layer is longer then rfcomm layer. But can u tell me how did u send
> > > file to
> > > your handset. or ur testing it with pc to pc.
> > >
> > > hcidump will also be useful.
> > >
> > > On 3/1/07, siddhant tewari < [email protected]> wrote:
> > > >
> > > > hi vikas ,
> > > > Really great to get i reply from you. I was trying to
> > > write a
> > > > program that can send file to my nokia phone. I was looking for a
> api
> > > that
> > > > can create a character device which can be passed to ioctl. To do
> so
> > > what i
> > > > am doing right now is
> > > >
> > > > i) char cmdBuf[256];
> > > > sprintf(cmdBuf,"mknod %s c 216 %d",tempBuf,dev);
> > > > if (system(cmdBuf) != 0 )
> > > > {
> > > > fprintf(stderr,"\nError in executng mknod\n");
> > > > exit(1);
> > > > }
> > > >
> > > > ii) And then
> > > > err = ioctl(ctl, RFCOMMCREATEDEV, &req);
> > > >
> > > > iii) For releasing the device i am doing :-
> > > > err = ioctl(ctl, RFCOMMRELEASEDEV, &req);
> > > >
> > > > These things are working fine for a single run but after 2 run
> > > (keeping
> > > > the above 3 in while(1) block) ; while releasing the device , ioctl
> > > gives
> > > > error bad file descriptor. Please tell me what i am doing wrong.
> > > >
> > > > regards
> > > > siddhant
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> -------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share
> > > > your
> > > > opinions on IT & business topics through brief surveys-and earn cash
> > > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > > _______________________________________________
> > > > Bluez-devel mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> > > >
> > > >
> > >
> > >
> > > --
> > > Impossible
> > > itself contain
> > > I M Possible
> > >
> > > Vikas
> > > -------------- next part --------------
> > > An HTML attachment was scrubbed...
> > >
> > > ------------------------------
> > >
> > > Message: 3
> > > Date: Thu, 1 Mar 2007 14:29:09 +0000
> > > From: "Meenakshi Seeballack" < [email protected]>
> > > Subject: [Bluez-devel] Help: missing Bluetooth header file
> > > To: [email protected]
> > > Message-ID:
> > > < [email protected]>
> > > Content-Type: text/plain; charset="iso-8859-1"
> > >
> > > Hello,
> > > I am new to the linux world and I have installed Eclipse, with CDT.
> > > I am running the simplescan code off this website
> > > http://people.csail.mit.edu/albert/bluez-intro/c401.html and I am
> > > getting
> > > these errors:
> > > simplescan.c:6:33: error: bluetooth/bluetooth.h: No such file or
> > > directory
> > > simplescan.c:7:27: error: bluetooth/hci.h: No such file or directory
> > > simplescan.c:8:31: error: bluetooth/hci_lib.h: No such file or
> directory
> > > simplescan.c: In function 'main':
> > > simplescan.c:12: error: 'inquiry_info' undeclared (first use in this
> > > function)
> > > simplescan.c :12: error: (Each undeclared identifier is reported only
> > > once
> > > simplescan.c:12: error: for each function it appears in.)
> > > simplescan.c:12: error: 'ii' undeclared (first use in this function)
> > > simplescan.c:28: error: 'IREQ_CACHE_FLUSH' undeclared (first use in
> this
> > >
> > > function)
> > > simplescan.c:29: error: expected expression before ')' token
> > > simplescan.c:36: warning: incompatible implicit declaration of
> built-in
> > > function 'memset'
> > > simplescan.c:39: warning: incompatible implicit declaration of
> built-in
> > > function 'strcpy'
> > > simplescan.c:46:2: warning: no newline at end of file
> > >
> > > I can see these header files:
> > > /usr/src/kernels/2.6.19-1.2911.fc6-i686
> > > /include/net/bluetooth/bluetooth.h
> > > /usr/src/kernels/2.6.19- 1.2911.fc6-i686/include/net/bluetooth/hci.h
> > > /usr/src/kernels/2.6.19- 1.2911.fc6-i686
> /include/net/bluetooth/hci_core.h
> > > /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/l2cap.h
> > > /usr/src/kernels/2.6.19- 1.2911.fc6-i686/include/net/bluetooth/rfcomm.h
> > > /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/sco.h
> > >
> > > Where is the hci_lib.h header file? Can anyone please assist me?
> > > Meena
> > > -------------- next part --------------
> > > An HTML attachment was scrubbed...
> > >
> > > ------------------------------
> > >
> > > Message: 4
> > > Date: Thu, 1 Mar 2007 20:06:22 +0530
> > > From: "Vikas Sinha" < [email protected] >
> > > Subject: Re: [Bluez-devel] Help: missing Bluetooth header file
> > > To: "BlueZ development" < [email protected]>
> > > Message-ID:
> > > <[email protected] >
> > > Content-Type: text/plain; charset="iso-8859-1"
> > >
> > > Did you have bluez stack in your machine. What version of kernel you
> are
> > > using.
> > > you need to provide linking -lbluetooth during compilation.
> > >
> > > On 3/1/07, Meenakshi Seeballack < [email protected]> wrote:
> > > >
> > > > Hello,
> > > > I am new to the linux world and I have installed Eclipse, with CDT.
> > > > I am running the simplescan code off this website
> > > http://people.csail.mit.edu/albert/bluez-intro/c401.html
> > > > and I am getting these errors:
> > > > simplescan.c:6:33: error: bluetooth/bluetooth.h: No such file or
> > > directory
> > > > simplescan.c :7:27: error: bluetooth/hci.h: No such file or
> directory
> > > > simplescan.c :8:31: error: bluetooth/hci_lib.h: No such file or
> > > directory
> > > > simplescan.c : In function 'main':
> > > > simplescan.c:12: error: 'inquiry_info' undeclared (first use in this
>
> > > > function)
> > > > simplescan.c:12: error: (Each undeclared identifier is reported only
> > > once
> > > > simplescan.c:12: error: for each function it appears in.)
> > > > simplescan.c:12: error: 'ii' undeclared (first use in this function)
> > > > simplescan.c:28: error: 'IREQ_CACHE_FLUSH' undeclared (first use in
> > > this
> > > > function)
> > > > simplescan.c:29: error: expected expression before ')' token
> > > > simplescan.c:36: warning: incompatible implicit declaration of
> > > built-in
> > > > function 'memset'
> > > > simplescan.c:39: warning: incompatible implicit declaration of
> > > built-in
> > > > function 'strcpy'
> > > > simplescan.c:46:2: warning: no newline at end of file
> > > >
> > > > I can see these header files:
> > > > /usr/src/kernels/2.6.19-1.2911.fc6-i686
> > > /include/net/bluetooth/bluetooth.h
> > > > /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/hci.h
> > > > /usr/src/kernels/2.6.19- 1.2911.fc6-i686
> /include/net/bluetooth/hci_core.h
> > > > /usr/src/kernels/2.6.19-1.2911.fc6-i686
> /include/net/bluetooth/l2cap.h
> > > > /usr/src/kernels/2.6.19- 1.2911.fc6-i686
> /include/net/bluetooth/rfcomm.h
> > > > /usr/src/kernels/2.6.19- 1.2911.fc6-i686/include/net/bluetooth/sco.h
> > > >
> > > > Where is the hci_lib.h header file? Can anyone please assist me?
> > > > Meena
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> -------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share
> > > > your
> > > > opinions on IT & business topics through brief surveys-and earn cash
>
> > > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > > _______________________________________________
> > > > Bluez-devel mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> > > >
> > > >
> > >
> > >
> > > --
> > > Impossible
> > > itself contain
> > > I M Possible
> > >
> > > Vikas
> > > -------------- next part --------------
> > > An HTML attachment was scrubbed...
> > >
> > > ------------------------------
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > >
> > > ------------------------------
> > >
> > > _______________________________________________
> > > Bluez-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> > >
> > >
> > > End of Bluez-devel Digest, Vol 11, Issue 1
> > > ******************************************
> > >
> >
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Bluez-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> >
> >
>
>
> --
> Impossible
> itself contain
> I M Possible
>
> Vikas
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ------------------------------
>
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
> End of Bluez-devel Digest, Vol 11, Issue 3
> ******************************************
>


Attachments:
(No filename) (17.85 kB)
(No filename) (29.36 kB)
(No filename) (345.00 B)
(No filename) (164.00 B)
Download all attachments

2007-03-02 05:20:37

by Vikas Sinha

[permalink] [raw]
Subject: Re: [Bluez-devel] missing bluetooth header file

Hi Meenakshi,

u need to compile bluez-devel. Download sorce then untar it into
/usr/local/src (you can put it to anywhere. I generally put it there). go
into that folder and do
./configure
make
make install


it will compile and put header files to its location. i.e.
/usr/include/bluetooth or /usr/local/include/bluetooth . if it create it in
second then simply copy it to first path. Then try to compile ur code. plz
check ur d-bus version also.


On 3/1/07, Meenakshi Seeballack <[email protected]> wrote:
>
> In /usr/lib I have these files:
> /usr/lib/libbluetooth.so.2 rw- r - r
> /usr/lib/libbluetooth.so.2.4.1 rw- r - r
>
> And the header files are absent in /usr/include.
>
> The only header files I can see for bluetooth are here
> /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/bluetooth.h
> /usr/src/kernels/2.6.19- 1.2911.fc6-i686/include/net/bluetooth/hci.h
> /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/hci_core.h
> /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/l2cap.h
> /usr/src/kernels/2.6.19- 1.2911.fc6-i686 /include/net/bluetooth/rfcomm.h
> /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/sco.h
>
> >
> And the header files are absent in /usr/include. So how do I get the
> bluetooth folder with the header files in /usr/include?
> Where is the hci_lib.h header file?
>
> ----------------------------------------------------------------------------------
>
> On 01/03/07, [email protected] <[email protected]>
> wrote:
> >
> > Send Bluez-devel mailing list submissions to
> > [email protected]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> > or, via email, send a message with subject or body 'help' to
> > [email protected]
> >
> > You can reach the person managing the list at
> > [email protected]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Bluez-devel digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: missing bluetooth header file (Vikas Sinha)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Thu, 1 Mar 2007 20:36:08 +0530
> > From: "Vikas Sinha" <[email protected] >
> > Subject: Re: [Bluez-devel] missing bluetooth header file
> > To: "BlueZ development" <[email protected]>
> > Message-ID:
> > < [email protected]>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > ok plz check library path. did u have
> >
> > -rw-r--r-- 1 root root 52530 Aug 17 2004 libbluetooth.a
> > lrwxrwxrwx 1 root root 22 Jun 21 2006 libbluetooth.so ->
> > libbluetooth.so.1.0.10
> > lrwxrwxrwx 1 root root 22 May 4 2006 libbluetooth.so.1 ->
> > libbluetooth.so.1.0.10
> > -rwxr-xr-x 1 root root 49780 Aug 17 2004 libbluetooth.so.1.0.10
> >
> > these files in ur /usr/lib or in /usr/local/lib. if these files are
> > places
> > other place then u need to
> > export LD_LIBRARY_PATH=// lib path for these file. These files need at
> > the
> > time of compilation of any code containing bluetooth.h file. include
> > these
> > and i think ur programm will work
> >
> > Also check ur header files are present at /usr/include or not.
> >
> >
> > On 3/1/07, Meenakshi Seeballack < [email protected]> wrote:
> > >
> > > the kernel is 2.6.19-1.2911.fc6-i686, and I assume bluez is installed
> > on
> > > the machine, since I tried "yum install bluez" and it says "nothing
> > to do"
> > >
> > -------------------------------------------------------------------------------------------------------
> > >
> > > On 01/03/07, [email protected] <
> > [email protected]>
> > > wrote:
> >
>


--
Impossible
itself contain
I M Possible

Vikas


Attachments:
(No filename) (3.93 kB)
(No filename) (6.76 kB)
(No filename) (345.00 B)
(No filename) (164.00 B)
Download all attachments

2007-03-01 15:34:43

by Tuomas Suutari

[permalink] [raw]
Subject: Re: [Bluez-devel] missing bluetooth header file

On 2007-03-01 Thursday 17:26, Meenakshi Seeballack wrote:
> And the header files are absent in /usr/include.

Maybe those header files are in separate package?

Try:
yum install bluez-devel


--
Tuomas Suutari | +358 50 3806983 | [email protected]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel