Created
November 20, 2008 20:09
-
-
Save agile/27169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mike@dirtyhippie:~/ftw$ gh clone mergulhao/ruby-bluetooth | |
Initialized empty Git repository in /home/mike/ftw/ruby-bluetooth/.git/ | |
remote: Counting objects: 100, done. | |
remote: Compressing objects: 100% (38/38), done. | |
remote: Total 100 (delta 45), reused 100 (delta 45) | |
Receiving objects: 100% (100/100), 16.81 KiB, done. | |
Resolving deltas: 100% (45/45), done. | |
mike@dirtyhippie:~/ftw$ cd ruby-bluetooth/ | |
/home/mike/ftw/ruby-bluetooth | |
mike@dirtyhippie:~/ftw/ruby-bluetooth(master)$ ls -l | |
total 4 | |
drwxr-xr-x 5 mike mike 4096 2008-11-20 14:07 src | |
mike@dirtyhippie:~/ftw/ruby-bluetooth(master)$ cd src/ | |
/home/mike/ftw/ruby-bluetooth/src | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ ls -l | |
total 20 | |
drwxr-xr-x 2 mike mike 4096 2008-11-20 14:07 bluetooth_linux | |
drwxr-xr-x 2 mike mike 4096 2008-11-20 14:07 bluetooth_macosx | |
drwxr-xr-x 2 mike mike 4096 2008-11-20 14:07 bluetooth_win32 | |
-rw-r--r-- 1 mike mike 524 2008-11-20 14:07 extconf.rb | |
-rw-r--r-- 1 mike mike 127 2008-11-20 14:07 sample_program.rb | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ ruby extconf.rb | |
checking for main() in -lbluetooth... no | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--without-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/usr/bin/ruby1.8 | |
--with-ruby_bluetooth-dir | |
--without-ruby_bluetooth-dir | |
--with-ruby_bluetooth-include | |
--without-ruby_bluetooth-include=${ruby_bluetooth-dir}/include | |
--with-ruby_bluetooth-lib | |
--without-ruby_bluetooth-lib=${ruby_bluetooth-dir}/lib | |
--with-bluetoothlib | |
--without-bluetoothlib | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ apt-cache search bluetooth dev | |
bluez - Bluetooth tools and daemons | |
kdebluetooth - KDE Bluetooth Framework | |
libbluetooth-dev - Development files for using the BlueZ Linux Bluetooth library | |
libbtctl4 - GObject Bluetooth library | |
libbtctl4-dev - Development files for GObject Bluetooth library | |
libgnomebt0-dev - Development files for GNOME Bluetooth library | |
osso-gwconnect - Bluetooth connectivity applications | |
osso-gwconnect-dev - Bluetooth connectivity applications - development files | |
anyremote - Remote control service Bluetooth, IrDA, Wi-Fi connection | |
bluemon - Activate or deactivate programs based on Bluetooth link quality | |
blueproximity - locks/unlocks your desktop tracking a bluetooth device | |
bluez-pcmcia-support - PCMCIA support files for BlueZ 2.0 Bluetooth tools | |
btscanner - ncurses-based scanner for Bluetooth devices | |
gnome-bluetooth - GNOME Bluetooth tools. | |
gpe-bluetooth - Bluetooth connectivity tool for GPE | |
libnet-bluetooth-perl - Perl Bluetooth interface | |
libpam-blue - PAM module for local authenticaction with bluetooth devices | |
multisync - A program to synchronize PIM data | |
obexfs - mount filesystem of ObexFTP capable devices | |
obexftp - file transfer utility for devices that use the OBEX protocol | |
obexpushd - program for receiving files via Bluetooth or IRDA | |
opensync-plugin-irmc - IrMC plugin for opensync | |
p3nfs - to mount the file systems on the Psion/Symbian PDA/Phone | |
python-bluez - Python wrappers around BlueZ for rapid bluetooth development | |
python-libbtctl - Python bindings for libbtctl Bluetooth library | |
python-lightblue - cross-platform Bluetooth API for Python | |
ussp-push - Client for OBEX PUSH | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ sudo aptitude install libbluetooth-dev | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Reading extended state information | |
Initializing package states... Done | |
The following NEW packages will be installed: | |
libbluetooth-dev | |
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 27.2kB of archives. After unpacking 242kB will be used. | |
Writing extended state information... Done | |
Get:1 http://us.archive.ubuntu.com intrepid/main libbluetooth-dev 4.12-0ubuntu5 [27.2kB] | |
Fetched 27.2kB in 0s (34.0kB/s) | |
Selecting previously deselected package libbluetooth-dev. | |
(Reading database ... 195889 files and directories currently installed.) | |
Unpacking libbluetooth-dev (from .../libbluetooth-dev_4.12-0ubuntu5_i386.deb) ... | |
Setting up libbluetooth-dev (4.12-0ubuntu5) ... | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Reading extended state information | |
Initializing package states... Done | |
Writing extended state information... Done | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ ruby extconf.rb | |
checking for main() in -lbluetooth... yes | |
creating Makefile | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ make | |
cc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c bluetooth_linux/bluetooth_linux.c | |
cc -shared -o ruby_bluetooth.so bluetooth_linux.o -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8 -lbluetooth -lpthread -ldl -lcrypt -lm -lc | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ ls -l | |
total 104 | |
drwxr-xr-x 2 mike mike 4096 2008-11-20 14:07 bluetooth_linux | |
-rw-r--r-- 1 mike mike 36740 2008-11-20 14:08 bluetooth_linux.o | |
drwxr-xr-x 2 mike mike 4096 2008-11-20 14:07 bluetooth_macosx | |
drwxr-xr-x 2 mike mike 4096 2008-11-20 14:07 bluetooth_win32 | |
-rw-r--r-- 1 mike mike 524 2008-11-20 14:07 extconf.rb | |
-rw-r--r-- 1 mike mike 3849 2008-11-20 14:08 Makefile | |
-rw-r--r-- 1 mike mike 530 2008-11-20 14:08 mkmf.log | |
-rwxr-xr-x 1 mike mike 40448 2008-11-20 14:08 ruby_bluetooth.so | |
-rw-r--r-- 1 mike mike 127 2008-11-20 14:07 sample_program.rb | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ ruby sample_program.rb | |
00:07:E0:DA:95:59 | |
Mike Vincent | |
#<Bluetooth::Device:0xb7db82d0> | |
[#<Bluetooth::Device:0xb7db82d0>] | |
mike@dirtyhippie:~/ftw/ruby-bluetooth/src(master)$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment