Lately I’ve been spending time getting various SDL 1/2 emulators working on Haiku. Generally, it’s just a matter of adding some #ifdef statements for Haiku or removing certain linker flags.
I’ve been trying to get A7800 going (kind of a MESS/MAME offshoot) and I’ve made some progress, but I keep hitting a wall with pre-compiled headers.
In this case:
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: …/…/…/…/freebsd/obj/x64/Release/emu.h: No such file or directory
Searches on the web generally say to delete the pre-compiled headers and the process will re-make them and all will be good, but that’s not the case here. They appear to be made invalid from the get-go.
For the most part I don’t know what I’m doing, and I really have no experience with pre-compiled headers. I’m hoping someone else does.
One thing I can say is that I had to remove these two flags for anything to happen: -rdynamic and -ldl
I think it’s feasible that either one or both of those flags may be causing the issue. They don’t work with Haiku (or, at least, not in the way they’re called in the makefiles).
If anyone has any ideas, I’d love to hear them.