Build android kitkat from source imx6q

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Build android kitkat from source imx6q

跳至解决方案
6,752 次查看
alexandredel
Contributor I

Hello

I am working on a Sabrelite and i'm trying to put android kit kat 4.4.2 on it, so i build it from sources. I have Ubuntu 14.04 64 bit on my computer.

Everything is fine until page 7 of the documentation named "Android_User's_Guide.pdf", when i launch "make 2>&1 | tee build_sabresd_6dq_android.log" something strange happen, the first part look like that:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-rc3
OUT_DIR=out
============================================

then everything is OK until this part:

including ./frameworks/base/Android.mk ...
find: "src": Aucun fichier ou dossier de ce type     (It's french for "no such file or directory")

and at the end, it shows that:

including ./tools/external/fat32lib/Android.mk ... build/core/Makefile:32: attention : écrasement des commandes pour la cible « out/target/product/sabresd_6dq/system/etc/permissions/android.software.live_wallpaper.xml (Traduction: Warning : deleting command for)
build/core/base_rules.mk:529: attention : anciennes commandes ignorées pour la cible « out/target/product/sabresd_6dq/system/etc/permissions/android.software.live_wallpaper.xml (Traduction: Warning: Former command ignored for)
No private recovery resources for TARGET_DEVICE sabresd_6dq host C++: validatekeymaps <= frameworks/base/tools/validatekeymaps/Main.cpp
prebuilts/tools/gcc-sdk/g++: ligne 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: Aucun fichier ou dossier de ce type   (Traduction: No such file or directory)
make: *** [out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Erreur 127

Something is very strange, this prompt said that the file "prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++" doesn't exist, but i went to this file and i found it.

Everything was fine before, i don't know what to do

Thanks

Alexandre

标签 (2)
0 项奖励
回复
1 解答
2,831 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi Alexandre,

You could try checking your admin permissions of the Host machine. Also, you should verify the installed Java version.
Hope this will be useful for you.

Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,832 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi Alexandre,

You could try checking your admin permissions of the Host machine. Also, you should verify the installed Java version.
Hope this will be useful for you.

Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,831 次查看
chingling_wang
NXP Employee
NXP Employee

Hi, Carlos,

I met the same issue.  I use chown to own everything in android directory, still got the error.

What is the exact way to solve this issue?  Thanks

0 项奖励
回复
2,831 次查看
HugoOsornio
NXP Employee
NXP Employee

Hello!!

Using an ubuntu 14.04 machine, you have to make sure that you have the following packages installed:

sudo apt-get install bison g++-multilib git gperf libxml2-utils make python-networkx zlib1g-dev:i386 zip

Perhaps the g++ multilib will complain, if it does please install the buld essentials stuff:

sudo apt-get install build-essential

You will also need to be on the sudoers list.

type

sudo visudo

and make sure your user name has the following privileges.

# User privilege specification

root    ALL=(ALL:ALL) ALL

hugo    ALL=(ALL:ALL) ALL

Now, depending on which android version you are compiling, you may need different Java versions. I am compiling Kitkat and I needed to install the Java 6 bins.

I hope this helps,

Hugo

0 项奖励
回复
2,831 次查看
alexandredel
Contributor I

Hello

Thanks for your help. Now i can start the building of android but i have another problem, when i lauch the built, it's OK. But about an hour later, it failed:

8 warnings generated.

target arm C: libFLAC <= external/flac/libFLAC/stream_encoder.c

external/flac/libFLAC/stream_encoder.c:2435:145: warning: unused parameter 'is_last_block' [-Wunused-parameter]

FLAC__StreamEncoderWriteStatus write_frame_(FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, FLAC__bool is_last_block)

                                                                                                                                                ^

1 warning generated.

target arm C: libFLAC <= external/flac/libFLAC/stream_encoder_framing.c

target arm C: libFLAC <= external/flac/libFLAC/window.c

target StaticLib: libFLAC (out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libFLAC_intermediates/libFLAC.a)

Import includes file: out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libmedia_helper_intermediates/import_includes

target thumb C++: libmedia_helper <= frameworks/av/media/libmedia/AudioParameter.cpp

target StaticLib: libmedia_helper (out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libmedia_helper_intermediates/libmedia_helper.a)

target SharedLib: libstagefright (out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so)

target Symbolic: libstagefright (out/target/product/sabresd_6dq/symbols/system/lib/libstagefright.so)

target Strip: libstagefright (out/target/product/sabresd_6dq/obj/lib/libstagefright.so)

Import includes file: out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libopensles_helper_intermediates/import_includes

target thumb C: libopensles_helper <= frameworks/wilhelm/src/assert.c

target thumb C: libopensles_helper <= frameworks/wilhelm/src/MPH_to.c

target thumb C: libopensles_helper <= frameworks/wilhelm/src/handlers.c

target StaticLib: libopensles_helper (out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libopensles_helper_intermediates/libopensles_helper.a)

Import includes file: out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libOpenSLESUT_intermediates/import_includes

target thumb C: libOpenSLESUT <= frameworks/wilhelm/src/assert.c

target thumb C: libOpenSLESUT <= frameworks/wilhelm/src/ut/OpenSLESUT.c

target thumb C: libOpenSLESUT <= frameworks/wilhelm/src/ut/slesutResult.c

target StaticLib: libOpenSLESUT (out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libOpenSLESUT_intermediates/libOpenSLESUT.a)

target SharedLib: libwilhelm (out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libwilhelm_intermediates/LINKED/libwilhelm.so)

target Symbolic: libwilhelm (out/target/product/sabresd_6dq/symbols/system/lib/libwilhelm.so)

target Strip: libwilhelm (out/target/product/sabresd_6dq/obj/lib/libwilhelm.so)

target SharedLib: libOpenSLES (out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libOpenSLES_intermediates/LINKED/libOpenSLES.so)

target Symbolic: libOpenSLES (out/target/product/sabresd_6dq/symbols/system/lib/libOpenSLES.so)

target Strip: libOpenSLES (out/target/product/sabresd_6dq/obj/lib/libOpenSLES.so)

Import includes file: out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libjnigraphics_intermediates/import_includes

target thumb C++: libjnigraphics <= frameworks/base/native/graphics/jni/bitmap.cpp

target SharedLib: libjnigraphics (out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libjnigraphics_intermediates/LINKED/libjnigraphics.so)

target Symbolic: libjnigraphics (out/target/product/sabresd_6dq/symbols/system/lib/libjnigraphics.so)

target Strip: libjnigraphics (out/target/product/sabresd_6dq/obj/lib/libjnigraphics.so)

Import includes file: out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/cpufeatures_intermediates/import_includes

target thumb C: cpufeatures <= ndk/sources/android/cpufeatures/cpu-features.c

target StaticLib: cpufeatures (out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/cpufeatures_intermediates/cpufeatures.a)

target SharedLib: libwebviewchromium (out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so)

external/chromium_org/third_party/WebKit/Source/web/WebFrameImpl.cpp:1897: error: undefined reference to 'WebKit::findInPageRectFromRange(WebCore::Range*)'

external/chromium_org/third_party/WebKit/Source/web/WebFrameImpl.cpp:1864: error: undefined reference to 'WebKit::findInPageRectFromRange(WebCore::Range*)'

external/chromium_org/third_party/WebKit/Source/web/ChromeClientImpl.cpp:640: error: undefined reference to 'WebKit::ExternalDateTimeChooser::create(WebKit::ChromeClientImpl*, WebKit::WebViewClient*, WebCore::DateTimeChooserClient*, WebCore::DateTimeChooserParameters const&)'

external/chromium_org/third_party/WebKit/Source/web/ChromeClientImpl.cpp:884: error: undefined reference to 'WebKit::ExternalPopupMenu::ExternalPopupMenu(WebCore::Frame&, WebCore::PopupMenuClient*, WebKit::WebViewClient*)'

collect2: error: ld returned 1 exit status

make: *** [out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Erreur 1

And there are a lot of warning like that => "warning: "ARCH_ARM" redefined [enabled by default]"

Is there any solution for that problem?

Thanks

Alexandre

0 项奖励
回复
2,831 次查看
alexandredel
Contributor I

Hello

It's ok, i built it. The last problem was about admin permission

Thank you

Alexandre

0 项奖励
回复
2,831 次查看
chingling_wang
NXP Employee
NXP Employee

Hi, Alex,

Can you be more detail now you solve this permission issue.  I use chown to own everything,  but still got the same error.

Thanks

0 项奖励
回复