Skip to contentSkip to conversation

configure/make errors

Bluez-devel Luca Capello 3 participants 5 messages Jan 18, 2005 – Jan 19, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello again,

after having solved the automake error, configure gave me another one and googling solved it [1]. But, again, no dependencies from libao-dev is present in the README (and, strangely, automake doesn't complain).

This wasn't enough: make gave me other errors, because it could not find the Bluetooth dev libraries.

Attached a patch against the current CVS:

* bootstrap:
checking for the existence of /usr/share/aclocal/ao.m4 and exiting with an error if not present (we cannot use the pkg-config because ao.m4 is used to generate the configure script)

* configure.in:
used pkg-config to check the presence of the Bluetooth dev libraries

* README:
added more info about dependencies (section Build.0)

Thx, bye,
Gismo / Luca

[1] https://www.redhat.com/archives/fedora-list/2004-December/msg03679.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFB7X6NVAp7Xm10JmkRAtPlAJ46nBk7st7KfzBsSc3+W+4tuc2kNwCfSRBM uNAdtpcWbvjUmLOm83oUT+E=
=wdn3
-----END PGP SIGNATURE-----

bootstrap +10 -1
diff -Naur btsco_cvs-20050118-2128/bootstrap btsco/bootstrap
@@ -1,10 +1,19 @@
 #! /bin/sh
 
+# Test for the right automake
 if [ ! `which automake-1.7` ]; then
     echo -e "\n*** You need automake-1.7 to compile this software ***\n"
     exit 1
 elif [ ! `automake --version | grep -q 1.7` ]; then
     AUTOMAKE_VERSION="-1.7"
 fi
- 
+
+# Test for the presence of libao-dev (this cannot be done with
+# pkg-config because we need libao-dev for automake)
+if [ ! -s "/usr/share/aclocal/ao.m4" ]; then
+    echo -e "\n*** You need libao-dev to compile this software ***\n"
+    exit 1
+fi
+
+# All we need for the autotools is installed, so go on
 aclocal$AUTOMAKE_VERSION && autoheader && automake$AUTOMAKE_VERSION --add-missing --copy --ignore-deps && autoconf
configure.in +2 -0
diff -Naur btsco_cvs-20050118-2128/configure.in btsco/configure.in
@@ -5,6 +5,8 @@
 AC_PREREQ(2.50)
 AC_INIT()
 
+PKG_CHECK_MODULES(BTSCO, bluez)
+
 AM_INIT_AUTOMAKE(btsco, 0.2)
 AM_CONFIG_HEADER(config.h)
 
README +5 -1
diff -Naur btsco_cvs-20050118-2128/README btsco/README
@@ -31,10 +31,14 @@
 
   Build
 
+    0. In order to build this project, you need:
+        automake-1.7
+        libao-dev
+        libbluetooth-dev
     1. The CVS repository must be checked out:
         cvs -d:pserver:[email protected]:/cvsroot/bluetooth-alsa login
         cvs -d:pserver:[email protected]:/cvsroot/bluetooth-alsa co btsco
-    2. After that it must be compiled (you need automake 1.7):
+    2. After that it must be compiled:
         ./bootstrap
         ./configure
         make
maintainer
#1 lore raw

Hi Luca,

Quoted 7 lines

after having solved the automake error, configure gave me another one and googling solved it [1]. But, again, no dependencies from libao-dev is present in the README (and, strangely, automake doesn't complain).

This wasn't enough: make gave me other errors, because it could not find the Bluetooth dev libraries.

Quoted 6 lines

Attached a patch against the current CVS:

* bootstrap:
checking for the existence of /usr/share/aclocal/ao.m4 and exiting with an error if not present (we cannot use the pkg-config because ao.m4 is used to generate the configure script)

And again. The bootstrap thing is for making the developer happy, because he must call only one program/script for getting the repository ready. It is not for others ;)

Quoted 2 lines

* configure.in:
used pkg-config to check the presence of the Bluetooth dev libraries

You can also use AM_PATH_BLUEZ. Since bluez-libs-2.13 it is also available now, because not all systems use pkg-config.

Regards

Marcel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Marcel,

Quoted 1 line · Marcel Holtmann
Quoted 1 line

after having solved the automake error, configure gave me another one

<cut>

Quoted 3 lines

And again. The bootstrap thing is for making the developer happy, because he must call only one program/script for getting the repository ready. It is not for others ;)

I know this, but the problem here is that if someone like me (not a developer, not really a newbie) wants to try his Bluetake BT420EX with the bluetooth-alsa project, he should go with the CVS (no other released versions). And so he has some problem, because there're no info about the requirements (automake-1.7, the Audio Output libraries and the Bluetooth libraries, even if the last one was my fault, it's quite obvious that for a Bluetooth project you need the Bluetooth libraries).

So, IMHO also for developers, at least a 'required packages' section should be added to the README.

BTW, with my patch there's still one program/script ;-)

Quoted 2 lines

You can also use AM_PATH_BLUEZ. Since bluez-libs-2.13 it is also available now, because not all systems use pkg-config.

Ok, I'll add this ASAP, but ATM Debian unstable still has 2.11 and I should prepare my own Debian bluez-2.13 packages.

Thx, bye,
Gismo / Luca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFB7mxJVAp7Xm10JmkRAoecAJ9i3Uwbz9Cf5OcAIw54Si06BlWGLQCfUNrk Cswut1XKBFQrwuQ1+04IiHA=
=QquH
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#3 lore raw

Hi Luca,

Quoted 11 lines
Quoted 3 lines

And again. The bootstrap thing is for making the developer happy, because he must call only one program/script for getting the repository ready. It is not for others ;)

I know this, but the problem here is that if someone like me (not a developer, not really a newbie) wants to try his Bluetake BT420EX with the bluetooth-alsa project, he should go with the CVS (no other released versions). And so he has some problem, because there're no info about the requirements (automake-1.7, the Audio Output libraries and the Bluetooth libraries, even if the last one was my fault, it's quite obvious that for a Bluetooth project you need the Bluetooth libraries).

Quoted 2 lines

So, IMHO also for developers, at least a 'required packages' section should be added to the README.

I don't lead this project and so these are only my two cents. Brad is responsible and it is actually his decision.

Maybe doing a release once in a while is a good idea, but the problem is the kernel module is not in that shape that I would accept it. However I like the idea of doing everything in userspace as an ALSA plugin and that should be the way to go.

Quoted 2 lines

Ok, I'll add this ASAP, but ATM Debian unstable still has 2.11 and I should prepare my own Debian bluez-2.13 packages.

Yeah, we really need new packages (btw 2.14) for Debian Sid.

Regards

Marcel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

guys

Quoted 2 lines
Quoted 2 lines

So, IMHO also for developers, at least a 'required packages' section should be added to the README.

yes, that's a no-brainer :) and I added it to the docs

the README is just generated from our main web page http://bluetooth-alsa.sf.net

brad

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel