<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Thanks everyone for the prompt responses and ideas, really appreciate it. I got lavapipe to work after building LLVM manually.
<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">To close this thread, here are the steps I used:<o:p></o:p></p>
<p class="MsoNormal">- Build LLVM <llvm-installed><o:p></o:p></p>
<p class="MsoNormal">- Download/install <flexbison><o:p></o:p></p>
<p class="MsoNormal">- Download/Install <DX12 headers> (from <a href="https://github.com/microsoft/DirectX-Headers/releases/tag/v1.611.0">
https://github.com/microsoft/DirectX-Headers/releases/tag/v1.611.0</a>)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">set INCLUDE=%INCLUDE%;<DX12Headers>\include<o:p></o:p></p>
<p class="MsoNormal">set PATH=%PATH%;<llvm-installed\bin>;<flexbison><o:p></o:p></p>
<p class="MsoNormal">meson setup -D llvm=enabled --prefix=%CD%/build/install build/ --buildtype=release -Dgallium-drivers=swrast -Dvulkan-drivers=swrast<o:p></o:p></p>
<p class="MsoNormal">cd build<o:p></o:p></p>
<p class="MsoNormal">ninja -C .<o:p></o:p></p>
<p class="MsoNormal">ninja -C . install<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Ashwin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Lucas Fryzek <lfryzek@igalia.com> <br>
<b>Sent:</b> Thursday, February 8, 2024 9:10 PM<br>
<b>To:</b> Dave Airlie <airlied@gmail.com><br>
<b>Cc:</b> Ashwin Bhat <ashwin.bhat@autodesk.com>; mesa-dev@lists.freedesktop.org<br>
<b>Subject:</b> Re: Getting started with Lavapipe<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:#212121">You don't often get email from
<a href="mailto:lfryzek@igalia.com">lfryzek@igalia.com</a>. <a href="https://aka.ms/LearnAboutSenderIdentification">
Learn why this is important</a><o:p></o:p></span></p>
</div>
</td>
<td width="75" style="width:56.25pt;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 3.75pt;align:left">
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span style="display:none"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#910A19;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#FDF2F4;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:#212121">EXTERNAL EMAIL : Do not click any links or open any attachments unless you trust the sender and know the content is safe.
</span><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Adding on to what Dave shared. From a quick Google the problem seems to be that the LLVM installer [1] on windows doesn't ship the "llvm-config" tool which meson uses to find the LLVM libraries. Looking at the build instructions [2] from
Dave's link they are building LLVM from source presumably to build with support for the llvm-config tool.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I don't have a windows machine on me to check at the moment. But if the LLVM installer ships cmake files it might be possible to point the CMAKE_MODULES_PATH environment variable to those files to also solve this problem.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I assume you're using MSVC to build, but if you're not and instead using msys2 it looks like you can probably just install the LLVM package in that and have access to llvm-config.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[1] <a href="https://stackoverflow.com/questions/17096804/where-is-llvm-config-in-windows">
https://stackoverflow.com/questions/17096804/where-is-llvm-config-in-windows</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">[2] <a href="https://github.com/pal1000/mesa-dist-win/tree/master/buildscript">
https://github.com/pal1000/mesa-dist-win/tree/master/buildscript</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Feb 8, 2024 11:46 PM, Dave Airlie <<a href="mailto:airlied@gmail.com">airlied@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p>On Fri, 9 Feb 2024 at 14:38, Ashwin Bhat <<a href="mailto:ashwin.bhat@autodesk.com">ashwin.bhat@autodesk.com</a>> wrote:
<br>
> <br>
> Hello, <br>
> <br>
> During Vulkanised 2024 I was super excited to hear and learn about Lavapipe <br>
> <a href="https://vulkan.org/user/pages/09.events/vulkanised-2024/Vulkanised-2024-faith-ekstrand-collabora-Iago-toral-igalia.pdf">
https://vulkan.org/user/pages/09.events/vulkanised-2024/Vulkanised-2024-faith-ekstrand-collabora-Iago-toral-igalia.pdf</a>
<br>
> <br>
> Are there some basic tutorials on how to get started with setting up Lavapipe swrast on Windows?
<br>
> <br>
> I've installed LLVM and ensured it's in path. I have been trying to build using meson but haven't had much success. Any pointers appreciated. Please let me know if it's preferred to move this discussion/thread to issues.
<br>
> <br>
> Here is the command I'm trying to run: <br>
> meson setup -D llvm=true --prefix=%CD%/build/install build/ --buildtype=release -Dgallium-drivers=swrast -Dvulkan-drivers=swrast
<br>
> <br>
> But I get this error: <br>
> llvm-config found: NO need ['>= 5.0.0'] <br>
> Run-time dependency LLVM found: NO (tried cmake and config-tool) <br>
> Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)
<br>
> Building fallback subproject with default_library=static <br>
> <br>
> meson.build:1748:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.
<br>
<br>
I haven't used it on Windows in a long time, but there are prebuilds <br>
<br>
<a href="https://github.com/pal1000/mesa-dist-win">https://github.com/pal1000/mesa-dist-win</a>
<br>
<br>
They might also help start off but also figure out what is missing in <br>
llvm builds. <br>
<br>
Dave. <o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>