Autor Tema: Haiku OS port  (Leído 21263 veces)

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Haiku OS port
« en: Agosto 19, 2010, 08:01:05 am »
Is there Benuu port for Haiku OS?

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #1 en: Agosto 19, 2010, 08:06:02 am »
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

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #2 en: Agosto 19, 2010, 08:50:59 am »
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

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #3 en: Agosto 19, 2010, 10:12:48 am »
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.
« última modificación: Septiembre 07, 2010, 05:39:53 am por EugeneP »

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #4 en: Agosto 19, 2010, 10:36:28 am »
Thanks a lot! I'll upload your package ASAP.

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #5 en: Agosto 19, 2010, 10:46:37 am »
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

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #6 en: Agosto 19, 2010, 10:48:51 am »
Not a problem :)
I think someone more wise should review my scripts anyway.

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #7 en: Agosto 20, 2010, 05:47:27 am »
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

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #8 en: Agosto 20, 2010, 09:25:28 am »
Great to know :)

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

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #9 en: Agosto 21, 2010, 01:13:20 pm »
Uploaded to the main downloads page.

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #10 en: Agosto 27, 2010, 05:07:08 am »
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

  • Hero Member
  • *****
  • Mensajes: 12534
  • Karma: 370
Re: Haiku OS port
« Respuesta #11 en: Agosto 27, 2010, 05:26:05 am »
great! really great!

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

Drumpi

  • Hero Member
  • *****
  • Mensajes: 6185
  • Karma: 157
  • Odio el periodo "entre proyectos"
    • La web de Drumpi
Re: Haiku OS port
« Respuesta #12 en: Agosto 27, 2010, 01:03:27 pm »
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

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #13 en: Septiembre 06, 2010, 08:47:19 pm »
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

  • Hero Member
  • *****
  • Mensajes: 12534
  • Karma: 370
Re: Haiku OS port
« Respuesta #14 en: Septiembre 06, 2010, 08:57:48 pm »
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