I am trying to learn how to build LG K350Z (LG K8 350Z) kernel without modifications (changes to ".config" file), so I downloaded kernel source from lge opensource website.
Now when compiling I keep getting this type of error:
In file included from drivers/input/touchscreen/mediatek/met_ftrace_touch.h:50:0,
from drivers/input/touchscreen/mediatek/tpd_debug.c:8:
include/trace/define_trace.h:83:43: fatal error: ./met_ftrace_touch.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
I am compiling for ARM arch with GCC 4.8.
Anyone know what could be the problem or how it can be fixed?
Related
Hi,
I have downloaded the s2 kernel from github GalaxySII/samsung-kernel-galaxysii and can successfully compile with the Sourcery toolchain.
I want to compile wpa_supplicant 0.6 so that I can use the client (wpa_cli) on my phone. I have downloaded the source from the AOSP repository android-git-kernel-org/platform/external/wpa_supplicant_6
So I now have the source in directory called "external/wpa_supplicant_6" in the root directory of my s2 kernel source.
The .config file looks OK and I have edited Android.mk in external/wpa_supplicant_6/wpa_supplicant so that it contains the line:
WPA_BUILD_SUPPLICANT := true
In directory external/wpa_supplicant_6/wpa_supplicant I type "make" and get lots of errors about undeclared variables.
Can anyone suggest what my error is?
Thanks,
NT
I know that is a very old post, but is a good question.
I'm interested to build wpa_supplicant v2.3 and 2.1 without to rebuild the entire android os.
But, like you i've a huge amount of problems.
I am attempting to compile Python along with the modules "openssl pil zope2" for Android using the "Python-for-android" project (https://github.com/kivy/python-for-android).
However it is not successful and errors out with the below error:
Code:
Getting distribution for 'zope.security==3.7.4'.
In file included from
/home/zac/Documents/Projects/Apps/python-for-android/build/hostpython/Python-2.7.2/Include/Python.h:58:0,
from src/zope/security/_proxy.c:19:
/home/zac/Documents/Projects/Apps/python-for-android/build/hostpython/Python-2.7.2/Include/pyport.h:849:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
[B]#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."[/B]
^
src/zope/security/_proxy.c: In function 'init_proxy':
src/zope/security/_proxy.c:1006:3: warning: dereferencing type-punned
pointer will break strict-aliasing rules [-Wstrict-aliasing]
Py_INCREF(&SecurityProxyType);
^
error: Setup script exited with error: command
'arm-linux-androideabi-gcc' failed with exit status 1
An error occurred when trying to install zope.security 3.7.4. Look
above this message for any errors that were output by easy_install.
While:
Installing test.
Getting distribution for 'zope.security==3.7.4'.
Error: Couldn't install: zope.security 3.7.4
What I am wondering is if anyone else has ever had a similar issue when trying to use the Android gcc, I have build zope.security just fine using the ARM gcc so it is not a platform issue but some bug/issue with the provided Android gcc in the NDK
Hey guys, I have device tree from dianlujitao, hardware from codeaurora, Vendor and kernel source from official huawei, and try to compile cm11 for my device(HUAWEI honor 4X), but when making hardware/qcom/audio-caf/hal/audio_extn/ssr.c, I got this error message: no such header file "surround_filters_interface.h".
I search all of sync of source, google, github. still cant find header file "surround_filters_interface.h".
if guys can help, i would be grateful.
Code:
target arm C: audio.primary.msm8916 <= hardware/qcom/audio-caf/hal/audio_extn/ssr.c
hardware/qcom/audio-caf/hal/audio_extn/ssr.c:34:40: fatal error: surround_filters_interface.h: No such file or directory
compilation terminated.
make: *** [/android/cm11/out/target/product/c8817d/obj/SHARED_LIBRARIES/audio.primary.msm8916_intermediates/audio_extn/ssr.o] Error 1
make: leaving directory “/android/cm11”
[email protected]:/android/cm11#
You probably have AUDIO_FEATURE_ENABLED_SSR defined in your device, but audio-caf doesn't contain it. Look for and try to remove this in your BoardConfig.mk file in device tree.
mrjabol61 said:
You probably have AUDIO_FEATURE_ENABLED_SSR defined in your device, but audio-caf doesn't contain it. Look for and try to remove this in your BoardConfig.mk file in device tree.
Click to expand...
Click to collapse
It works, thank you!
Maybe I shouldn't change audio-caf.
Sometimes it's necessary to change something in repos, if you can't get it working.
I am trying to port AOSPA marshmallow-caf (paranoid android) to victara and i cant get past these 2
1.
Code:
frameworks/base/packages/StatementService/src/com/android/statementservice/DirectStatementService.java:149: error: cannot access OkCacheContainer
mHttpResponseCache = HttpResponseCache.install(httpCacheDir, HTTP_CACHE_SIZE_IN_BYTES);
^
class file for com.android.okhttp.OkCacheContainer not found
1 error
make: *** [build/core/java.mk:394: out/target/common/obj/APPS/StatementService_intermediates/classes-full-debug.jar] Error 41
i tried building for the bacon using device trees and vendor stuff from official aospa repos but it also throws this error so i think its not device specific.
2.
Secondly the kernel is not compiling its throwing section mismatch error
Code:
ERROR: modpost: Found 11 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
i am using the CM kernel sources and defconfig
On googling someone suggested to change toolchains so switched to the one provided in AOSPA manifest (namely eabi-4.8 toolchain in google aosp repos , revision android-r16) previously i was using UBERTC arm-eabi-4.8.
But the exact same error popped up and the exact same file vmlinux.o
Interestingly the kernel is built successfully if i build it separately outside the AOSPA tree , or if i build it inside resurrection remix source tree , with both the toolchains .
Also since i mentioned bacon previously , bacon's kernel doesn't throw this error.
EDIT :
I reverted this
the kernel compiled without section mismatches but i encountered
Code:
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
make[2]: *** [modules] Error 1
make[1]: *** [sub-make] Error 2
i think this and this were responsible
i tried compiling with
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
and got the bootimg
so i guess kernel is done
but the class file not found error remains
Ok so i was able to fix the class file not found error also
The problem was that i was using jdk8 i switched to jdk7 and it compiled successfully
Hello there
I have been trying to compile LineageOS 14.1 for my Xperia E3 for a few days, but compilation stops in the following error:
https://pastebin.com/wtFGquBt
and I don't know what is failing.
At first it said:
Code:
frameworks/av/media/libstagefright/FFMPEGSoftCodec.cpp:51:10: fatal error: 'OMX_QCOMExtns.h' file not found
#include <OMX_QCOMExtns.h>
^
1 error generated.
and I modified Android.mk to point to that sources on hardware/qcom/media/mm-core/inc
but I still have the first error. What can I do?
Fixed modding some files
Fixed manually pointing to that file on Android.mk
How you fixed bro i m also getting same error
frameworks/av/media/libstagefright/FFMPEGSoftCodec.cpp:51:10: fatal error: 'OMX_QCOMExtns.h' file not found
#include <OMX_QCOMExtns.h>