Re: How to compile mesa for windows arm64 from x64 machine

Mayank Jain <[email protected]> Wed, 6 Nov 2024 12:10:39 +0530
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CALgwofb1PhJFN0SVgrT36uVqoXB7=8mBACzvGRE1amzonn=d=A@mail.gmail.com>
--00000000000078334a062638cc3b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

In case someone else is trying the same.
The cross compilation still doesn't work so I natively built mesa on
Windows on ARM device and the ARM64 build is successful.

On Fri, Oct 25, 2024 at 11:43=E2=80=AFPM Russell Liu <[email protected]> =
wrote:

> Sorry, I don't know. I just live on x86 Linux currently.
> On 10/26/24 1:08 AM, Mayank Jain wrote:
>
> Hey Russel,
> Yes, vendor has adreno gpu which provides the vulkan driver on arm window=
s.
>
> Could you please add the relevant folks who can provide guidance=F0=9F=99=
=8F
>
> Thank you,
> Mayank
>
> On 25 Oct 2024, at 9:11=E2=80=AFPM, Shio Gin <[email protected]>
> <[email protected]> wrote:
>
> =EF=BB=BF
> I guess Jain want to use zink only. Maybe vendor provides the Vulkan
> driver on arm Windows.
>
> Maybe set CC to arm=E2=80=99s cl, sorry I have no experience about this.
>
> Russell
>
> =E5=9C=A8 2024=E5=B9=B410=E6=9C=8825=E6=97=A5=EF=BC=8C14:16=EF=BC=8CMayan=
k Jain <[email protected]>
> <[email protected]> =E5=86=99=E9=81=93=EF=BC=9A
>
> =EF=BB=BF
> Hey Matthew,
> Yes. I am asking about how to cross compile Mesa for ARM64 on an x64 host
> (Intel i7 laptop - x64 based PC).
>
>
> On Thu, Oct 24, 2024 at 10:38=E2=80=AFPM Matthew Barron <freontrip@gmail.=
com>
> wrote:
>
>> Clarification may be helpful. Are you asking about how to cross-compile
>> Mesa for ARM64 on an AMD64 host? As others have warned that's likely to
>> result in a software renderer...
>>
>> On Wed, Oct 23, 2024 at 6:39=E2=80=AFAM Mayank Jain <mayankjn.jain1993@g=
mail.com>
>> wrote:
>>
>>> Windows Build machine: *x64*
>>> Windows Host machine: *arm64*
>>>
>>> *How to compile mesa for arm64 from the build machine ? What are the
>>> steps ?*
>>>
>>> *Background:*
>>> VS 2022 is used for compilation.
>>>
>>> I am able to compile *x64 *mesa using below commands:
>>> Build LLVM for x64
>>> Install other dependencies
>>> Command to build x64 mesa
>>> meson setup builddir/ -Dbuildtype=3Drelease -Dgallium-drivers=3Dzink
>>> --backend=3Dvs
>>> Open mesa.sln file on VS and compile - > SUCCESS
>>>
>>> Thanks,
>>> Mayank
>>>
>>

--00000000000078334a062638cc3b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">In case someone else is trying the same.<div>The cross com=
pilation still doesn&#39;t work=C2=A0so I natively built mesa on Windows on=
 ARM device=C2=A0and the ARM64 build is successful.</div></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Oct 25, 20=
24 at 11:43=E2=80=AFPM Russell Liu &lt;<a href=3D"mailto:[email protected]=
m">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex"><u></u>

 =20
   =20
 =20
  <div>
    <p>Sorry, I don&#39;t know. I just live on x86 Linux currently.<br>
    </p>
    <div>On 10/26/24 1:08 AM, Mayank Jain wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      Hey Russel,
      <div>Yes, vendor has adreno gpu which provides the vulkan driver
        on arm windows.</div>
      <div><br>
      </div>
      <div>Could you please add the relevant folks who can provide
        guidance=F0=9F=99=8F</div>
      <div><br>
        <div>
          <div dir=3D"ltr">Thank you,</div>
          <div dir=3D"ltr">Mayank</div>
          <div dir=3D"ltr"><br>
            <blockquote type=3D"cite">On 25 Oct 2024, at 9:11=E2=80=AFPM, S=
