looking for a little help and feedback for irrlicht port (to enable minetest)

Craig Treleaven ctreleaven at macports.org
Thu Jun 22 20:12:42 UTC 2017


> On Jun 19, 2017, at 11:28 PM, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
> 
> In my ongoing quest to bring every major open-source game to MacPorts, I've been working on minetest.
> 
> Minetest is reported to be the #1 most popular open-source game on the internet. It's been in homebrew for a long time, but was broken there. I fixed it about six months back for homebrew, but I have never submitted it to MacPorts.
> 
> The primary reason is it's supporting port, Irrlicht, which is a 3D framework used by a number of different games. Irrlicht is frankly a bit messy. Homebrew builds it as a static library using it's xcode build file, but I know that is not a popular way for macports to inhale such software.
> 
> Irrlicht is an older piece of software brought forward through the years. The Unix makefile is not properly written, and the supposed macosx shared library target does not seem to build correctly for me on any system I've tried.
> 
> On macOS, everyone seems to use the xcode build file, which does work to make either a static library (a la homebrew) or a framework (which is what I used, building it as a sharedlibrary). To make it work correctly, I more or less built the framework, and then copied the headers into include/Irrlicht/* and spec'd the library in the minetest build. I could have also symlinked the library into lib/irrlicht.dylib from the framework.
> 
> I _think_ this might be acceptable in that format for macports, but it is neither pretty nor elegant.
> 
> Minetest works perfectly well using this, however.
> 
> Would anyone interested in such things be willing to take a look at the Irrlicht build and see if there is a cleaner way to do it than what I have done?
> 
> My build file and patches are here:  <https://github.com/kencu/macports-staging/tree/master/devel/irrlicht>
> 
> The minetest portfile and associated patches, if anyone is interested in seeing it work, are here: <https://github.com/kencu/macports-staging/tree/master/games/minetest>.

So I’ve been having a look at irrlicht but not getting very far.  xcodebuld crashes (SIGABRT) almost immediately.  Debug output includes:

===========
Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 506
2017-06-22 15:49:26.109 xcodebuild[88904:8146444] launchctl print returned an error code: 28928
2017-06-22 15:49:26.109 xcodebuild[88904:8146444] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.
Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 506
2017-06-22 15:49:26.379 xcodebuild[88904:8146444] launchctl print returned an error code: 28928
2017-06-22 15:49:26.379 xcodebuild[88904:8146444] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-201.3/CoreSimulator/SimServiceContext.m:451
** INTERNAL ERROR: Uncaught exception **
Exception: Unable to lookup com.apple.CoreSimulator.CoreSimulatorService in the bootstrap.  This can happen if running with a sandbox profile.  When running with a sandbox profile, make sure that com.apple.CoreSimulator.CoreSimulatorService.xpc is owned by root, not group writable, and not world writable.  See <rdar://problem/22142915>.
===========

I’m running:

$ xcodebuild -version; sw_vers
Xcode 7.2
Build version 7C68
ProductName:	Mac OS X
ProductVersion:	10.10.5
BuildVersion:	14F2315

Have you experienced this?  Thoughts?

Craig



More information about the macports-dev mailing list