[Mesa-dev] Building Mesa3D with Meson and MSVC

Dylan Baker dylan at pnwbakers.com
Sat Apr 28 15:54:21 UTC 2018


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.

Dylan

On April 28, 2018 8:35:24 AM PDT, Liviu Prodea <liviuprodea at yahoo.com> wrote:
>    Short story
>
>As maintainer of this project - 
>https://github.com/pal1000/mesa-dist-win 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:
>https://bugs.freedesktop.org/show_bug.cgi?id=104166
>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.
>
>The result was not good as it can be seen here:
>
>---
>Using Python Python 3.6.5 from
>C:\Software\DEVELO~1\projects\mesa\py3\python.exe.
>
>WARNING: Python 3.x support is experimental.
>
>Install/update python packages
>(y/n):                                                                                  
>Begin mesa build. Proceed (y/n):y
>Do you want to build off-screen rendering drivers (y/n):
>
>Build Mesa without LLVM (y=yes/n=quit). Only softpipe and osmesa will
>be available:y
>
>Do you want to clean build (y/n):y
>
>
>**********************************************************************
>** Visual Studio 2017 Developer Command Prompt v15.6.7
>** Copyright (c) 2017 Microsoft Corporation
>**********************************************************************
>[vcvarsall.bat] Environment initialized for: 'x64_x86'
>
>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
>
>The Meson build system
>Version: 0.46.0
>Source dir: C:\Software\DEVELO~1\projects\mesa\mesa
>Build dir: C:\Software\DEVELO~1\projects\mesa\mesa\build\windows-x86
>Build type: native build
>Program python found: YES
>(C:\Software\DEVELO~1\projects\mesa\py3\python.EXE)
>Project name: mesa
>Native C compiler: cl (msvc 19.13.26132)
>Native C++ compiler: cl (msvc 19.13.26132)
>Build machine cpu family: x86
>Build machine cpu: x86
>Program pkg-config found: NO
>
>meson.build:402:0: ERROR:  Program(s) ['pkg-config'] not found or not
>executable
>
>A full log can be found at
>C:\Software\DEVELO~1\projects\mesa\mesa\build\windows-x86\meson-logs\meson-log.txt
>
>Microsoft Windows [Version 10.0.16299.402]
>(c) 2017 Microsoft Corporation. All rights reserved.
>
>C:\Software\DEVELO~1\projects\mesa\mesa>
>---
>
>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180428/06ba6c96/attachment.html>


More information about the mesa-dev mailing list