[MacPorts] #65562: glfw fails to build on lion and mountain lion, x86_64 mac

MacPorts noreply at macports.org
Fri Jul 29 01:47:48 UTC 2022


#65562: glfw fails to build on lion and mountain lion, x86_64 mac
--------------------------+------------------------------------------------
  Reporter:               |      Owner:  (none)
  chaosesqueteam          |
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.2
Resolution:               |   Keywords:  glfw glfw-devel lion mountain_lion
      Port:  glfw         |
--------------------------+------------------------------------------------
Description changed by chaosesqueteam:

Old description:

> glfw fails to build on lion and mountain lion, x86_64 mac.
> glfw-devel also fails to build.
>
> The error on 10.5 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.

New description:

 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.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/65562#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list