Getting error when trying to compile Linphone Native Library using NDK
G:\WorkSpaces\Demo\LinphoneLauncherActivity>G:\android-ndk-r8d-windows\android-n
dk-r8d\ndk-build
Build X264 plugin for mediastreamer2
"Compile arm : vpx <= vpx_mem.c
In file included from jni/..//submodules/externals/build/libvpx/../../libvpx/vpx
_mem/vpx_mem.c:18:0:
jni/..//submodules/externals/build/libvpx/../../libvpx/vpx_mem/include/vpx_mem_i
ntrnl.h:14:24: fatal error: vpx_config.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi-v7a/objs/vpx/vpx_mem/vpx_mem.o] Error 1
Any solution or help regarding this is thankful.. Please help if anybody knows.
You should follow the linphone instructions, or at least run the prepare_sources.sh script.
Related
I am trying to compile vlc-android from source acording to this manual. AndroidCompile
I'm getting this error:
CC src/smb_utils.lo
src/smb_utils.c:32:19: fatal error: iconv.h: No such file or directory
#include <iconv.h>
^
compilation terminated.
make[1]: *** [src/smb_utils.lo] Error 1
And at the end this:
checking for iconv... no, consider installing GNU libiconv
configure: error: iconv() not found
make: *** [.zvbi] Error 1
contribs: make failed
The weird thing is that it workied fine yesterday.
Im using Linux Mint 17.2
Found the solution (workaround actually).
Problem is that android patch for iconv (contrib/src/iconv/libiconv-android-ios.patch) fails to apply. It is already applied in iconv version 1.14
Temporary workaround is to comment out patch applying for android. It is on line 26 of contrib/src/iconv/rules.mak
I am compiling gdcm with cross compile but it gives following error for
sys/signal.h: No such file or directory ( NDK does not have that I know it)
but is there any alternative I can resolve that error for Cross compilation of library.
In file included from /home/kirtan.patel/Desktop/GDCMMob/Build/Utilities/socketxx/socket++/config.h:135:0,
from /home/kirtan.patel/Desktop/GDCMMob/GDCMSource/Utilities/socketxx/socket++/sockstream.h:22,
from /home/kirtan.patel/Desktop/GDCMMob/GDCMSource/Utilities/socketxx/socket++/sockstream.cpp:49:
/home/kirtan.patel/Desktop/GDCMMob/GDCMSource/Utilities/socketxx/socket++/local.h:40:24: fatal error: sys/signal.h: No such file or directory
#include <sys/signal.h>
^
compilation terminated.
make[2]: *** [Utilities/socketxx/socket++/CMakeFiles/socketxx.dir/sockstream.cpp.o] Error 1
make[1]: *** [Utilities/socketxx/socket++/CMakeFiles/socketxx.dir/all] Error 2
sys/signal.h is only available in latest Android NDK and under platforms above and equal to 21 (/android-ndk-r10e/platforms/android-21/arch-arm/usr/include/sys/signal.h).
I had this issue while building RTKLib and fixed this using latest Toolchain.
Thanks,
Himanshu
I am compiling mupdf 1.2 from here it does not have any sub directory generated but when I try to compile uding
$ndk-build
in cygwin this error occurs
jni/../../pdf/pdf_cmap_table.c:5:35: fatal error: ../generated/cmap_cns.h:
No such file or directory compilation terminated.
/cygdrive/c/android-ndk-r8e/build/core/build-binary.mk:269: recipe for target
`obj/local/armeabi/objs/mupdfcore/__/__/pdf/pdf_cmap_table.o' failed
make: *** [obj/local/armeabi/objs/mupdfcore/__/__/pdf/pdf_cmap_table.o] Error 1
I have solved the problem by first compiling the third-party libraries using visual studio...
just follow steps on this link
I am trying to compile SREC_JNI code in Eclipse (Windows 7), I got the code from here https://github.com/arthurv/srec
I am getting the following error
C:\android-ndk-r8c\ndk-build.cmd all
"Compile++ thumb : srec_jni <= android_speech_srec_MicrophoneInputStream.cpp
jni/srec_jni/android_speech_srec_MicrophoneInputStream.cpp:26:23: fatal error: utils/Log.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs/srec_jni/android_speech_srec_MicrophoneInputStream.o] Error 1
**** Build Finished ****
I would like to know where the utils folder is located and how to compile this SREC code.
This project is a fork of a component of Android OS. It should be built from the Android system tree and not with NDK as a standalone project.
You can find
utils/Log in platform/frameworks/native repository:
git clone https://android.googlesource.com/platform/frameworks/native
I am getting some issues here while I am trying to compile my code with Cgywin.
$ /cygdrive/c/native_work/android-ndk-r8b/ndk-build
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module main
Android NDK: NotePaperDetector.hpp
Install : libmain.so => libs/armeabi-v7a/libmain.so
so how I can compile the .hpp file ?
Now as #mah you said I have removed it from my Android.mk but now its showing some different error -
$ /cygdrive/c/native_work/android-ndk-r8b/ndk-build
Compile++ thumb : main <= NotePaperDetector.cpp
In file included from jni/NotePaperDetector.hpp:4:0,
from jni/NotePaperDetector.cpp:1:
jni/NoteLocation.hpp:4:30: fatal error: opencv2/opencv.hpp: No such file or directory
compilation terminated.
/cygdrive/c/native_work/android-ndk-r8b/build/core/build-binary.mk:255: recipe for target `obj/local/armeabi-v7a/objs/main/NotePaperDetector.o' failed
make: *** [obj/local/armeabi-v7a/objs/main/NotePaperDetector.o] Error 1
With the latest NDK releases you don't need Cygwin at all.
By the way a GNU/Linux platform is always the best for Android developers.