cross compiling main/mesa
Dear experts,
The scripts/bootstrap.sh
tool can make packages (in ~/packages/main/aarch64
) from PC, this is great!
I want go one further to cross build the main/mesa
package.
I am in aports/main/mesa/
folder and want find the right way to do cross compilation:
- I tried
CTARGET=aarch64 abuild -r
but the results are in~/packages/main/x86_64
, this is not expected. - I tried
CHOST=aarch64 abuild -r
but got error like
...
The Meson build system
Version: 0.62.1
Source dir: /home/u/aports/main/mesa/src/mesa-21.3.8
Build dir: /home/u/aports/main/mesa/src/mesa-21.3.8/output
Build type: cross build
Program python3 found: YES (/usr/bin/python3)
Project name: mesa
Project version: 21.3.8
C compiler for the host machine: aarch64-alpine-linux-musl-gcc (gcc 11.2.1 "aarch64-alpine-linux-musl-gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219")
C linker for the host machine: aarch64-alpine-linux-musl-gcc ld.bfd 2.38
C++ compiler for the host machine: aarch64-alpine-linux-musl-g++ (gcc 11.2.1 "aarch64-alpine-linux-musl-g++ (Alpine 11.2.1_git20220219) 11.2.1 20220219")step
C++ linker for the host machine: aarch64-alpine-linux-musl-g++ ld.bfd 2.38
C compiler for the build machine: cc (gcc 11.2.1 "cc (Alpine 11.2.1_git20220219) 11.2.1 20220219")
C linker for the build machine: cc ld.bfd 2.38
C++ compiler for the build machine: c++ (gcc 11.2.1 "c++ (Alpine 11.2.1_git20220219) 11.2.1 20220219")
C++ linker for the build machine: c++ ld.bfd 2.38
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
Program glslangValidator found: YES (/usr/bin/glslangValidator)
Program python3 found: YES (/usr/bin/python3)
...
meson.build:1026:6: ERROR: Could not get define 'ETIME'
I understand that main/mesa
is not checked for cross compilation, but before going too far, I want confirm if CHOST=
approach is the right way?
regards,