ivansafrin/Polycode — Issue #80: Won't build on Ubuntu Linux (gdk not found)
Author: mcclure
Created: 2011-12-30 22:39:30+00:00
State: open

I have a fresh, standard VM install of Ubuntu 11.10 and a checkout of c6d8d95 with minor patches. I try to build on Linux using the build.md instructions. The dependencies succeed, but building Polycode itself fails with an error that gdk/gdkx.h was not found. I find that if I set the following environment variables, the problem goes away and Polycode will build.

export CXXFLAGS=$(pkg-config --cflags gtk+-2.0)
export LDFLAGS=$(pkg-config --libs gtk+-2.0)

I also find a gdk-2.0 in pkg-config which may have worked instead, but I didn't try building with that.

Expected behavior: The Polycode build/cmake scripts should be consulting pkg-config automatically to set up gdk rather than me needing to set environment variables myself.