The International Simutrans Forum

 

Author Topic: Compilation problem of 3.13 and 3.14 on Linux  (Read 1732 times)

0 Members and 1 Guest are viewing this topic.

Morg

  • Guest
Compilation problem of 3.13 and 3.14 on Linux
« on: May 31, 2009, 05:43:43 AM »
First, thanks for a great work! Simutrans-experimental is looking really interesting and has many good changes compared to the original.

I noticed that 3.13 and 3.14 will not compile on Linux, the same problem was encountered by the automatic binary building script:
http://www.43-1.org/~simutrans/simutrans-exp/logs/20090531-0348.log

The solution is simple, in file: simhalt.h, replace line:
sint16 haltestelle_t::create_reachable_halt_list(const schedule_t *const sched, const spieler_t *const sched_owner, minivec_tpl<halthandle_t> &halt_list);
with:
sint16 create_reachable_halt_list(const schedule_t *const sched, const spieler_t *const sched_owner, minivec_tpl<halthandle_t> &halt_list);

knightly

  • Guest
Re: Compilation problem of 3.13 and 3.14 on Linux
« Reply #1 on: May 31, 2009, 05:51:38 AM »
Thanks for pointing out, Morg. I have indeed forgotten to remove haltestelle_t:: when I copy the function prototype from simhalt.cc .

James, can you fix that for me in simhalt.h? Many thanks in advance!

Morg

  • Guest
Re: Compilation problem of 3.13 and 3.14 on Linux
« Reply #2 on: May 31, 2009, 06:17:31 AM »
I noticed other minor issue with Linux binary, the music does not work because sdl is used as backend in the configuration file: http://www.43-1.org/~simutrans/simutrans-exp/config.simutrans-exp
Replacing this with mixer_sdl solves the problem. Maybe someone could notify the maintainer of the binary build about this?

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18763
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Compilation problem of 3.13 and 3.14 on Linux
« Reply #3 on: May 31, 2009, 09:42:28 AM »
Morg,

thank you very much for the report; I have now fixed the problem, and the fixed version has been pushed to Github. The automatic Linux build should compile in the early hours of to-morrow morning. Sorry that you had trouble.

As to the music, Arbruch is the one in charge of the Linux builds. I know that some people, however, have reported performance or stability issues with the MIDI music on SDL (in Simutrans-Standard as well as Simutrans-Experimental), which might be why the music is disabled.

Thank you very much for your reports - and also: welcome to the forums :-) I should be very grateful for any further feedback on Simutrans-Experimental that you might be able to give.