[MacPorts] #67263: supertuxkart @1.4: builds fail for 10.12 and earlier: IOSurface/IOSurfaceRef.h not found

MacPorts noreply at macports.org
Sat May 13 14:37:36 UTC 2023


#67263: supertuxkart @1.4: builds fail for 10.12 and earlier:
IOSurface/IOSurfaceRef.h not found
---------------------------+--------------------
  Reporter:  mascguy       |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  supertuxkart  |
---------------------------+--------------------

Comment (by evanmiller):

 After some tinkering I did get this playable on 10.6 with three changes.

 1. Set DLOPEN_MOLTENVK=ON

 2. In place of the IOSurfaceRef.h import you just need

 {{{
 typedef void *IOSurfaceRef;
 }}}

 3. #ifdef out the Metal.h imports (I used an {{{#undef __OBJC__}}})

 With these changes the program will attempt (fail) to load Metal at run-
 time and fall back to OpenGL.

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


More information about the macports-tickets mailing list