The International Simutrans Forum

 

Author Topic: Compiling pak128  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

Offline T0m4S

  • *
  • Posts: 67
  • Languages: ES, EN, FR, IT, DE
Compiling pak128
« on: January 30, 2013, 05:52:51 PM »
Well, I want to compile pak128 (I know that there're the nightlies but anyway I want to do it myself) but I'm getting the following error with linux 64 (gentoo), using pakmak.py:

Code: [Select]
./pakmak.py
_pakmak.tab found in "/home/tomasfg/pak128", processing...
Executing command: delete /home/tomasfg/pak128/simutrans/pak128
Executing command: copy pak128.prototype /home/tomasfg/pak128/simutrans/pak128
My folders:  factories | cityhouses | special_buildings | vehicles | citycars | landscape | base
Entering folder factories
Compiling...
makeobj[0]: Entering directory `/home/tomasfg/pak128'
make: *** No rule to make target `QUIET'.  Stop.
makeobj[0]: Leaving directory `/home/tomasfg/pak128'
Compiled.
Makeobj call returned 2

But I don't know which is the problem...

PS: By the way, pakmak.py is saved using windows coding for endline (^M), so I had to convert it to unix coding:
Code: [Select]
/pakmak.py
bash: ./pakmak.py : /usr/bin/python^M : mauvais interpréteur: Aucun fichier ou dossier de ce type

Offline T0m4S

  • *
  • Posts: 67
  • Languages: ES, EN, FR, IT, DE
Re: Compiling pak128
« Reply #1 on: January 30, 2013, 05:56:00 PM »
I found the problem:

On _pakmak.tab line 17 shlod be:

Code: [Select]
cmd makeobj quiet[code]

It looks like quiet is case sensitive!

Offline T0m4S

  • *
  • Posts: 67
  • Languages: ES, EN, FR, IT, DE
Re: Compiling pak128
« Reply #2 on: January 30, 2013, 06:04:16 PM »
Now I got another problem:

Code: [Select]
===> ground.Outside.pak
Makeobj version 55.1 for Simutrans 112.1.1 Nightly and higher
Makeobj version 55.1 for Simutrans 112.1.1 Nightly and higher
mv: impossible d'évaluer « ground.Outside.pak »: Aucun fichier ou dossier de ce type
make: *** [base/grounds] Erreur 1

The error in English would be something like: mv: impossible to evaluate « ground.Outside.pak »: No file or folder found

I don't know how to solve it... any ideas?

Offline VS

  • Senior Plumber (Devotee)
  • Moderator
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Compiling pak128
« Reply #3 on: January 30, 2013, 10:40:32 PM »
I wrote a lot of text and what you should check, but then it dawned on me.

Your "makeobj" is not the Simutrans one! Please resolve that, and eventually modify _pakmak.tab so that it gets called. That is the whole magic (now).

As to encoding - did you download sources from svn? I thought default property was svn:line-ending=auto (or whatever it is called), making it native as you check out. Otherwise the sources (last for previous release!) were indeed packed on windows, so the files will get windows line ends.

Offline T0m4S

  • *
  • Posts: 67
  • Languages: ES, EN, FR, IT, DE
Re: Compiling pak128
« Reply #4 on: February 02, 2013, 01:19:50 PM »
You're right. I didn't realise the wrong makeobj was bieng called. Now it works like a charm! Thanks!