Android SREC_JNI compilation error - android

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

Related

Linphone-android compilation error

I am compiling linphone for android.i have set ndk and sdk paths.and installed pre-requisites.i also have 32-bit libs in my ubuntu12.04-64-bits.But when i 'make' the source code.it gives me 'sqlite.3h' file not found.
it is my log
In file included from
jni/..//submodules/linphone/build/android/../../coreapi/account_creator.c:21:0:
jni/..//submodules/linphone/build/android/../../coreapi/private.h:55:21: fatal error: sqlite3.h: No such file or directory
#include "sqlite3.h"
^
compilation terminated.
make[1]: *** [obj/local/armeabi-v7a/objs/linphone/account_creator.o] Error 1
I successfully able to compile linphone-android on ubuntu 12.04lts 64-bits.Problem solved by downloading arm-2009q3(consists of arm libraries and executables)and export its bin path in bash file(i.e. export PATH=$PATH:/usr/local/arm-2009q3/bin).

Android NDK Cross Compile sys/signal.h: No such file or directory

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

Linphone NDK compilation error

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.

Error compiling mupdf library android

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

opencv.hpp not found in NDK build on Windows

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.

Categories

Resources