Check out our Monthly Survey Page to see what our users are running.
how to build 32 bit mesa with ninja and meson?
The_Aquabat 22 May, 2019

hi everyone is there a simple way to build mesa 32 bit with ninja and meson?? on a x86_64 host.

thanks

whizse 22 May, 2019

I usually use a 32bit chroot.

tomlowshang 22 May, 2019

Use a 32bit chroot then symlink the result into the 64bit host.

The_Aquabat 24 May, 2019

Quoting: tomlowshangUse a 32bit chroot then symlink the result into the 64bit host.

ah ok thanks, can I copy the compiled mesa libs to the host directly?

hmm maybe I'll just create a ubuntu/debian chroot I suppose it's easier.

tomlowshang 27 May, 2019

You can copy the libraries if you prefer. I did that for years but recently realized it wasn't necessary in my situation.

sr_ls_boy 28 May, 2019

Studying the logs for a distribution would help.
Mesa logs for debian

The line below is essentially how you tell meson to build 32-bit.

Spoiler, click me

CC="gcc -m32" \
CXX="g++ -m32" \
\
meson

Shmerl 15 Aug, 2019

32-bit cross compilation is a mess in Debian at least, that's why I don't bother. The alternative is to use 32-bit VM, lxc container or chroot.

While you're here, please consider supporting GamingOnLinux on:

Patreon, Liberapay or PayPal Donation.

We have no adverts, no paywalls, no timed exclusive articles. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!

You need to Register and Login to comment, submit articles and more.


Or login with...