[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libquran configuration and compilation errors + patch
- To: Development Discussions <developer at arabeyes dot org>
- Subject: libquran configuration and compilation errors + patch
- From: nabil ben khalifa <nabil_benkhalifa at yahoo dot fr>
- Date: Wed, 18 Jul 2007 15:15:03 +0200 (CEST)
When I tried to configure libquran got from arabeyes cvs, I had the following error:
configure: error: "libspeex header not found"
In fact, configure looks for speex headers in /usr/include/ while they are in /usr/include/speex. The same problem arises with quran.h and quranaudio.c when compiling. (I use Mandriva release 2007.0 (Official) for i586 and
Moreover, it seems that the "le_short" function is no more exported by the speex library (I got the following error:
quran/libquran/.libs/libquran.so: undefined reference to `le_short'
collect2: ld returned 1 exit status )
I have a patch to resolve these problems, are there any developers of the quran project so that they can look at the patch and discuss these problems ?
I had also errors on gnomequran due to incompatibilities between the gnomequran application and the libquran data structures. Here also I have a patch which solves these
problems (I will send it if someone is interested)
Here is the patch for libquran
Index: configure.in
===================================================================
RCS file: /home/arabeyes/cvs/projects/quran/libquran/configure.in,v
retrieving revision 1.14
diff -b -u -2 -r1.14 configure.in
--- configure.in 29 Dec 2005 19:03:49 -0000 1.14
+++ configure.in 17 Jul 2007 16:04:29 -0000
@@ -25,5 +25,5 @@
AC_HEADER_STDC
AC_CHECK_HEADER(expat.h,,AC_MSG_ERROR("libexpat header not found"))
-AC_CHECK_HEADER(speex.h,,AC_MSG_ERROR("libspeex header not found"))
+AC_CHECK_HEADER(speex/speex.h,,AC_MSG_ERROR("libspeex header not found"))
dnl XIPH_PATH_OGG(,AC_MSG_ERROR("libogg not found"))
AC_CHECK_HEADER(ogg/ogg.h,,AC_MSG_ERROR("libogg header not found"))
Index: quran.h
===================================================================
RCS
file: /home/arabeyes/cvs/projects/quran/libquran/quran.h,v
retrieving revision 1.18
diff -b -u -2 -r1.18 quran.h
--- quran.h 29 Dec 2005 19:03:49 -0000 1.18
+++ quran.h 17 Jul 2007 16:04:30 -0000
@@ -31,5 +31,5 @@
#ifndef SPEEX_CALLBACKS_H
-#include <speex_callbacks.h>
+#include <speex/speex_callbacks.h>
#endif
Index: quranaudio.c
===================================================================
RCS file: /home/arabeyes/cvs/projects/quran/libquran/quranaudio.c,v
retrieving revision 1.5
diff -b -u -2 -r1.5 quranaudio.c
--- quranaudio.c 29 Dec 2005 19:03:49 -0000 1.5
+++ quranaudio.c 17 Jul 2007 16:04:30 -0000
@@ -21,8 +21,8 @@
*/
-#include <speex.h>
-#include <speex_header.h>
-#include <speex_stereo.h>
-#include
<speex_callbacks.h>
+#include <speex/speex.h>
+#include <speex/speex_header.h>
+#include <speex/speex_stereo.h>
+#include <speex/speex_callbacks.h>
#include <ogg/ogg.h>
@@ -33,4 +33,6 @@
#include "quranaudio.h"
+#define le_short(s) ((short) ((unsigned short) (s) << 8) | ((unsigned short) (s) >> 8))
+
/********************************* Published functions ********************************/
Nabil Ben Khalifa
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail