Can't build with opengapps.

793 views
Skip to first unread message

YoungJoon Lee

unread,
Jun 24, 2017, 12:57:27 AM6/24/17
to Android-x86
Hello. I am trying to build android-x86 nougat with opengapps.

I tried several approaches but I can't success.
Main resource I check is readme.md of opengapps. https://github.com/opengapps/aosp_build

1. First, I use repo init command. on source directory.
$ repo init -u git://git.osdn.net/gitroot/android-x86/manifest -b nougat-x86

2. Next, I add 6 lines on bottom of ($SOURCE_ROOT)/.repo/manifests/default.xml :594(in front of </manifest>)

<remote name="opengapps"
       
fetch="https://github.com/opengapps/"  />

       

       
<project path="vendor/google/build" name="aosp_build"
       
revision="master" remote="opengapps" />

       
<project path="vendor/opengapps/sources/all" name="all"
       
clone-depth="1" revision="master" remote="opengapps" />

       

       
<!-- arm64 depends on arm -->

       
<project path="vendor/opengapps/sources/arm" name="arm"
       
clone-depth="1" revision="master" remote="opengapps" />

       
<project path="vendor/opengapps/sources/arm64" name="arm64"
       
clone-depth="1" revision="master" remote="opengapps" />

       

       
<project path="vendor/opengapps/sources/x86" name="x86"
       
clone-depth="1" revision="master" remote="opengapps" />

       
<project path="vendor/opengapps/sources/x86_64" name="x86_64"
       
clone-depth="1" revision="master" remote="opengapps" />

And I sync with next command.
repo sync --no-tags --no-clone-bundle
Next, I change ($SOURCE_ROOT)/device/generic/x86_64/android_x86_64.mk
GAPPS_VARIANT := stock #on top of code


~~~~~~

$(call inherit-product, vendor/google/build/opengapps-packages.mk) # bottom of code



And I build whth next command. 
$ . build/envsetup.sh
$ lunch #AND SELECT 11, android_x86_64-userdebug
$ make -C kernel O=$OUT/obj/kernel ARCH=x86 menuconfig # and not touch anything and save and exit
$ cp
 ./kernel/arch/x86/configs/android-x86_64_defconfig ./out/target/product/x86_64/obj/kernel/.config
$ make -C kernel O=$OUT/obj/kernel ARCH=x86 menuconfig # Customize my kernel from defconfig
$
#Change Some code not related to opengapps
$ make
-j8 showcommands iso_img TARGET_PRODUCT=android_x86_64

Build is failed. 

I check result messages.
nothing matches overlay file
        ic_cancel_wht_24dp
.png, for flavor hdpi-v4

        nothing matches overlay file
        notification_bg_normal_pressed
.9.png, for flavor mdpi-v19

       
[  0% 31/27542] target Prebuilt: libfacenet
(out/target/product/x86_64/obj/SHARED_LIBRARIES/libfacenet_intermediates/LINKED/libfacenet.so)

        FAILED
: /bin/bash -c "out/host/linux-x86/bin/acp -fp
out/target/product/x86_64/obj/SHARED_LIBRARIES/libfacenet_intermediates/LINKED/libfacenet.so"


        acp
: missing destination file

        ninja
: build stopped: subcommand failed.

        
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed

        
make: *** [ninja_wrapper] Error 1



I check actual command using showcommands. 
It looks like reason is failure of this command.
/bin/bash -"out/host/linux-x86/bin/acp -fp 
out/target/product/x86_64/obj/SHARED_LIBRARIES/libfacenet_intermediates/LINKED/libfacenet.so"


acp command need 2 parameters. But it looks like just destination is present and from is disappeared.

I check where is libfacenet.so.
It looks there is no libfacenet.so.

So  I search with acp error message and found next page.

It looks like I have to check all github. 
I check out all repo under vendor/opengapps/sources/(ARCH)

$ cd all/
$ git branch
-r
$ git checkout
-t opengapps/master
$ cd
../arm
$ git branch
-r
$ git checkout
-t opengapps/master
$ cd
../arm64
$ git branch
-r
$ git checkout
-t opengapps/master
$ cd
../x86
$ git branch
-r
$ git checkout
-t opengapps/master
$ cd
../x86_64


Now I can found libfacenet.so on 
$ find ./ -name libfacenet.so*
./arm/lib/25/libfacenet.so
./arm/lib/24/libfacenet.so
./arm64/lib64/25/libfacenet.so
./arm64/lib64/24/libfacenet.so

So, I try rebuild.

But same errors.

Next I change  contents of vendor/google/build/opengapps-packages.mk.


it looks like FaceLock is included in above nano.

So ,I change GAPPS_VARIANT to pico

Build success.

But my system cannot boot. kernel message looks like normal until android animation.(How can I check what happened=kernel log on Android logo animation?)
Next, I drop [$(call inherit-product, vendor/google/build/opengapps-packages.mk)] on ($SOURCE_ROOT)/device/generic/x86_64/android_x86_64.mk.

Build success and system can boot.

Any body know reason of this problem? Please help me. Best regards.

YoungJoon Lee

unread,
Jun 28, 2017, 12:20:42 PM6/28/17
to Android-x86
Is there any way to check log message during android animation?

Deletion of FaceLock on vendor/google/build/opengapps-packages.mk makes it possible to build source success, But I cannot boot my system. Android boot logo animation forever. I want to check what happens during animation. 

Henri Koivuneva

unread,
Jun 29, 2017, 5:11:27 AM6/29/17
to Android-x86
Hi! Try removing the arm and arm64 opengapps so that only sources/all & x86 & x86_64 remain (gapps are for x86 too), remove the whole vendor folder and everywhere else gapps are, then resynchronize.

Also, I'm not sure if it matters, but move the gapps build stuff to device.mk, refer to:
https://github.com/BlissRoms-x86/device_generic_common/blob/n7.1-x86/device.mk
Package / app config to top (look at #OpenGAPPS lines 17-33, #OpenGAPPS line 155)

There's also other stuff in that file you could compare with regarding gapps :) good luck! This way it works for me.

PS. Here's how we have opengapps in manifest: https://github.com/BlissRoms-x86/manifest/blob/n7.1-bleeding_edge/default.xml
Repo call lines 47-48
Location 134-137

YoungJoon Lee

unread,
Jun 29, 2017, 10:01:31 AM6/29/17
to Android-x86
Thank you very much for your answer. I can build my iso image with your method. I will test it tomorrow. Have a nice day.

2017년 6월 29일 목요일 오후 6시 11분 27초 UTC+9, Henri Koivuneva 님의 말:
Reply all
Reply to author
Forward
0 new messages