<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Building Mesa GLX with Meson for macOS fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111016">111016</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Building Mesa GLX with Meson for macOS fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>19.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>GLX
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mjbauer95@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When switching from using autotools to meson, we get an error in building Mesa
for macOS. This is happening in Nixpkgs master. These are the flags:

```
meson flags:
  --buildtype=plain
  --libdir=/nix/store/...-mesa-19.1.1/lib
  --libexecdir=/nix/store/...-mesa-19.1.1/libexec
  --bindir=/nix/store/...-mesa-19.1.1/bin
  --sbindir=/nix/store/...-mesa-19.1.1/sbin
  --includedir=/nix/store/...-mesa-19.1.1-dev/include
  --mandir=/nix/store/...-mesa-19.1.1/share/man
  --infodir=/nix/store/...-mesa-19.1.1/share/info
  --localedir=/nix/store/...-mesa-19.1.1/share/locale
  -Dauto_features=enabled
  -Dwrap_mode=nodownload
  --prefix=/nix/store/...-mesa-19.1.1
  --sysconfdir=/etc
  -Db_ndebug=true
  -Ddisk-cache-key=/nix/store/...-mesa-19.1.1-drivers
  -Ddri-search-path=/run/opengl-driver/lib/dri
  -Dplatforms=x11
  -Ddri-drivers=
  -Dgallium-drivers=
  -Dvulkan-drivers=
  -Ddri-drivers-path=/nix/store/...-mesa-19.1.1-drivers/lib/dri
  -Dvdpau-libs-path=/nix/store/...-mesa-19.1.1-drivers/lib/vdpau
  -Dxvmc-libs-path=/nix/store/...-mesa-19.1.1-drivers/lib
  -Domx-libs-path=/nix/store/...-mesa-19.1.1-drivers/lib/bellagio
  -Dva-libs-path=/nix/store/...-mesa-19.1.1-drivers/lib/dri
  -Dd3d-drivers-path=/nix/store/...-mesa-19.1.1-drivers/lib/d3d
  -Dgallium-vdpau=true
  -Dgallium-xvmc=true
  -Dgallium-opencl=disabled
  -Dshared-glapi=true
  -Dgles1=true
  -Dgles2=true
  -Dglx=dri
  -Dglvnd=true
  -Dllvm=true
  -Dshared-llvm=true
  -Dglx-direct=true 
```

Full log is available here: <a href="https://hydra.nixos.org/build/95553754">https://hydra.nixos.org/build/95553754</a>

We want to build "appledri" which provides GLX symbols around Apple's
OpenGL.framework. As far as I can tell, this is fully supported with autotools,
but appears broken in Meson. The error comes from this line in Mesa:

<a href="https://gitlab.freedesktop.org/mesa/mesa/blame/19.1/meson.build#L367">https://gitlab.freedesktop.org/mesa/mesa/blame/19.1/meson.build#L367</a>

As far as I know, there are no OpenGL drivers for macOS available from Mesa, so
enabling any of those does not appear to be an option. GLX is the main thing we
want to build here, so I think the above condition is incorrect. I can't find
any other way to do this (macports is still on an older).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>