Change to make source compatible with Haiku [message #2802] |
Thu, 20 December 2012 21:02 |
|
In src/tremor/misc.h, please add the following above #if BYTE_ORDER==LITTLE_ENDIAN:
#include <endian.h>
It will make the source compile on Haiku.
It actually runs pretty fine. Screenshot: http://img844.imageshack.us/img844/2347/screenshot3knj.png
|
|
Re: Change to make source compatible with Haiku [message #3086 is a reply to message #2802 ] |
Sat, 08 June 2013 01:10 |
|
Hi, sparklewind,
I'm trying to build mednafen on Haiku R1 Alpha 4.1 (running in Oracle VirtualBox) and configure gives me:
"could not find working option to disable strict overflow"
Do you have a workaround? Do you have a working makefile? (although I'd prefer to use configure, since I want to disable some of the emulator cores).
Thanks!
|
|
Re: Change to make source compatible with Haiku [message #3088 is a reply to message #2802 ] |
Wed, 12 June 2013 16:06 |
|
If you're using a build of Haiku that uses GCC2 as its main compiler (such as the official Alphas) I think you will get a lot more problems than just that error. I suggest you install a nightly build, either GCC4 hybrid or just GCC4.
http://haiku-files.org/unsupported-builds/x86-gcc4hybrid/
http://haiku-files.org/unsupported-builds/x86-gcc4/
If you can't compile mednafen on either of those I'll look into it.
[Updated on: Wed, 12 June 2013 16:13]
|
|
Re: Change to make source compatible with Haiku [message #3089 is a reply to message #3088 ] |
Thu, 13 June 2013 03:46 |
|
That seems to have done the trick.
Now I'm working on getting the dependencies in order. SDL seems to have installed properly, but libcdio is being troublesome.
Thanks again!
|
|
Re: Change to make source compatible with Haiku [message #3090 is a reply to message #3089 ] |
Thu, 13 June 2013 14:52 |
|
Glad that fixed it. Yeah, dependencies are a bit tricky. I think I got all of them through HaikuPorter, but it's a bit hard to use. Hopefully the package manager they're working on will be ready soon and will simplify things.
If you just want to get it running quickly, there is also the binary that I uploaded some time ago: http://haikuware.com/directory/view-details/emulators/game-systems/mednafen
It is however a bit outdated.. I really need to update it..
|
|
Re: Change to make source compatible with Haiku [message #3112 is a reply to message #3090 ] |
Fri, 05 July 2013 23:12 |
|
Well, I guess I'm not smart enough to do this... I can't even get HaikuPorter to install. It might be the tiny "virtual drive" that comes with Haiku. It's too small to do anything useful. (I should have gotten the CD image...)
I don't really have enough time to mess with it now, anyway. If/when I get Haiku running on actual hardware, I'll just use your build (unless it's waaay out of date by then )
Maybe this thread will be of help to someone, though.
|
|
Re: Change to make source compatible with Haiku [message #3123 is a reply to message #3112 ] |
Tue, 09 July 2013 13:00 |
|
I just installed Haiku again and HaikuPorter won't install anything. I guess it's just unstable. Or I'm not very smart either. I do intend to update it, but I think I'll for wait a while again and see how things develop first.
Most of the changes to mednafen since the version I uploaded concern PS1 emulation, so how terrible the lack of updates is will mostly depend on whether you intend to use the PS1 core or not.
[Updated on: Tue, 09 July 2013 13:10]
|
|