Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on OS X #2

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

Building on OS X #2

alecthegeek opened this issue Nov 11, 2012 · 2 comments
Assignees

Comments

@alecthegeek
Copy link

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.

@ghost ghost assigned ashleynewson Nov 12, 2012
@ashleynewson
Copy link
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

@alecthegeek
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants