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.

EugeneP

Is there Benuu port for Haiku OS?

EugeneP

Why I'm asking:
I successfully build latest Bennu for Haiku OS ( BeOS free open source remake http://www.haiku-os.org/ )
Fenix had full support of TARGET_BEOS and most of this code is still there, so I had only one minor problem.

And... er... I do not know what to do with this build :)
Is anyone here interested? Maybe someone already supports Haiku port and I just could not find it?

josebita

Hi!
I wrote that TARGET_BEOS code quite some time ago. I believe there was someone asking for this, yes, and I do try Haiku builds from time to time, too. Maybe you could PM me a copy of the build so I can upload it to the main BennuGD page as an unofficial build.

Also, just for reference: Did you have to do anything special to build the code? Any source changes? I assume you've created a GCC4 build, right? Any comments? :)

EugeneP

#3
Yes, it is gcc4 build of course :)

Generally I followed "porting tips".
I have one build problem: a dependence on libm (is it really needed I wonder?) I simply removed it from modules/configure.in
And there was runtime problem with loading modules. Haiku returns really strange Dl_info from ldaddr (it is probably bug), so I add one check to loadlib.h
[code language="c"]#ifndef TARGET_BEOS
// On Haiku OS dladdr returns empty strings in info structure
// so condition below is always false
   if ( strcmp( ptr, handle->fname ) )
   {
       __dliberr = "Symbol not found (2)." ;
       return NULL;
   }
#endif [/code]

Here is my build: download (~400k)
Here is modified files, build scripts, required 3d-party packages and small "readme":  download (~12M)

I have not checked the build deeply, but it  runs packman and galaxian with no visible problems.

josebita

Thanks a lot! I'll upload your package ASAP.

josebita

I've tested your binaries in VirtualBox and they seem to be working just as advertised :) Just FYI, I'll strip the binaries before uploading, ok?

EugeneP

Not a problem :)
I think someone more wise should review my scripts anyway.

EugeneP

I've made some testing.
There are some joystick problems - it is 100% Haiku bug.
There is no scaling when going full screen. This probably could be fixed on bennu side.
No other issues yet.

I'll try to make popular bennu games running on Haiku, that would be nice addition to haikuware :)

josebita

Great to know :)

I'll try to upload your binaries this evening, sorry for the delay.

josebita

Uploaded to the main downloads page.

EugeneP

Problem with dladdr() have been corrected in Haiku r38373, so it is possible now  to build unmodified Bennu sources for Haiku.
Give me some time and I provide a build script  ;)

SplinterGU

great! really great!

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

Drumpi

I don't use Haiku, but i give you a karma, just for made it ;)
Hala, como con 1001 procesos sólo va a 9 FPS, vamos a meterle 32 veces más, a ver si revienta.
(Drumpi epic moment)

EugeneP

I have done some experiments and I think it is better to build slightly patched version of Bennu for Haiku.
Here is a SCRIPT I promised :)
Launch this script on Haiku with installed SDL and working internet. It will download sources from svn, will patch it and will build a package. More detailed README is inside.



I started small page about the port ( http://uwolke.ru/node/7 ) and I'll try to keep it up to date (both, port and page :) ).

If anyone want to make a Bennu game run on Haiku, he may use one of test packs I prepared to examine this port.

Unfortunately there is a bug which probably make many mouse-based games unplayable. Be warned.

SplinterGU

Great EugeneP! Karma for you.

You can explain difference in your port vs. official version?

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