Bug 103312 - meson/macOS: Dependency libdrm_intel found: NO
Summary: meson/macOS: Dependency libdrm_intel found: NO
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL: https://gist.github.com/yurikoles/cb1...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 11:50 UTC by Yurii Kolesnykov
Modified: 2018-10-26 10:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Yurii Kolesnykov 2017-10-17 11:50:39 UTC
Seems like meson on macOS should not check for libdrm_intel dependency.
Comment 1 Eric Engestrom 2017-10-17 12:39:36 UTC
libdrm_intel is needed to build i915; if you want to disable it you can use `-Ddri-drivers=i965` (or any other value that doesn't contain `i915`, although right now those are the only possibilities)

How did you configure autotools when that's what you were using to build mesa?
Comment 2 Emil Velikov 2017-10-17 12:49:26 UTC
autotools detects possible drivers per platform and per cpu arch.
The latter may be an overkill but the former is a must IMHO.
Comment 3 Dylan Baker 2017-10-17 18:45:42 UTC
Currently I haven't tested building on any platform other than Linux for meson. Honestly macOS isn't on my list of targets, I don't have a mac to test with and my employer doesn't care about mesa with mac, but I'm planning to get windows working which should fix issues like looking for libdrm and trying to build drm drivers unconditionally.

In the mean time (or after windows support lands) if macOS is of interest to you I'd be happy to review patches to support meson on macOS. If that's of interest to you there is more work that needs to be done than just fixing the list of drivers that are being built by default on non-free oses (xlib based glx isn't building with meson yet, among other things.)
Comment 4 Dylan Baker 2017-10-24 00:03:02 UTC
Okay, I've found a macbook and I'm going to look into getting meson working for macos. I need some information though.

What configuration options are supposed to work on macOS? swrast? softpipe? llvmpipe? osmesa? glx? egl? obviously not dri drivers.

What autotools configuration did you provide?

What packages did you have to install from source/macports/homebrew/etc.
Comment 5 Yurii Kolesnykov 2018-10-26 10:56:48 UTC
I can successfully build mesa under macOS 10.14 (Mojave).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.