#65562 closed defect (duplicate)

glfw fails to build on lion and mountain lion, x86_64 mac

Reported by: chaosesqueteam Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: glfw glfw-devel lion mountain_lion Cc:
Port: glfw

Description (last modified by chaosesqueteam)

glfw fails to build on lion and mountain lion, x86_64 mac. glfw-devel also fails to build.

The error on mountain lion is:

:debug:main Starting logging for glfw @3.3.7_0
...
CMakeFiles/glfw.dir/nsgl_context.m.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_glfw/glfw/work/glfw-3.3.7/src/nsgl_context.m
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_glfw/glfw/work/glfw-3.3.7/src/cocoa_window.m:328:28: warning: instance method '-occlusionState' not found (return type defaults to 'id') [-Wobjc-method-access]
:info:build     if ([window->ns.object occlusionState] & NSWindowOcclusionStateVisible)
:info:build                            ^~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_glfw/glfw/work/glfw-3.3.7/src/cocoa_window.m:328:46: error: use of undeclared identifier 'NSWindowOcclusionStateVisible'
:info:build     if ([window->ns.object occlusionState] & NSWindowOcclusionStateVisible)
:info:build                                              ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_glfw/glfw/work/glfw-3.3.7/src/cocoa_window.m:328:28: warning: instance method '-occlusionState' not found (return type defaults to 'id') [-Wobjc-method-access]
:info:build     if ([window->ns.object occlusionState] & NSWindowOcclusionStateVisible)
:info:build                            ^~~~~~~~~~~~~~
:info:build 2 warnings and 1 error generated.
:info:build make[2]: *** [src/CMakeFiles/glfw.dir/cocoa_window.m.o] Error 1

This particular package is needed by many opengl apps. Not all. But those who don't need it still like to build it as a reassurance that opengl actually works on their machine before building any other opengl project.

Downgrading mountain lion and lion to an earlier working glfw and glfw-devel would be a solution: as most projects don't need the latest.

Change History (2)

comment:1 Changed 21 months ago by chaosesqueteam

Description: modified (diff)

comment:2 Changed 21 months ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.