News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Compilation of 102.2.2 failing in simgraph16.cc

Started by PkK, October 24, 2010, 03:38:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PkK

I just tried compiling 102.2.2, and get the follwoing error:

===> CXX simgraph16.cc
simgraph16.cc: Assembler messages:
simgraph16.cc:1788: Error: operand type mismatch for `jmp'
make: *** [simgraph16.o] Fehler 1

What can I do about it?

P.S.: It would be nice if you would make finding the source tarballs easier, e.g. by including links to them in the posts announcing the availability of new versions. Currently it feels as if you're deliberately hiding them from the public (i.e. mentioning not mentioning that sources are available n the places where links to binaries are posted, like the download page, etc; one has to browse through the files at sourceforge to find them, and it's now like it's obvious where to look there either). A slightly easier way to build, e.g. ./configure && make, which works for most other software giving a build with sensible default configuration would be nice, too.
The current situation makes me want to use Windows for playing simutrans, even though I use GNU/Linux for everything else.



prissi

Most developing goes directly from the SVN, which is not at all hidden. But the translation stumble on the inline assembler. Thus I presume you need to add the flag -DUSE_C, to switch the online assembler off.

And you are welcome to wirte an autoconfig for simutrans. I rather spent my time on other stuff. And did you even try ./configure? There is something, that should work on most systems.

PkK

Quote from: prissi on October 24, 2010, 03:52:29 PM
And did you even try ./configure? There is something, that should work on most systems.

There is no ./configure in the 102.2.2 tarball I downloaded from sourceforge.

Philipp

PkK

Quote from: prissi on October 24, 2010, 03:52:29 PM
Thus I presume you need to add the flag -DUSE_C, to switch the online assembler off.
Thanks. -DUSE_C allowed me to compile simutrans. When trying to run it I get an
*** PLEASE INSTALL PROPER BASE FILES ***
error. I've looked a bit at the files available at sourceforge, but did not notice anything that looked like an archive of "base files". Where can I find them?

Philipp

prissi

Please familiarize yourself with the directory structure simutrans needs its data files organize into. Most easy it is via looking at an executable archieve.

However, since you aparently run simutrans on Linux, there is a more "Unix" like package for Debian (and some other distribution too) which has a slightly different file layout.

And finally there is a script under trunk called configure.sh. Usually, if you just type configure, the shell should execute it (and only fails so under Ubuntu). But it may as well not work, since it is quite old.

Dwachs

PkK: the source is available from svn://tron.homeunix.org/simutrans/trunk (username anon, empty password), there is a mirror at github as well: http://github.com/aburch/simutrans

The configure.sh script is one level above trunk in the svn. You dont need to run that anymore as you have already succesfull compiled.