[waffle] [PATCH] cmake: Fix dependency on cmocka

Chad Versace chad.versace at linux.intel.com
Tue Dec 3 09:15:54 PST 2013


On 12/03/2013 04:41 AM, Shazia Rahman wrote:
> Hi,
> Sorry for late update. I could immediately get this working after sending my last email.
> Waffle builds fine now but somehow piglit fails to find it although it resides in /usr/local/lib64 directory.
>
> make install for waffle threw this:
> -- Installing: /usr/local/lib64/libwaffle-1.so.0.3.90
> -- Installing: /usr/local/lib64/libwaffle-1.so.0
> -- Up-to-date: /usr/local/lib64/libwaffle-1.so
>
> But running ccmake . inside piglit throws error for missing waffle.
> If you are familiar with piglit and built it from source, any suggestions here.

There are two ways to fix this. The problem is that, when configuring Piglit,
the pkg-config tool does not inspect /usr/local.

Method 1
--------
Install Waffle to /usr, not /usr/local. To do this, configure Waffle with 'CMAKE_INSTALL_PREFIX=/usr' and 
'CMAKE_INSTALL_LIBDIR=/usr/lib64'. Then re-install Waffle.

Method 2
--------
When configuring Piglit, tell pkg-config to inspect /usr/local. To do this, set the environment variable 
'PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH' when runing 
ccmake for Piglit.



More information about the waffle mailing list