Haiku OS port

Started by EugeneP, August 19, 2010, 08:01:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

josebita

Haiku aims to be completely compatible (both at binary and at source code level) with BeOS R5, even if in some areas it's much more robust. I believe you should treat them both as the same thing.

As there is no other BeOS-like OS anymore, I'd suggest using TARGET_HAIKU in the source code and introducing OS_HAIKU but with the same value as OS_BEOS, so that older games that may be using TARGET_BEOS are treated the same as newer ones.

SplinterGU

I don't understand... if BEOS is same that HAIKU then what is the point of this port?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

#32
BeOS is dead and the current BennuGD C code doesn't work in Haiku as the code to support BeOS that has been inherited from Fenix doesn't compile directly on Haiku, even if the binary versions of Fenix I compiled then should work in today's Haiku.

Remember that when I created that code, Fenix still used static Makefiles for compilation. That's why eugeneP has had to touch the compilation scripts and the code in order to get the code working again.

SplinterGU

I don't understand... well, I'll that haiku use beos code.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

Wait a second :)

1) I used TARGET_BEOS, and as josebita I think osid for Haiku and BeOS should be the same.

2)  Yes, I know this check is needed, but dladdr fails to find some symbols on Haiku. The easy way which I used is to drop this check and hope no one defines ambiguous functions. The middle way is to fix bug in Haiku - I reported it and some fixes were done, but problem is not resolved completely, I am searching for source of bug. The hard way is to add Haiku specific code to loadlib.h. Well, whenever I get spare time...

3) Actually testing could be done by anyone on virtual machine or real hardware using latest builds ( http://www.haiku-files.org ) I'll do some testing in few hours.

SplinterGU

you can update svn and build the last svn version without your script? please?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

#37
Quote from: SplinterGU on September 08, 2010, 04:40:33 AM
you can update svn and build the last svn version without your script? please?

SVN compiled successfully with no code modifications.

Doing autoreconf is yet required before configure (as described in http://ports.haiku-files.org/wiki/PortingTips )

[code language="bash"]libtoolize --force --copy --install
autoreconf -i[/code]

Unfortunately compiled bgdi fails to run a game ( I tested Adventures of Echo only ). Wait for few hours and I provide detailed report.

As I remember there were sets of complex tests for Fenix which allows to verify every language feature. Is there something like that for Bennu? Standard test would be useful now.

SplinterGU

#38
this have your changes, but TARGET_BEOS that use SVN version and I guess that you don't use it.

then Haiku is different that BeOS.

I continue thinking that need an OS_HAIKU, because all bennu's (and then Fenix) code for BEOS seem doesn't works in haiku.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

EDIT: Please give more data... you said that you used TARGET_BEOS, but you don't tell me that you use it in your script.

well, I'm check yours script now, I'm see in bgd-configure.sh you use it.

then svn code must works exactly as works your patched version, you only forget tell me about this "-L/boot/system/lib"

but I don't think that this is the problem.

please, let me clear, your patched version works but the svn version don't works?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

I now add -L/boot/system/lib to configure.in

try again... but this must works same that works your version.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

#41
Oh, sorry :( I was not careful enough, svn r173 works fine. b^___^d

Also I suggest small changes to loadlib.h (diff attached) to avoid call buggy dladdr at all.

-L/boot/system/lib is not needed actually. it's an artefact form the very first tries.

SplinterGU

:(

I need revert changes.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

Lets be calm in main svn branch. Debugging by forum posts in spare time is not the best development practice.

You need live Haiku to test everything by yourself. I'm going to make virtual machine installation to quick test svn builds. Which would you prefer? VirtualBox or Qemu?

FreeYourMind

VirtualBox for all members, thanks  ;D