linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] "undefined reference to 'log2f'" during Androi


From: Данияр Супиев
Subject: Re: [Linphone-developers] "undefined reference to 'log2f'" during Android build
Date: Thu, 7 Nov 2013 13:41:30 +0600

Hi. I have same problem. Some time ago I solved this problem by installing some lib. but now I can't remember how I did it.


2013/11/4 Damian Helme <address@hidden>
Hi,

I've just tried building the android version of Linphone on OS-X and I'm getting the error: "undefined reference to 'log2f'".

The context is:
[armeabi-v7a] SharedLibrary  : liblinphone-armeabi-v7a.so
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(encoder.o): in function x264_validate_parameters:encoder.c(.text+0x1a2c): error: undefined reference to 'log2f'
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(encoder.o): in function x264_validate_parameters:encoder.c(.text+0x1a6b): error: undefined reference to 'log2f'
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(analyse.o): in function x264_analyse_prepare_costs:analyse.c(.text+0x26e32): error: undefined reference to 'log2f'
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(ratecontrol.o): in function init_pass2:ratecontrol.c(.text+0x28ef): error: undefined reference to 'log2f'
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(ratecontrol.o): in function x264_ratecontrol_new:ratecontrol.c(.text+0x838d): error: undefined reference to 'log2'
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(ratecontrol.o): in function x264_ratecontrol_new:ratecontrol.c(.text+0x83b8): error: undefined reference to 'log2'
/Applications/android-ndk-r9b/toolchains/x86-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.6/../../../../i686-linux-android/bin/ld: jni/..//submodules/externals/build/x264/x86/libx264.a(ratecontrol.o): in function x264_ratecontrol_new:ratecontrol.c(.text+0x83d1): error: undefined reference to 'log2'
collect2: ld returned 1 exit status

I'm not sure if it's related, but earlier I was getting the error:

"./autogen.sh: line 25: libtoolize: command not found"

which I fixed by editing /submodules/mssilk/autogen.sh and
/submodules/libilbc-rfc3951/autogen.sh and changing

/opt/local/bin/glibtoolize to /usr/local/bin/glibtoolize.


At the moment I'm scouring the Makefile to see what I might be able to do to fix the linking error, but in the meantime has anyone come across this before? Is there an easy fix?


Thanks


Damian.



_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]