James
James

Reputation: 114

OpenGL library missing on mac when compiling software package from source

I'm installing a printed-circuit board layout tool called pcb (I'm using pcb version 20140316. I'm on a Mac (OS X 10.9 -- Mavericks). I would prefer to install pcb via homebrew, but there is currently a problem with the homebrew version, so in the meantime, I'm trying to compile pcb from source. When I run the configure script for pcb, it halts with

checking for GL/gl.h... yes
checking for OpenGL/gl.h... yes
checking for OpenGL library... no
configure: error: in `/Users/jbattat/gedaGIT/pcb':
configure: error: OpenGL is required.

Web searches suggest that the OpenGL libraries are installed via XCode and the command-line tools. I have installed Xcode (version 6.2), and I have installed the command-line tools via xcode-select --install, which claimed to succeed ("The software was installed").

$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
$ xcode-select -v
xcode-select version 2333.

However the OpenGL library is still not found by the pcb configure script.

I'm not sure how to proceed... Is it possible that the configure script is looking for OpenGL in a way that works on linux, but not on a mac?

Upvotes: 0

Views: 1892

Answers (1)

datenwolf
datenwolf

Reputation: 162164

Looks like that configure script is broken (surprise, surprise, it's autotools). Anyway on MacOS X OpenGL comes in the form of a Framework and not a library. Also I don't see how the configure script could have found GL/gl.h, since in MacOS X the path is OpenGL/gl.h as found by the following line of the configure script.

Interim solution: Modify the configure.in file not to look for OpenGL at all and add -framework OpenGL in the Makefile.in. Long term solution: File a bug with the developers, that build configuration on on MacOS X seems to be broken.

Upvotes: 3

Related Questions