<div dir='auto'><div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">[1] https://stackoverflow.com/questions/17096804/where-is-llvm-config-in-windows</div><div dir="auto">[2] https://github.com/pal1000/mesa-dist-win/tree/master/buildscript</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Feb 8, 2024 11:46 PM, Dave Airlie <airlied@gmail.com> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Fri, 9 Feb 2024 at 14:38, Ashwin Bhat <ashwin.bhat@autodesk.com> wrote:
<br>
>
<br>
> Hello,
<br>
>
<br>
> During Vulkanised 2024 I was super excited to hear and learn about Lavapipe
<br>
> https://vulkan.org/user/pages/09.events/vulkanised-2024/Vulkanised-2024-faith-ekstrand-collabora-Iago-toral-igalia.pdf
<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>
https://github.com/pal1000/mesa-dist-win
<br>
<br>
They might also help start off but also figure out what is missing in
<br>
llvm builds.
<br>
<br>
Dave.
<br>
</p>
</blockquote></div><br></div></div></div>