how to build mesa for android x86?

187 views
Skip to first unread message

amu_1680c

unread,
Jul 25, 2021, 7:13:29 AM7/25/21
to Android-x86
how to build mesa for android x86?

Mauro Rossi

unread,
Jul 27, 2021, 6:36:13 PM7/27/21
to Android-x86
On Sunday, July 25, 2021 at 1:13:29 PM UTC+2 amu1...@gmail.com wrote:
how to build mesa for android x86?

Using Android Build System with Android.mk i.e. the mesa version currently in android-x86 OSDN repo
if you only want to build mesa:

cd [android-x86 source folder]
lunch lunch android_x86_64-userdebug
mmma external/mesa


With q-x86 and later it is possible to build mesa 21.2 in a simpler way, 
by using meson build system launched by a minimal android/Android.mk


NOTE1: the changes in board.mk can be moved to device/genericcommon/BoadConfig.mk
NOTE2: the changes in device.mk can be moved to device/genericcommon/gpu/gpu_mesa.mk
NOTE3: init_hal_gralloc() in init.sh requires set_property ro.hardware.egl mesa for libEGL_mesa.so be loaded correcly by Android EGL client

cd [android-x86 source folder]
lunch lunch android_x86_64-userdebug
cd external/mesa
git remote add freedesktop https://gitlab.freedesktop.org/mesa/mesa
git fetch freedesktop 21.2
git checkout FETCH_HEAD
cd ..
cd ..
mmma external/mesa


Android-x86

unread,
Sep 19, 2021, 8:42:36 AM9/19/21
to Android-x86
when i get nougat-x86 source from android-x86 OSDN repo,it takes me too much time because of chromium-webview.git,chromium-webview.git is more than 15G???
I think the repo version may not match.chromium-webview.git in pie-x86 is only  100M+.

Chih-Wei Huang

unread,
Sep 20, 2021, 4:49:57 AM9/20/21
to Android-x86
Android-x86 <andro...@googlegroups.com> 於 2021年9月19日 週日 下午8:42寫道:
> when i get nougat-x86 source from android-x86 OSDN repo,it takes me too much time because of chromium-webview.git,chromium-webview.git is more than 15G???

Actually webview is not in OSDN but in AOSP repo of Google.
It seems Google forgot to add clone-depth="1"
(which means do not fetch the whole git history) in the manifest.
I've fixed it manually. Please try to sync again.
Reply all
Reply to author
Forward
0 new messages