Hi there,
Building GLEW on OS X "Mavericks" v10.9.4 results in the following build error:
ar cr lib/libGLEW.a tmp/darwin/default/static/glew.o strip -x lib/libGLEW.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: archive member: /private/tmp/glew-XBd5px/glew-1.11.0/lib/libGLEW.a(glew.o) is a fat file (not allowed in an archive) make: *** [lib/libGLEW.a] Error 1
(Results of running make all
)
I stumbled upon a fix for the build error by disabling the stripping of the binaries by changing my build command to STRIP="" make all
. I do not really know why this resolves the issue, but alas.
This bug is being reported as a result of the discussion at homebrew pull request #33754
Cheers!
-Jeff
I have MacPorts installed, but not homebrew. I guess I'll give that a spin to see if I can reproduce the issue.
Indeed I can reproduce this in homebrew. The underlying issue is that universal binaries are not currently supported. The STRIP= approach is a workaround, at best. It so happens there is a separate bug filed for universal binaries, so hopefully we can circle back on this soon. (For the next release of GLEW)
I see. Thank you for the update! :-)
Until then,
Cheers!
You have to use ARFLAGS=crs (rather than just cr) when creating universal archives. We do this in MacPorts.
Fixed, closing. Use
SYSTEM=darwin-universal