Opened 10 years ago

Closed 10 years ago

#41910 closed defect (invalid)

qgle build fails on mavericks: "'glu.h' file not found"

Reported by: hal.dace@… Owned by: john@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: ryandesign (Ryan Carsten Schmidt)
Port: qgle

Description

QGle build fails with a missing header file. Main.log attached.

(Problem only visible since gle-graphics was so quickly and effectively fixed :-))

Attachments (1)

main.log (157.4 KB) - added by hal.dace@… 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by hal.dace@…

Attachment: main.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to john@…

QGLE installs fine for me on Mavericks. Try first installing the mesa port, which provides glu.h. If that works we can add the dependency.

comment:2 Changed 10 years ago by hal.dace@…

Okay this is extremely strange. I have installed mesa. I can see glu.h in /opt/local/include/GL. And qgle is still failing with exactly the same error after doing a port clean / port install for it.

comment:3 Changed 10 years ago by hal.dace@…

Temporary workaround: sudo ln -s /opt/local/inclue/GL/glu.h /opt/local/include/glu.h

Builds and runs now -- I guess there should have been an extra -I to the compiler.

comment:4 Changed 10 years ago by john@…

You shouldn't be getting glu.h from Mesa, but rather from the system OpenGL framework.

Per your log, your build includes the line -I/System/Library/Frameworks/OpenGL.framework/Headers. On my system:

$ ls -l /System/Library/Frameworks/OpenGL.framework/Headers/glu.h
-rw-r--r-- 1 root wheel 18745 Oct 24 09:52 /System/Library/Frameworks/OpenGL.framework/Headers/glu.h

(This appears to be identical to the glu.h that ships with XCode as part of MacOSX10.9.sdk, but it's not actually the same file -- I don't know if it was installed by XCode or shipped already on the system.)

Anyway, for me QGLE builds based on the above include, with no Mesa installed and no extra symlinking. Can you check and see if the OpenGL framework is installed on your system?

comment:5 Changed 10 years ago by hal.dace@…

Thanks for the input John. It seems someone had forgotten to run xcode-select --install, and this is the first port that actually depended on it!

Sorry for the inconvenience and thanks again for the help. Feel free to close ticket as "user incompetence" :)

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Very good. Yes, installing the Xcode command line tools is required.

It's possible #41783 may have helped this not be necessary, but for now we require it.

Note: See TracTickets for help on using tickets.