<div dir="ltr"><div><div><div><div><div><div><div><div><div>HI <br><br></div>here is the problem: <br><br></div>I am trying to compile mesa in a x86 system. After installing all the required packages and ussing the following configure command line: <br>
<br>./configure --with-dri-drivers="i915" --with-gallium-drivers="" <br><br></div>make <br><br></div>show this error: <br><br>loader.c:495:24: fatal error: radeon_drm.h: No such file or directory<br> #include <radeon_drm.h><br>
<br><br></div>Checking the source code: <br><br><br><br>#if !defined(__NOT_HAVE_DRM_H)<br>/* for i915 */<br>#include <i915_drm.h><br>/* for radeon */<br>#include <radeon_drm.h><br><br>static int<br>drm_get_pci_id_for_fd(int fd, int *vendor_id, int *chip_id)<br>
{<br> drmVersionPtr version;<br><br> *chip_id = -1;<br><br> version = drmGetVersion(fd);<br> if (!version) {<br> log_(_LOADER_WARNING, "MESA-LOADER: invalid drm fd\n");<br> return 0;<br> }<br>
if (!version->name) {<br> log_(_LOADER_WARNING, "MESA-LOADER: unable to determine the driver name\n");<br> drmFreeVersion(version);<br> return 0;<br> }<br><br> if (strcmp(version->name, "i915") == 0) {<br>
struct drm_i915_getparam gp;<br> int ret;<br><br> *vendor_id = 0x8086;<br><br> memset(&gp, 0, sizeof(gp));<br> gp.param = I915_PARAM_CHIPSET_ID;<br> gp.value = chip_id;<br> ret = drmCommandWriteRead(fd, DRM_I915_GETPARAM, &gp, sizeof(gp));<br>
if (ret) {<br> log_(_LOADER_WARNING, "MESA-LOADER: failed to get param for i915\n");<br> *chip_id = -1;<br> }<br> }<br> else if (strcmp(version->name, "radeon") == 0) {<br>
struct drm_radeon_info info;<br> int ret;<br><br> *vendor_id = 0x1002;<br><br> memset(&info, 0, sizeof(info));<br> info.request = RADEON_INFO_DEVICE_ID;<br> info.value = (unsigned long) chip_id;<br>
ret = drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, sizeof(info));<br> if (ret) {<br><br><br><br></div>DOes any body know how can I specify the define : NOT_HAVE_DRM_H<br><br></div>I do not want to install the radeon libraries ( because I don't need them ) :) <br>
<br></div>Regards<br><br></div>Victor Rodriguez<br><br><div><div><div><br><br><div><div><br><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div>