Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Android 12 error #106

Open
khoaggle opened this issue Aug 22, 2022 · 5 comments
Open

Build Android 12 error #106

khoaggle opened this issue Aug 22, 2022 · 5 comments

Comments

@khoaggle
Copy link


This happen when i reached 91%
Does anyone know how to fix it ?
Below is the log

[ 91% 73633/80492] build out/target/product/rpi4/obj/MESON_MESA3D/.build.timesta
FAILED: out/target/product/rpi4/obj/MESON_MESA3D/.build.timestamp
/bin/bash -c "(rm -rf out/target/product/rpi4/obj/MESON_MESA3D/ ) && (mkdir -p out/target/product/rpi4/obj/MESON_MESA3D/ ) && (mkdir -p out/target/product/rpi4/obj/MESON_MESA3D//build ) && (cp -r external/mesa3d//* out/target/product/rpi4/obj/MESON_MESA3D/ ) && (cd out/target/product/rpi4/obj/MESON_MESA3D && PATH=/usr/bin:/usr/local/bin:$PATH meson ./build --cross-file /home/guk81hc/samba/views/android12/out/target/product/rpi4/obj/MESON_MESA3D_GEN/aosp_cross --buildtype=release -Ddri-search-path=/vendor/lib64/dri -Dplatforms=android -Dplatform-sdk-version=32 -Ddri-drivers= -Dgallium-drivers=v3d,vc4 -Dvulkan-drivers=broadcom -Dgbm=enabled -Degl=enabled -Dcpp_rtti=false ) && (PATH=/usr/bin:/bin:/sbin:$PATH ninja -C out/target/product/rpi4/obj/MESON_MESA3D/build ) && (touch out/target/product/rpi4/obj/MESON_MESA3D/.build.timestamp )"
The Meson build system
Version: 0.45.1
Source dir: /home/guk81hc/samba/views/android12/out/target/product/rpi4/obj/MESON_MESA3D
Build dir: /home/guk81hc/samba/views/android12/out/target/product/rpi4/obj/MESON_MESA3D/build
Build type: cross build

meson.build:485:9: ERROR: Expecting eol got id.
if 'x11' in _platforms
^

A full log can be found at /home/guk81hc/samba/views/android12/out/target/product/rpi4/obj/MESON_MESA3D/build/meson-logs/meson-log.txt
14:38:49 ninja failed with: exit status 1

failed to build some targets (01:35:56 (hh:mm:ss))

@khoaggle
Copy link
Author

@peyo-hd please help me

@gogamid
Copy link

gogamid commented Aug 23, 2022

@khoaggle I had same issue.
first make sure you have python3.8 as default for python or python3 command, you can do that by running these commands:

#configure python
sudo apt install libssl-dev python3-setuptools
#install python3.8 and set as default
sudo apt install python3.8
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
sudo update-alternatives --config python3
#choose 2 (python3.8) as default
#link python to python3
sudo ln -s /usr/bin/python3 /usr/bin/python

Then you can update meson

#update meson
sudo apt-get remove meson
sudo apt-get install python3 python3-pip python3-setuptools \
                       python3-wheel ninja-build
pip3 install --user meson
#move meson from local to root
sudo mv .local/bin/meson /usr/bin/
source .profile

@khoaggle
Copy link
Author

Thank you a lot you just saved my life

@gogamid
Copy link

gogamid commented Aug 23, 2022

you are welcome

@code1k
Copy link

code1k commented Mar 25, 2024

@gogamid Thanks!

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

No branches or pull requests

3 participants