docs/android: Fix example meson cross file
The system needs to be android, or else we run into the libarchive build
error fixed in 735fe243a7:
In file included from ../subprojects/libarchive-3.7.2/libarchive/archive_write_open_memory.c:33: ../subprojects/libarchive-3.7.2/libarchive/archive.h:101:10: fatal error: 'android_lf.h' file not found
Also, it uses the aarch64 clang but "cpu = 'armv8'", which doesn't
work (armv8 is the 32-bit version). Use aarch64 as presumably intended.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28812>
This commit is contained in:
+2
-2
@@ -33,9 +33,9 @@ Then, create your Meson cross file to use it, something like this
|
|||||||
pkgconfig = ['env', 'PKG_CONFIG_LIBDIR=NDKDIR/pkgconfig', '/usr/bin/pkg-config']
|
pkgconfig = ['env', 'PKG_CONFIG_LIBDIR=NDKDIR/pkgconfig', '/usr/bin/pkg-config']
|
||||||
|
|
||||||
[host_machine]
|
[host_machine]
|
||||||
system = 'linux'
|
system = 'android'
|
||||||
cpu_family = 'arm'
|
cpu_family = 'arm'
|
||||||
cpu = 'armv8'
|
cpu = 'aarch64'
|
||||||
endian = 'little'
|
endian = 'little'
|
||||||
|
|
||||||
Now, use that cross file for your Android build directory (as in this
|
Now, use that cross file for your Android build directory (as in this
|
||||||
|
|||||||
Reference in New Issue
Block a user