Building on Mac OS X

jbmcgee wrote on Thursday, June 20, 2013:

Hello,

When I try to build for Mac OS X 10.6.8 after using CMake 2.8-11, I receive the following:

/Users/jarvis/glfw/src/cocoa_window.m: In function ‘convertRectToBacking’:
/Users/jarvis/glfw/src/cocoa_window.m:77: warning: no ‘-convertRectToBacking:’ method found
/Users/jarvis/glfw/src/cocoa_window.m:77: warning: (Messages without a matching method signature
/Users/jarvis/glfw/src/cocoa_window.m:77: warning: will be assumed to return ‘id’ and accept
/Users/jarvis/glfw/src/cocoa_window.m:77: warning: ‘…’ as arguments.)
/Users/jarvis/glfw/src/cocoa_window.m:77: error: incompatible types in return
/Users/jarvis/glfw/src/cocoa_window.m:80: warning: control reaches end of non-void function
/Users/jarvis/glfw/src/cocoa_window.m: In function ‘createWindow’:
/Users/jarvis/glfw/src/cocoa_window.m:829: warning: no ‘-setWantsBestResolutionOpenGLSurface:’ method found
/Users/jarvis/glfw/src/cocoa_window.m:839: warning: no ‘-setRestorable:’ method found
make[2]: *** [src/CMakeFiles/glfw.dir/cocoa_window.m.o] Error 1
make[1]: *** [src/CMakeFiles/glfw.dir/all] Error 2
make: *** [all] Error 2

Is this a bug? Or as am I missing something.

Thanks.

elmindreda wrote on Thursday, June 20, 2013:

This should have been fixed in 3.0.1.

cameronking wrote on Friday, June 21, 2013:

The full output I pasted in the github bug tracker where this bug was moved to was from 3.0.1. (Mac OS X 10.6.8) :frowning:

I too thought this was fixed in 3.0.1…

I hope 3.0.2 arrives soon. ‘Luckily’, I have other bugs to hunt before I return to attempting to upgrade my GLFW setup.

elmindreda wrote on Friday, June 21, 2013:

Oh, sorry, I was confused. What was fixed in 3.0.1 was building binaries with the 10.7 SDK that would run on 10.6. This is about building binaries with the 10.6 SDK. I’ll see about fixing that in 3.0.2.