On Sat, Nov 23, 2013 at 11:23 AM, Michael Stapelberg <[email protected]> wrote: > Hi Thiago, > > Thiago Farina <[email protected]> writes: >>>>> I have installed libxkbcommon-dev, but I'm still getting this error: >>>>> >>>>> clang -std=c99 -pipe -Wall -I/usr/include/cairo >>>>> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include >>>>> -I/usr/include/pixman-1 -I/usr/include/freetype2 >>>>> -I/usr/include/libpng12 -D_GNU_SOURCE -DVERSION=\""2.5-12-g4cd711b >>>>> (2013-11-20)"\" -c -o i3lock.o i3lock.c >>>>> i3lock.c:27:10: fatal error: 'xkbcommon/xkbcommon.h' file not found >>>>> #include <xkbcommon/xkbcommon.h> >>>>> ^ >>>>> 1 error generated. >>>>> make: *** [i3lock.o] Error 1 >>>>> >>>>> Does anyone knows how to fix this? >>> My strong guess is that your version of libxkbcommon-dev is too old. You >>> need ≥ 0.2.0, anything earlier than that will not work. >>> >> I have installed it from source as suggested in >> http://infra.in.zekjur.net/pipermail/i3-discuss/2012-December/001070.html > What do the following commands return? > > pkg-config --list-all | grep xkbcommon $ sudo pkg-config --list-all | grep xkbcommon Variable 'datarootdir' not defined in '/usr/lib/pkgconfig/libxfce4sensors-1.0.pc'
> pkg-config --cflags --libs xkbcommon > $ sudo pkg-config --cflags --libs xkbcommon -I/usr/local/include -L/usr/local/lib -lxkbcommon > Also, did you pass --prefix=/usr? No. > My guess is that the version installed > by your package manager takes precedence over the one that you installed > locally. > > Given that you are a Chromium contributor apparently, I would’ve > expected you to be familiar with C, libraries and their typical > installation procedure :). Passed to much time without having to worry about this. We don't have such worries there, everything is setup for us. https://chromium.googlesource.com/chromium/chromium/+/trunk/build/install-build-deps.sh We have gclient, tons of utilities in depot_tools, gyp, and so on. That we don't have to fight the system and deal with such in the day-by-day. -- Thiago
