hi all
i use linphone-1.0.0pre5 and i try to compile for arm-linux. i first
compiled speex and found that if you use ./configure
--prefix=~/build/speex then we don't have the header files in
~/build/speex/include/ as usual, but in ~/build/speex/include/speex/.
once copied the headers to .../include I try to configure with the
command that is quoted in the end of this mail, i get:
...
checking for speex.h... yes
checking for speex_encode in -lspeex... no
configure: error: Could not find libspeex (speex codec). Please
install libspeex<1.1 or libspeex>=1.1.6
I do use the version 1.1.6 of speex and i use the
--with-speex=/axoteclinux/crossdev/arm/build/speex
the config.log of linphone says:
configure:23086: checking for speex_encode in -lspeex
configure:23116: /axoteclinux/arm-linux-uclibc/usr/bin/arm-uclibc-gcc
-o conftest -O2 -fno-exceptions -I$(top_srcdir)/
support -I/axoteclinux/crossdev/arm/build/speex/include -lm
-L/axoteclinux/crossdev/arm/build/speex/lib conftest.c -ls
peex -ldl >&5
/axoteclinux/arm-linux/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
configure:23122: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define GETTEXT_PACKAGE "linphone"
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define __LINUX__ 1
| #define __ARM__ 1
| #define PACKAGE_LOCALE_DIR
"/axoteclinux/crossdev/arm/build/linphone-0.12.1//share/locale"
| #define PACKAGE_DATA_DIR
"/axoteclinux/crossdev/arm/build/linphone-0.12.1//share"
| #define PACKAGE_SOUND_DIR
"/axoteclinux/crossdev/arm/build/linphone-0.12.1//share/sounds/linphone"
| #define HAVE_SYS_SOUNDCARD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_SPEEX_H 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char speex_encode ();
| int
| main ()
| {
| speex_encode ();
| ;
| return 0;
| }
configure:23148: result: no
configure:23165: error: Could not find libspeex (speex codec). Please
install libspeex<1.1 or libspeex>=1.1.6
when i check the dir i see
/axoteclinux/crossdev/arm/build/speex/lib/libspeex.a
/axoteclinux/crossdev/arm/build/speex/lib/libspeex.la
when i check the libspeex.a file with nm i see [among much more]
speex.o:
U floor
00000000 t gcc2_compiled.
000002bc T nb_mode_query
00000168 T speex_decode
00000188 T speex_decode_int
00000090 T speex_decode_native
0000029c T speex_decoder_ctl
00000054 T speex_decoder_destroy
0000001c T speex_decoder_init
000000b0 T speex_encode
000000d0 T speex_encode_int
00000070 T speex_encode_native
0000027c T speex_encoder_ctl
00000038 T speex_encoder_destroy
00000000 T speex_encoder_init
000003c0 T speex_lib_ctl
U speex_warning_int
0000033c T wb_mode_query
I am convinced that my speex-lib is ok and I would be pleased if
anyone could give me a hint, what to try next.
thank you.
beni
***** here is my configure:
CC=/axoteclinux/arm-linux-uclibc/usr/bin/arm-uclibc-gcc \
CXX=/axotec/gcc-3.2.2/toolchain/arm-linux/bin/g++ \
CFLAGS="-O2 -fno-exceptions" \
CXXFLAGS="-O2 -fno-exceptions" \
CPPFLAGS="-O2 -fno-exceptions \
-I/axoteclinux/crossdev/arm/build/speex/include/speex \
-I/home/beni/build/include/osipua/ \
-I/axoteclinux/crossdev/arm/build/libosip-arm/include/ \
-I/axoteclinux/crossdev/arm/build/libosip-arm/include/osip/ \
-I/axoteclinux/crossdev/arm/build/libogg/include" \
AR=/axoteclinux/arm-linux-uclibc/usr/bin/arm-uclibc-ar \
RANLIB=/axoteclinux/arm-linux-uclibc/usr/bin/arm-uclibc-ranlib \
NM=/axoteclinux/arm-linux-uclibc/usr/bin/arm-uclibc-nm
ac_cv_path_NM=/axoteclinux/arm-linux-uclibc/usr/bin/arm-uclibc-nm
LDFLAGS="-L/axoteclinux/crossdev/arm/build/libiconf-arm/bin
-L/axotec/gcc-3.2.2/toolchain/lib \
-L/axoteclinux/lib -L/axoteclinux/lib/gcc-lib/arm-linux/2.95.3 \
-L/axoteclinux/uClibc/lib -L/axoteclinux/uClibc/libc
-L/axoteclinux/crossdev/arm/build/libiconf-arm/lib
-L/axoteclinux/crossdev/arm/build/libosip-arm/lib
-L/axoteclinux/crossdev/arm/build/libosip-arm/include/osip
-L/home/beni/build/include/ -L/home/beni/build/include/osipua/
-L/axoteclinux/crossdev/arm/build/libosip-arm/include
-L/axoteclinux/crossdev/arm/build/libosip2-2.2.0/lib
-L/axoteclinux/crossdev/arm/build/libogg/lib
-L/axoteclinux/crossdev/arm/build/libogg/include
-L/axoteclinux/crossdev/arm/build/speex/lib -L/usr/local/lib
-L/axoteclinux/crossdev/arm/build/speex" \
./configure --host=arm-linux --disable-shared --enable-static
--build=i686
--prefix=/axoteclinux/crossdev/arm/build/linphone-1.0.0pre5/
--disable-glib --with-speex=/axoteclinux/crossdev/arm/build/speex
_______________________________________________
Linphone-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-users