Error while building old Android Kernel 3.10 - android

I'm trying to build an old Android Kernel which is provided by Asus.
I've uploaded the source code here : https://github.com/dchenaux/android_kernel_asus_z300c
I'm getting the following error :
arch/x86/kernel/setup.c: In function ‘setup_arch’:
arch/x86/kernel/setup.c:1134:2: error: implicit declaration of function ‘early_init_dt_scan’ [-Werror=implicit-function-declaration]
early_init_dt_scan(x86_fdt_header());
^
cc1: some warnings being treated as errors
Does someone know where it could come from ? Is it my environment ? Or the configuration ?
Thanks for your help

Related

Building Android 7 from sources: export_includes and import_includes related error

I encountered the following error when I tried to build Android 7 (QAEP from codeaurora.org):
ninja: error:
'out/target/product/msm8916_64/obj_arm/SHARED_LIBRARIES/
libqct_resampler_intermediates/export_includes', needed by
'out/target/product/msm8916_64/obj_arm/SHARED_LIBRARIES/
libaudioresampler_intermediates/import_in',
missing and no known rule to make it
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1
I did a quick find for *qct* and *audioresampler*. The first one returned only a few source files from the vendor wlan driver, but no library (e.g. libqct directory). And the second returned nothing at all.
What does this error mean? Are there missing modules, that are referenced but not included in the manifest?
Any help is appreciated.

tcl compilation error in android build environment

