Sonic and Sega Retro Message Board: Gens/GS for Haiku OS (updated build instructions) - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 
Page 1 of 1

Gens/GS for Haiku OS (updated build instructions)

#1 User is offline Mad Echidna 

Posted 09 September 2009 - 05:45 PM

  • Gone
  • Posts: 5203
  • Joined: 13-January 03
  • Gender:Male
  • Wiki edits:4
I just got a nice email from the guy who is porting Gens/GS to Haiku OS, and it has some pretty interesting details. Not sure if anyone cares about this besides me, but there it is.

QUOTE
Updated build instructions (GCC4 Haiku only!):

git clone git://gs-server.gerbilsoft.ddns.info/srv/git/gens.git

cd gens

aclocal
autoheader
autoconf (if it complains, run it again)
libtoolize
automake
./configure —disable-debugger
make


- Phil.


QUOTE
Thanks for the tip, I didn't know that's where he hangs out.. trouble is, he's in the same time zone as my girlfriend, so I probably won't have time to chat with him during the hours we're both awake (I'm in the UK).

Anyway, if you want to follow the progress of haiku gens/gs, just

- install git
- do a lookup for the IP of gs_server.gerbilsoft.ddns.info on another system
-- put the ip and that host into your /boot/system/etc/hosts file (because haiku can't resolve hostnames with underscores in them)
- compile and install install nasm (I guess you could use —with-nasm=yasm when configuring gens/gs but I haven't tried it yet
- compile the haiku version of gens/gs with:

aclocal
autoheader
autoconf
automake —install-missing
./configure —disable-debugger && make

There's nothing to see yet, since my user interface is in another file. I have quite a cool looking native UI but I need to deconstruct it again and build it into gens before I can tie any other code into it. I kind of jumped the gun with that lol - but it works at least. I want to use David's centralized menu code if possible to reduce the work in updating menus as the thing develops - to an extent, it doesn't matter too much since if you're going to make all UI's compatible, you would probably use something like wxWidgets anyway :P

Phil

This post has been edited by Mad Echidna: 10 September 2009 - 10:23 AM

#2 User is offline GerbilSoft 

Posted 09 September 2009 - 05:48 PM

  • RickRotate'd.
  • Posts: 1600
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:158
The underscore issue is rather interesting. Technically, it's a violation of the DNS standards, but most DNS resolvers support it. The Haiku devs should add support for it.

In any case, I added an alias, gs-server.gerbilsoft.ddns.info .

EDIT: With regards to menus, it should be relatively easy to parse the main menu structure and create a Haiku menu. Gens/GS already does that on Windows and Linux. (There's a field for specifying menu icons, but the menu parser doesn't need to implement that. The Linux version does, but the Windows version does not.)
This post has been edited by GerbilSoft: 09 September 2009 - 05:50 PM
Reason for edit: Menu system.

#3 User is offline Mad Echidna 

Posted 09 September 2009 - 09:19 PM

  • Gone
  • Posts: 5203
  • Joined: 13-January 03
  • Gender:Male
  • Wiki edits:4
Thanks for setting up the haiku friendly alias gerb!

For the record, I managed to find a build of Allegro for Haiku, and got the old Gens BeOS binary to run with Sonic 2. Sound emulation worked as expected, but the window wasn't updating at all. I found that moving it off screen caused it to redraw and the game _was_ running, just not updating the window. Can't help but wonder if this is a limitation of the Haiku appserver or just a shitty port of Allegro. Either way, Phil doesn't plan to use Allegro so it shouldn't matter in the long run.
This post has been edited by Mad Echidna: 09 September 2009 - 09:20 PM

#4 User is offline Mad Echidna 

Posted 20 March 2010 - 11:08 PM

  • Gone
  • Posts: 5203
  • Joined: 13-January 03
  • Gender:Male
  • Wiki edits:4
Hey Gerbilsoft, that URL is no longer working. I just get "This website doesn't exist. Go away."

#5 User is offline GerbilSoft 

Posted 20 March 2010 - 11:15 PM

  • RickRotate'd.
  • Posts: 1600
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:158
QUOTE (Mad Echidna @ Mar 21 2010, 12:08 AM)
Hey Gerbilsoft, that URL is no longer working. I just get "This website doesn't exist. Go away."

The root directory of my server always shows that message.

GitWeb is available at http://gs-server.gerbilsoft.ddns.info/cgi-bin/gitweb.cgi .
This post has been edited by GerbilSoft: 21 March 2010 - 12:36 AM

#6 User is offline Mad Echidna 

Posted 19 April 2010 - 02:49 PM

  • Gone
  • Posts: 5203
  • Joined: 13-January 03
  • Gender:Male
  • Wiki edits:4
Maybe Cyberkitsune and I can start bugging people about a Haiku port again. I don't think it would be all that hard considering there already is SDL for Haiku, but I don't know shit about coding.

#7 User is offline Conan Kudo 

Posted 19 April 2010 - 11:56 PM

  • 「真実はいつも一つ!」工藤新一
  • Posts: 477
  • Joined: 12-January 09
  • Gender:Male
  • Wiki edits:14
QUOTE (Mad Echidna @ Apr 19 2010, 02:49 PM)
Maybe Cyberkitsune and I can start bugging people about a Haiku port again. I don't think it would be all that hard considering there already is SDL for Haiku, but I don't know shit about coding.


If Gens/GS II uses Qt4 for the GUI, it wouldn't really matter that much, since Qt4 already has a full blown Haiku port. Granted, the underpinnings probably need to be ported, like the actual emulation and the output mechanisms, but since SDL is already there for Haiku, not a big deal.

It is possible that the only thing needed would be a recompile to make it work.
This post has been edited by King InuYasha: 19 April 2010 - 11:57 PM

#8 User is offline CyberKitsune 

Posted 20 April 2010 - 12:07 AM

  • Posts: 78
  • Joined: 29-May 09
  • Gender:Male
  • Project:Figuring out what kind of Sonic fangame would be most unique
  • Wiki edits:52
I have SDL, libpng, OpenGL Headers, qt4, etc for Haiku ready to go on my dev box, though still a native GUI would be better but meh.

The core itself should and may compile with little source modification, as after all it's just gcc4 and those libs, though GerbilSoft may have his own libs that won't work with out patching etc.

So basically, I'll grab the source as soon as I can and see if I can get the core to compile, then wait for Gerbil to either make a haiku native GUI or get the planned at one somewhat done.


Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users