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

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado EugeneP

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

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #1 en: Agosto 19, 2010, 12: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?

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4038
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #2 en: Agosto 19, 2010, 12: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? :)

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #3 en: Agosto 19, 2010, 02: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 06, 2010, 09:39:53 pm por EugeneP »

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4038
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #4 en: Agosto 19, 2010, 02:36:28 am »
Thanks a lot! I'll upload your package ASAP.

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4038
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #5 en: Agosto 19, 2010, 02: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?

Desconectado EugeneP

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

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #7 en: Agosto 19, 2010, 09:47:27 pm »
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 :)

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4038
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #8 en: Agosto 20, 2010, 01:25:28 am »
Great to know :)

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

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4038
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #9 en: Agosto 21, 2010, 05:13:20 am »
Uploaded to the main downloads page.

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #10 en: Agosto 26, 2010, 09:07:08 pm »
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  ;)

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12414
  • Karma: 366
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #11 en: Agosto 26, 2010, 09:26:05 pm »
great! really great!

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

Desconectado Drumpi

  • Hero Member
  • *****
  • Mensajes: 6040
  • Karma: 156
  • Sexo: Masculino
  • Odio el periodo "entre proyectos"
    • Ver Perfil
    • La web de Drumpi
Re: Haiku OS port
« Respuesta #12 en: Agosto 27, 2010, 05:03:27 am »
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)

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #13 en: Septiembre 06, 2010, 12: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.

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12414
  • Karma: 366
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #14 en: Septiembre 06, 2010, 12: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