I am able to compile tcl8.6.1 source using GNU Makefile for X86 successfully. Also able cross compile for arm using Android standalone tool chain with make.
When I try to build the same tcl source using Android environment by writing my own Android.mk file and with "mm" command, i am seeing "error: expected ')' before '->' token" error. Detailed error log is given for reference. Please suggest how and where it can go wrong.
system/extras/work/tcl8.6.1/unix/../generic/tclOODecls.h:183:16: error: expected ')' before '->' token
(tclOOStubsPtr->tcl_NewObjectInstance) /* 13 */
^
system/extras/work/tcl8.6.1/unix/../generic/tclOO.c:1562:1: note: in expansion of macro 'Tcl_NewObjectInstance'
Tcl_NewObjectInstance(
^
system/extras/work/tcl8.6.1/unix/../generic/tclOODecls.h:157:16: error: expected ')' before '->' token
(tclOOStubsPtr->tcl_CopyObjectInstance) /* 0 */
^
system/extras/work/tcl8.6.1/unix/../generic/tclOO.c:1840:1: note: in expansion of macro 'Tcl_CopyObjectInstance'
Tcl_CopyObjectInstance(
^
make: Leaving directory `/local/mnt/workspace/Code/TAG_JUNE_15'
make failed to build some targets (38 seconds)
That file (tclOODecls.h) is an auto-generated C header file that describes the C Interface to the TclOO part of the Tcl API. The error indicates that something is not handling the tclOOStubsPtr token well, which is exceptionally strange; it should be a variable that is defined in the stub library. There's something horribly wrong, and given that you appear to be the only person with the problem, I'm guessing it is in your configuration or how you are using it.

Qt Mobile Application Error _GLIBCXX_VISIBILITY

I'm currently trying to run an application in my android device but i keep receiving this error :
C:\Users\Computer\Documents\android-ndk-r11c\sources\cxx-stl\gnu-libstdc++\4.9\include\bits\stl_relops.h:67: error: expected '{' before '_GLIBCXX_VISIBILITY'
namespace std _GLIBCXX_VISIBILITY(default)
C:\Users\Computer\Documents\android-ndk-r11c\sources\cxx-stl\gnu-libstdc++\4.9\include\bits\stl_relops.h:67: error: expected constructor, destructor, or type conversion before '(' token
namespace std _GLIBCXX_VISIBILITY(default)
^
I saw this post : Qt 5.2.1 for Android on Windows not building
But I dont understand this point and I think is the solution : "Did you compile Qt yourself? If not, you must ensure that you're using the same compiler for your application as was used to compile Qt."
Or maybe is due to another problem
Thank you for your help
I fixed it, the problem was due to the version of the Android NDK, it work with the Android NDK 12 Beta

Apportable - 'AssetsLibrary/AssetsLibrary.h' file not found

I have an iOS Objective C code for iPhone that I am trying to convert into android using Apportable. The issue is that I am getting this error:
1 error generated.
scons: *** [Build/android-armeabi-debug/com.iapptechnologies.time/Users/Home/PhotoTastic/PhotoTastic/AppClasses/ViewController.m.o] Error 1
In file included from /Users/Home/PhotoTastic/PhotoTastic/OtherClasses/QBImagePickerController/QBAssetCollectionViewController.m:11:
/Users/Home/PhotoTastic/PhotoTastic/OtherClasses/QBImagePickerController/QBAssetCollectionViewController.h:12:9: fatal error:
'AssetsLibrary/AssetsLibrary.h' file not found
#import <AssetsLibrary/AssetsLibrary.h>
^
Any help would be much appreciated. Thanks!
It's strange that AssetsLibrary is not added automatically from parsing the xcode build.
A workaround is to add AssetsLibrary to the "deps" section of "add_params" in configuration.json
Note that AssetsLibrary is not available in the Starter version of the SDK. At least the Indie version is needed.
I think this will do,In xcode 5 it looks different but the path is the same

C, Android NDK: import own input.h version containing missing declarations

I'm trying to get the Eventinjector project from pocketmagic.net found here.
This means working with a precoded jni library writen in C. My problem is that I get some build errors when I try to compile the native code. The error log is long and I believe all errors are the same, therefore I'll only post part of it.
jni/EventInjector.h:718:9: error: (near initialization for 'mt_tool_labels[0].value')
jni/EventInjector.h:719:9: error: 'MT_TOOL_PEN' undeclared here (not in a function)
jni/EventInjector.h:719:9: error: initializer element is not constant
jni/EventInjector.h:719:9: error: (near initialization for 'mt_tool_labels[1].value')
jni/EventInjector.h:720:9: error: 'MT_TOOL_MAX' undeclared here (not in a function)
jni/EventInjector.h:720:9: error: initializer element is not constant
jni/EventInjector.h:720:9: error: (near initialization for 'mt_tool_labels[2].value')
jni/EventInjector.c: In function 'debug':
jni/EventInjector.c:82:2: error: format not a string literal and no format arguments [- Werror=format-security]
cc1.exe: some warnings being treated as errors
make: *** [obj/local/armeabi/objs/EventInjector/EventInjector.o] Error 1
Going throught the comments under the blogpost I discovered that "Alessandro" had the same problem but had found a solution. (post 51) " I had the same issue and imported my own input.h version containing all the missing declarations."
This is the part of the .c file that generates most of the errors:
static struct label key_labels[] = {
LABEL(KEY_RESERVED),
LABEL(KEY_ESC),
LABEL(KEY_1),
LABEL(KEY_2),
LABEL(KEY_3),
LABEL(KEY_4),
LABEL(KEY_5),
LABEL(KEY_6),
LABEL(KEY_7),
LABEL(KEY_8),
LABEL(KEY_9),
LABEL(KEY_0),
LABEL(KEY_MINUS),
LABEL(KEY_EQUAL),
LABEL(KEY_BACKSPACE),
...
I have no experience in C, and don't know what he means. So my question is: how do I do this?
I have succesfully compiled other JNI libs, using NDK v9 and cygwin, so there should not be a problem with my settings and enviroment.
I had the same issue and imported my own input.h version containing all the missing declarations.
You can do same thing and replace your input.h (you can search for input.h with those undefine identifiers in linux kernel sources), but easier way is to remove lines containing undefined identifiers from EventInjector.h. Just comment all lines that highlighted red in eclipse, and it should work.

Categories

Resources