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

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

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #30 en: Septiembre 07, 2010, 02:32:17 pm »
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.

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #31 en: Septiembre 07, 2010, 03:33:37 pm »
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

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #32 en: Septiembre 07, 2010, 03:46:31 pm »
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.
« última modificación: Septiembre 07, 2010, 04:00:26 pm por josebita »

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #33 en: Septiembre 07, 2010, 05:19:48 pm »
I don't understand... well, I'll that haiku use beos code.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #34 en: Septiembre 07, 2010, 05:28:32 pm »
please... test again...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado EugeneP

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

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #36 en: Septiembre 07, 2010, 08:40:33 pm »
you can update svn and build the last svn version without your script? please?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #37 en: Septiembre 07, 2010, 10:46:01 pm »
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.
« última modificación: Septiembre 07, 2010, 10:50:12 pm por EugeneP »

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #38 en: Septiembre 08, 2010, 02:37:29 am »
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.
« última modificación: Septiembre 08, 2010, 02:42:36 am por SplinterGU »
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #39 en: Septiembre 08, 2010, 02:54:01 am »
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

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #40 en: Septiembre 08, 2010, 03:02:14 am »
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

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #41 en: Septiembre 08, 2010, 04:19:45 am »
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.
« última modificación: Septiembre 08, 2010, 04:23:03 am por EugeneP »

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12459
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: Haiku OS port
« Respuesta #42 en: Septiembre 08, 2010, 04:29:00 am »
:(

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

Desconectado EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
  • Sexo: Masculino
    • Ver Perfil
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #43 en: Septiembre 08, 2010, 07:05:30 am »
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?

Conectado FreeYourMind

  • Hero Member
  • *****
  • Mensajes: 5543
  • Karma: 125
  • Sexo: Masculino
    • Ver Perfil
    • GECA soft
Re: Haiku OS port
« Respuesta #44 en: Septiembre 08, 2010, 07:36:40 am »
VirtualBox for all members, thanks  ;D