Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

make source with branch android-9.0 fail #6

Open
Vancezheng opened this issue Jun 3, 2021 · 1 comment
Open

make source with branch android-9.0 fail #6

Vancezheng opened this issue Jun 3, 2021 · 1 comment

Comments

@Vancezheng
Copy link

Vancezheng commented Jun 3, 2021

I hava download android source with branch anbox-p

repo init -u https://github.com/anbox/platform_manifests.git -b anbox-p
repo sync -j4

and the default xml .repo/manifests/default.xml is
<default revision="refs/tags/android-9.0.0_r3"
After I have lunch anbox_arm64-userdebug,but show errors:

[root@myq anbox-android9]# lunch anbox_arm64-userdebug
build/make/core/envsetup.mk:254: error: Multiple board config files for TARGET_DEVICE arm64: device/anbox/arm64/BoardConfig.mk device/generic/arm64/BoardConfig.mk.
10:54:57 dumpvars failed with: exit status 1

How can I fix it?

@Redecorating
Copy link

If you add <remove-project name="device/generic/arm64" /> to .repo/manifests/anbox.xml, it fixes that error for me.

Here's the workarounds I've had to use after that, which might help if you have the same problems:

I uncommented LOCAL_SDK_VERSION := current in anbox/android/appmgr/Android.mk as it complains about that being missing.

There were errors about camera.goldfish.jpeg missing, I replaced the camera fingerprint data gps lights power qemu-props sensors vibrator folders in anbox/android with ones from here https://android.googlesource.com/device/generic/goldfish/+/refs/tags/android-9.0.0_r3 , and commented out include $(TMP_PATH)/android/qemud/Android.mk in anbox/Android.mk.

Some scripts need python2, sudo ln -s /bin/python2 /usr/local/bin/python puts it at the start of my $PATH, but that'll break things that need python3 so remove it when you are done.

I've gotten it to errors about opengl. I commented out findExtInList in anbox/android/opengl/system/egl/eglDisplay.cpp (a bad fix to an unused function error). But now I've reached fatal error: 'system/window.h' file not found, and I haven't found a solution to that.

I also tried replacing the opengl folder with https://android.googlesource.com/device/generic/goldfish-opengl/+/refs/tags/android-9.0.0_r3 but I haven't gotten that to work either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants