I am trying to build android project
Getting below error even after setting correct path for toolchains
/bin/sh: lzop: not found
AS arch/arm/boot/compressed/piggy.lzo.o
arch/arm/boot/compressed/piggy.lzo.S: Assembler messages:
arch/arm/boot/compressed/piggy.lzo.S:4: Error: file not found: arch/arm/boot/compressed/piggy.lzo
make[2]: *** [arch/arm/boot/compressed/piggy.lzo.o] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
make: Leaving directory `/home/user/workspace/android/kernel/exynos54xx'
build: error: build-kernel failed and die !!!
Here is a solution if you're using Ubuntu:
$ sudo apt-get install lzop
or look for the lzop package of you OS.
Related
Build output is:
... very long output of compiled files is omitted...
[MAK] CustomTarget/android/source/done
creating liboSettings.gradle
[build PY ] native-code.cxx
/bin/sh: 1: /home/bart/Projects/libreoffice/solenv/bin/native-code.py: not found
Makefile:15: recipe for target 'native-code.cxx' failed
make[2]: *** [native-code.cxx] Error 127
/home/bart/Projects/libreoffice/android/CustomTarget_lo_android.mk:17: recipe for target '/home/bart/Projects/libreoffice/workdir/CustomTarget/android/source/done' failed
make[1]: *** [/home/bart/Projects/libreoffice/workdir/CustomTarget/android/source/done] Error 2
Makefile:282: recipe for target 'build' failed
make: *** [build] Error 2
I am on Ubuntu 18.04.2 LTS.
My autogen.input is:
--with-distro=LibreOfficeAndroid
--with-android-sdk=/home/bart/Android/Sdk
--with-android-ndk=/home/bart/Android/android-ndk-r20
--with-jdk-home=/usr/lib/jvm/java-8-openjdk-amd64
I have used this page as a manual.
Also, I have noticed that native-code.cxx file is empty in libreoffice/android/source
Ok, figured it out. I didn't had python2 installed on my system (however had python3). Could configure check it?
For cross compiling MPICH2 for Android.
I found the reference here
http://hex.ro/wp/projects/personal-cloud-computing/compiling-mpich2-for-android-and-running-on-two-phones/
and here
www.scientificbulletin.upb.ro/rev_docs_arhiva/fullffc_583765.
I did following
BuildRoot
Used Build Root (buildroot-2016.02) for cross compiling ARM toolchain
Target options :
Target Architecture as ARM little endian
Target binary format as ELF
Selected Toolchain as Buildroot toolchain (Internal)
Kernel headers as 3.12.x
C library as uClibc
After this make command was run.
MPICH2
mpich-3.2.tar.gz was extracted and following commands were executed
1. $ export PATH=/home/mpiuser/CrossBuild/buildroot-2016.02/output/host/usr/bin:$PATH
2. $ sudo ./configure --prefix=/home/mpiuser/CrossBuild/arm-mpich-install --disable-fortran CC=/home/mpiuser/CrossBuild/buildroot-2016.02/output/host/usr/bin/arm-linux-gcc --host=arm-linux
After this make was run for mpich-3.2, and during compilation following error was thrown :
GEN lib/libmpi.la
CXX src/binding/cxx/initcxx.lo
CXXLD lib/libmpicxx.la
lib/.libs/libmpi.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory `/home/mpiuser/CrossBuild/mpich-3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mpiuser/CrossBuild/mpich-3.2'
make: *** [all] Error 2
Request to please help. Thanks
I'm trying to build FFmpeg for android, everything works just fine until the build of build_android.sh, I get at the end :
/bin/sh: 1: cd: can't cd to ../ffmpeg-build/armeabi/lib
make: *** [install-libavresample-shared] Error 2
make: *** Waiting for unfinished jobs....
/bin/sh: 1: cd: can't cd to ../ffmpeg-build/armeabi/lib
make: *** [install-libavutil-shared] Error 2
/bin/sh: 1: cd: can't cd to ../ffmpeg-build/armeabi/lib
make: *** [install-libswresample-shared] Error 2
I've been inspecting this for a while but couldn't figure out where the problem is..
Any help will be very appreciated. Thank you.
Try This ...This is to run ffmpeg commands on android armeabi and armv7-a devices.
Link
I follow guild, clone project and run
make
and get following error:
/home/xx/android-ndk-r9/sources/android/cpufeatures/cpu-features.c:59:35: fatal error: sys/system_properties.h: No such file or directory
compilation terminated.
make[1]: *** [codec/common/cpu-features.o] Error 1
make[1]: Leaving directory `/home/xx/linphone-android/submodules/externals/build/openh264/arm'
make: *** [build-openh264-arm] Error 2
I using Ubuntu 14.4, ndk-r9. Anybody help me on this?
I need to implement speech to text offline functionality for my android apps, I found library sphinxbase i tried to installed in ubuntu but something went wrong and the error occured.
I have download the both package of sphinxbase and pockectsphinx and placed in same directory , As document says i ran ./autogen.sh file successfuly after this one message occur to run make command to compile packages after make command there is some error occur
libtool: install: /usr/bin/install -c .libs/libsphinxbase.a /usr/local/lib/libsphinxbase.a
libtool: install: chmod 644 /usr/local/lib/libsphinxbase.a
libtool: install: ranlib /usr/local/lib/libsphinxbase.a/bin/bash: /home/speech: No such file or directory
make[4]: *** [install-libLTLIBRARIES] Error 127
make[4]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src'
make: *** [install-recursive] Error 1
Strip off the space in the directory name.
Try renaming "speech to text" to "speechtotext".