hio Gin
              <a href=3D"mailto:[email protected]" target=3D"_blank">&lt;=
[email protected]&gt;</a> wrote:<br>
              <br>
            </blockquote>
          </div>
          <blockquote type=3D"cite">
            <div dir=3D"ltr">=EF=BB=BF
             =20
              <div dir=3D"ltr">
               =20
                I guess Jain want to use zink only. Maybe vendor
                provides the Vulkan driver on arm Windows.
                <div><br>
                </div>
                <div>Maybe set CC to arm=E2=80=99s cl, sorry I have no
                  experience about this.</div>
                <div><br>
                </div>
                <div>Russell<br>
                  <div dir=3D"ltr"><br>
                    <blockquote type=3D"cite">=E5=9C=A8 2024=E5=B9=B410=E6=
=9C=8825=E6=97=A5=EF=BC=8C14:16=EF=BC=8CMayank
                      Jain <a href=3D"mailto:[email protected]" t=
arget=3D"_blank">&lt;[email protected]&gt;</a> =E5=86=99=E9=81=93=
=EF=BC=9A<br>
                      <br>
                    </blockquote>
                  </div>
                  <blockquote type=3D"cite">
                    <div dir=3D"ltr">=EF=BB=BF
                      <div dir=3D"ltr">Hey Matthew,
                        <div>Yes. I am asking about how to cross compile
                          Mesa for ARM64 on an x64 host (Intel i7 laptop
                          - x64 based PC).</div>
                        <div><br>
                        </div>
                      </div>
                      <br>
                      <div class=3D"gmail_quote">
                        <div dir=3D"ltr" class=3D"gmail_attr">On Thu, Oct
                          24, 2024 at 10:38=E2=80=AFPM Matthew Barron &lt;<=
a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
</a>&gt;
                          wrote:<br>
                        </div>
                        <blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                          <div dir=3D"ltr">Clarification may be helpful.
                            Are you asking about how to cross-compile
                            Mesa for ARM64 on an AMD64 host? As others
                            have warned that&#39;s likely to result in a
                            software renderer...<br>
                          </div>
                          <br>
                          <div class=3D"gmail_quote">
                            <div dir=3D"ltr" class=3D"gmail_attr">On Wed,
                              Oct 23, 2024 at 6:39=E2=80=AFAM Mayank Jain &=
lt;<a href=3D"mailto:[email protected]" target=3D"_blank">mayankj=
[email protected]</a>&gt;
                              wrote:<br>
                            </div>
                            <blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">
                              <div dir=3D"ltr">Windows Build machine: <b>x6=
4</b>
                                <div>Windows Host machine: <b>arm64</b></di=
v>
                                <div><br>
                                </div>
                                <div><b>How to compile mesa for arm64
                                    from the build machine ? What are
                                    the steps ?</b></div>
                                <div><br>
                                </div>
                                <div><b>Background:</b></div>
                                <div>VS 2022 is used for compilation.</div>
                                <div><br>
                                </div>
                                <div>I am able to compile <b>x64 </b>mesa
                                  using below commands:</div>
                                <div>Build=C2=A0LLVM for x64</div>
                                <div>Install other dependencies</div>
                                <div>Command to build x64 mesa</div>
                                <div><span dir=3D"ltr">meson setup
                                    builddir/ -Dbuildtype=3Drelease
                                    -Dgallium-drivers=3Dzink --backend=3Dvs=
</span></div>
                                <div><span dir=3D"ltr">Open mesa.sln file
                                    on VS and compile - &gt; SUCCESS</span>=
</div>
                                <div><span dir=3D"ltr"><strong><br>
                                    </strong></span></div>
                                <div><span dir=3D"ltr">Thanks,</span><br>
                                </div>
                                <div>Mayank</div>
                              </div>
                            </blockquote>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </div>

</blockquote></div>

--00000000000078334a062638cc3b--