ctdk/bsdgames-osx

'hack.onames.h' file not found

Closed this issue · 7 comments

WHERE DID YOU PUT IT JEREMY?! WHERE'S THE FILES?!

ctdk commented

Strange, hack was building just fine (and working, even) before. I'll look into it.

ctdk commented

Yeah, it works for me. hack.onames.h gets generated by the build process, so running bsdmake should build it fine.

Which version of MacOS X, and what steps were you doing to build it?

macOS 10.12 Sierra

I don't remember exactly how I did it, I'm pretty sure I just did bmake && bmake install. I'll try again later.

ctdk commented

Hmm, I haven't tried building it with bmake specifically, just the bsdmake in https://github.com/Homebrew/homebrew-core/blob/master/Formula/bsdmake.rb that Apple used to ship.

Coincidentally I just made a homebrew tap that includes bsdgames-osx that's at https://github.com/ctdk/homebrew-ctdk. If you use homebrew that might work for you (I haven't tried any of this on 10.12 yet).

ctdk commented

I installed bmake and have confirmed that building hack, and only hack, choke. This is because for some reason bmake does not run the build-tools: and hack.oname.h targets in the Makefile, while bsdmake does.

Needless to say there's no obvious problem with hack's Makefile, and I haven't figured out what difference there is between its Makefile and, say, adventure that would cause it to break. I'm looking into it, but in the meantime bsdmake is known to work. Don't forget to include CFLAGS="-std=c11" CC=clang with whatever make you end up using.

Alright, from my understanding I thought that bmake was bsdmake but I guess it's not entirely compatible with the version you used.

The tap worked though! Thank you very much.

ctdk commented

You're welcome. I'm surprised that it doesn't work with bmake, but as far as I can tell there must be some small difference between bmake and the Apple bsdmake that chokes on the hack Makefile and no other (literally every other game in here builds with bmake fine).

I still want to figure out why it isn't working, but since you had success with the tap I'll go ahead and close this out. If it takes too long to get hack working with bmake I'll have to make a note in the docs that it just doesn't work with it for some bizarre reason.