<html><head></head><body>Compiling for Windows with meson is still a work in progress. I have a branch that cross compiled from Linux with mingw, as I'm starting to work on msvc support.<br>
<br>
Dylan<br><br><div class="gmail_quote">On April 28, 2018 8:35:24 AM PDT, Liviu Prodea <liviuprodea@yahoo.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family: Helvetica, Arial, sans-serif; font-size: 13px;"><div id="ydpe479b746yiv1583404475"><div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 13px;"><div><div>    Short story<br><br></div><div>As maintainer of this project -  <a href="https://github.com/pal1000/mesa-dist-win" rel="nofollow" target="_blank">https://github.com/pal1000/mesa-dist-win</a> where I build Mesa3D drivers with MSVC aided by a script I got a request to build swr AVX512 target. After a bit of research I discovered it's not implemented in Scons build and opened this ticket to track its implementation: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=104166" rel="nofollow" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=104166</a><br><div><div>I got no response, but I don't mind because the implementation of the Meson build has swr AVX512. So I worked and refactored my build script to the point where I could attempt building Mesa3D with Meson and MSVC.<br><div><br><div>The result was not good<code> <font size="2" face=""Helvetica Neue", Helvetica, Arial, sans-serif">as it can be seen here:</font><br></code><div><br><div>---<br><span>Using Python Python 3.6.5 from C:\Software\DEVELO~1\projects\mesa\py3\python.exe.<br><br>WARNING: Python 3.x support is experimental.<br><br>Install/update python packages (y/n):                                                                                   Begin mesa build. Proceed (y/n):y<br>Do you want to build off-screen rendering drivers (y/n):<br><br>Build Mesa without LLVM (y=yes/n=quit). Only softpipe and osmesa will be available:y<br><br>Do you want to clean build (y/n):y<br><br><br>**********************************************************************<br>** Visual Studio 2017 Developer Command Prompt v15.6.7<br>** Copyright (c) 2017 Microsoft Corporation<br>**********************************************************************<br>[vcvarsall.bat] Environment initialized for: 'x64_x86'<br><br>Build command: C:\Software\DEVELO~1\projects\mesa\py3\python.exe C:\Software\DEVELO~1\projects\mesa\py3\Scripts\meson.py . .\build\windows-x86 --backend=vs2017<br><br>The Meson build system<br>Version: 0.46.0<br>Source dir: C:\Software\DEVELO~1\projects\mesa\mesa<br>Build dir: C:\Software\DEVELO~1\projects\mesa\mesa\build\windows-x86<br>Build type: native build<br>Program python found: YES (C:\Software\DEVELO~1\projects\mesa\py3\python.EXE)<br>Project name: mesa<br>Native C compiler: cl (msvc 19.13.26132)<br>Native C++ compiler: cl (msvc 19.13.26132)<br>Build machine cpu family: x86<br>Build machine cpu: x86<br>Program pkg-config found: NO<br><br>meson.build:402:0: ERROR:  Program(s) ['pkg-config'] not found or not executable<br><br>A full log can be found at C:\Software\DEVELO~1\projects\mesa\mesa\build\windows-x86\meson-logs\meson-log.txt<br><br>Microsoft Windows [Version 10.0.16299.402]<br>(c) 2017 Microsoft Corporation. All rights reserved.<br><br></span><div><span>C:\Software\DEVELO~1\projects\mesa\mesa><br></span><span></span><div><div>---<br><br></div><code><font size="3"><font face=""Helvetica Neue", Helvetica, Arial, sans-serif">It appears it doesn't pick the platform correctly. Maybe I am doing a mistake or implementation it's incomplete. Also noticed -Dplatforms=windows option has been removed recently for some reason.</font></font></code><br></div></div></div></div><code></code><span></span></div></div></div><div><br><br></div></div></div></div></div></div></div></div></div></blockquote></div></body></html>