Building on OS X #2

Closed
alecthegeek opened this Issue Nov 11, 2012 · 2 comments

Projects

None yet

2 participants

I am currently trying to build SmartSim on OS X. It's failing on a requirement for gtk++.

I do have gtk and cairo installed via homebrew on the Mac. Gtk seems to be installed correctly, but I am getting this error message


configure: error: Package requirements (gtk+-2.0) were not met:

Package xcb-shm was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-shm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-shm', required by 'cairo', not 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 GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

@ashleynewson ashleynewson was assigned Nov 12, 2012
Owner

HI,

Unfortunately I don't have OS X so I can only guess how to solve this problem.

From what I can tell, it looks like Homebrew is installing xcb-shm in an unusual place or not setting up the environment to use it correctly. It sounds like you may need to change your PKG_CONFIG_PATH slightly, suggested by Homebrew/legacy-homebrew#14123
It also suggests that this problem is common when compiling software which depends on Cairo.

Please reply to say whether this helps.

Ashley

Thanks for that.

export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig

moved me forward. Now to look at the next problem :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment