Bug 94443 - Compilation libva , No package 'libdrm' found
Summary: Compilation libva , No package 'libdrm' found
Status: RESOLVED DUPLICATE of bug 94394
Alias: None
Product: DRI
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-08 12:14 UTC by tele
Modified: 2016-04-09 17:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description tele 2016-03-08 12:14:36 UTC
I'm trying compile libva 32bit on 64 bit system
and from ./configure command:

#---------------------------
...
configure: error: Package requirements (libdrm >= 2.4) were not met:

No package 'libdrm' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DRM_CFLAGS
and DRM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
#---------------------------

#------------------
$ cat /usr/lib/pkgconfig/libdrm.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=/usr/lib
includedir=/usr/include

Name: libdrm
Description: Userspace interface to kernel DRM services
Version: 2.4.66
Libs: -L${libdir} -ldrm
Cflags: -I${includedir} -I${includedir}/libdrm
#------------------

#--------
$ ls /usr/lib/*drm*
/usr/lib/libdrm_amdgpu.so@        /usr/lib/libdrm_nouveau.so.1.0.0*
/usr/lib/libdrm_amdgpu.so.1@      /usr/lib/libdrm_radeon.so@
/usr/lib/libdrm_amdgpu.so.1.0.0*  /usr/lib/libdrm_radeon.so.1@
/usr/lib/libdrm_intel.so@         /usr/lib/libdrm_radeon.so.1.0.1*
/usr/lib/libdrm_intel.so.1@       /usr/lib/libdrm.so@
/usr/lib/libdrm_intel.so.1.0.0*   /usr/lib/libdrm.so.2@
/usr/lib/libdrm_nouveau.so@       /usr/lib/libdrm.so.2.4.0*
/usr/lib/libdrm_nouveau.so.1@
#--------

If is something wrong with configure (I dont know)
 how use DRM_CFLAGS ?
I tried 
#-----------
./configure --disable-static --enable-glx \
  --libdir=/usr/lib \
  --bindir=/usr/bin32 \
  DRM_CFLAGS=/usr/lib \
  --includedir=/usr/include 
#-----------
 but not working.
Comment 1 tele 2016-03-08 12:21:56 UTC
*
#-----------
./configure --disable-static --enable-glx \
  --libdir=/usr/lib \
  --bindir=/usr/bin32 \
  DRM_LIBS=/usr/lib \
  --includedir=/usr/include 
#-----------
Comment 2 tele 2016-03-08 12:27:49 UTC
I forgot , libva in this case looking in 
/usr/lib64/pkgconfig/ not my /usr/lib/pkgconfig/

I will check now.
Comment 3 Emil Velikov 2016-03-08 13:06:39 UTC
As mentioned in bug 94394, (and hinted in the error message) you should set your PKG_CONFIG_PATH so that it points to the .pc files of the 32 bit setup.

Namely
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
./configure .....

Please, avoid touching *any* _CFLAGS/_LIBS variables. Do reopen if the suggestion does not work as opposed to opening yet another bug.

Thank you

*** This bug has been marked as a duplicate of bug 94394 ***
Comment 4 tele 2016-04-09 17:26:11 UTC
 Thanks people !
   It helped.
    
      Problem  SOLVED


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.