trying to get the source code to compile, unfortunately after hours wasted I keep getting the same cc translationtable error.
Here are the scarce instructions:
?Copy config.template to config.default, edit the resulting file: Uncomment ONE language, optionally uncomment some build options.
For MSYS+MinGW uncomment the parts specific to it regarding SDL and adjust the path to SDL as necessary
?Build it by typing make (or gmake on some platforms)
?Start the game once, it will generate a config file .ja2/ja2.ini (or JA2/ja2.ini on Windows) in your home directory and terminate. Edit the file and adjust the path in their to point to your Jagged Alliance 2 data files.
In the config.default I point exactly to where my sdl-config is not the folder but the file itself, it still doesn’t work.
Requesting assistance from anyone with mingw+msys compiling experience, can you compile a executable out of this cource code (windows xp 32bits)
trying to get the source code to compile, unfortunately after hours
wasted I keep getting the same cc translationtable error.
Here are the scarce instructions:
Quote:
.Copy config.template to config.default, edit the resulting file:
Uncomment ONE language, optionally uncomment some build options.
For MSYS+MinGW uncomment the parts specific to it regarding SDL and
adjust the path to SDL as necessary
.Build it by typing make (or gmake on some platforms)
.Start the game once, it will generate a config file .ja2/ja2.ini (or
JA2/ja2.ini on Windows) in your home directory and terminate. Edit the
file and adjust the path in their to point to your Jagged Alliance 2
data files.
In the config.default I point exactly to where my sdl-config is not
the folder but the file itself, it still doesn’t work.
Requesting assistance from anyone with mingw+msys compiling
experience, can you compile a executable out of this cource code
(windows xp 32bits)
common sense tells me to edit the file with notepad in windows and rename it to .default but if I do that it gives me a CCtranslationtable error
how do I edit config.default from the msys console?
Maybe config.template / config.default contains Unix line endings, which
notepad.exe (“Editor”) can’t handle (even on Vista…).
Try using wordpad.exe (found in Start Menu > Programs > Accessories > WordPad or
something like that). It should be able to handle Unix line endings. Or try some
more advanced text editor.
If you can’t find one, convert the line endings using this MinGW command:
unix2dos config.default
Then edit the file using notepad.
Afterwards, convert the line endings back, just to be sure:
dos2unix config.default
I keep getting the same cc translationtable error.
If the line endings thing didn’t help, please post the exact error message and
anything else that make/the compiler printed around it.
For example, if the command that failed was:
make
Then change it to:
make >makelogfile.txt 2>&1
You will not see any messages, as they all go into makelogfile.txt (in the
current working directory).
Edit makelogfile.txt and remove anything you don’t want us to see (it might
contain your real name, for example). Again, use a Unix-friendly text editor or:
unix2dos makelogfile.txt
The best editors to use on windows as a notepad replacement are Notepad++ or
Ultraedit.On Sun, Apr 4, 2010 at 11:45 PM, Martin <name.changed.by.editors at online.de>wrote:
Hi Triarii
common sense tells me to edit the file with notepad in windows and rename
it to .default but if I do that it gives me a CCtranslationtable error
how do I edit config.default from the msys console?
Maybe config.template / config.default contains Unix line endings, which
notepad.exe (“Editor”) can’t handle (even on Vista…).
Try using wordpad.exe (found in Start Menu > Programs > Accessories >
WordPad or something like that). It should be able to handle Unix line
endings. Or try some more advanced text editor.
If you can’t find one, convert the line endings using this MinGW command:
unix2dos config.default
Then edit the file using notepad.
Afterwards, convert the line endings back, just to be sure:
dos2unix config.default
unix2dos and dos2unix are part of the mingw-utils package. The version I
use can be found here:
I keep getting the same cc translationtable error.
If the line endings thing didn’t help, please post the exact error message
and anything else that make/the compiler printed around it.
For example, if the command that failed was:
make
Then change it to:
make >makelogfile.txt 2>&1
You will not see any messages, as they all go into makelogfile.txt (in the
current working directory).
Edit makelogfile.txt and remove anything you don’t want us to see (it might
contain your real name, for example). Again, use a Unix-friendly text editor
or:
unix2dos makelogfile.txt
You could also try out the free Visual C++ 2008 Express Edition which
has some nice automatic code-formatting support.On 4/4/10 3:06 PM, Paulo Pinto wrote:
The best editors to use on windows as a notepad replacement are
Notepad++ or Ultraedit.
On Sun, Apr 4, 2010 at 11:45 PM, Martin <name.changed.by.editors at online.de <mailto:name.changed.by.editors at online.de>> wrote:
Hi Triarii
common sense tells me to edit the file with notepad in windows
and rename it to .default but if I do that it gives me a
CCtranslationtable error
how do I edit config.default from the msys console?
Maybe config.template / config.default contains Unix line endings,
which notepad.exe ("Editor") can't handle (even on Vista...).
Try using wordpad.exe (found in Start Menu > Programs >
Accessories > WordPad or something like that). It should be able
to handle Unix line endings. Or try some more advanced text editor.
If you can't find one, convert the line endings using this MinGW
command:
unix2dos config.default
Then edit the file using notepad.
Afterwards, convert the line endings back, just to be sure:
dos2unix config.default
unix2dos and dos2unix are part of the mingw-utils package. The
version I use can be found here:
http://sourceforge.net/projects/mingw/files/MinGW%20Utilities/mingw-utils/mingw-utils-0.3/mingw-utils-0.3.tar.gz/download
I keep getting the same cc translationtable error.
If the line endings thing didn't help, please post the exact error
message and anything else that make/the compiler printed around it.
For example, if the command that failed was:
make
Then change it to:
make >makelogfile.txt 2>&1
You will not see any messages, as they all go into makelogfile.txt
(in the current working directory).
Edit makelogfile.txt and remove anything you don't want us to see
(it might contain your real name, for example). Again, use a
Unix-friendly text editor or:
unix2dos makelogfile.txt
Then post the file here.
Martin
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Can you run the command “cc” from the MSYS command line? I think calling
this a translation table error is not correct - this error is telling you it
can’t run the compiler.On Mon, Apr 5, 2010 at 8:17 AM, Triarii wrote:
nirvana editor is not available for windows, but I used notepad++ and
windows wordpad and keep getting the same error.
straight from the ‘makelogfile’
Quote:
===> CC sgp/TranslationTable.c
make: cc: Command not found
make: *** [sgp/TranslationTable.o] Error 127
now I’m absolutely lost as I did everything the guide told me to and I compiled my test sdl program (the one with the revolting white dots/stars in the black window) and my sdl compile is working fine
I think we just found the problem. The guide has you using gcc as the
compiler command, and the translation table source file wants to be
compiled with cc. Since you’re running this on windows, try this: find
gcc.exe on your hard drive. Copy and paste gcc.exe into the same
directory (this should result in a file named “copy of gcc.exe”).
Rename the copy to cc.exe. Then try to build JA2 again (by going into
whichever directory and running make from the command line, as your
initial post stated). This should get you further.On Mon, Apr 5, 2010 at 10:22 AM, Triarii wrote:
I can’t
"
sh: cc: command not found
"
?
now I’m absolutely lost as I did everything the guide told me to and I
compiled my test sdl program (the one with the revolting white dots/stars in
the black window) and my sdl compile is working fine
Following what Justin Coleman said I finally got a *.exe …
I’m gonna see if it works but I saw some errors as it was compiling
questions:
Where can I download the official ‘cc.exe’? so I don’t have to use ‘gcc.exe’ renamed
I had to put the command ‘make LNG=ENGLISH PREFIX=COMPAQ’ as it simply didn’t work with just make as it doesn’t recognize my config.default… my question I wanted this to not create folders and ja2.ini in the compaq-my documents but in the c:\program files\ja2 game directory itself … is there any way to do that?> # NOTE: This file is ONLY intended as template config file for manual builds.
If you are building a package (or ebuild, spell, source rpm, …) do NOT
modify this file, use sed or whatever. In fact do NOT use this file AT ALL.
Just pass parameters to make. This is much simpler and way less error prone
this way. This file is NOT intended for package building. For a package
just use
make LNG=$YOUR_LANGUAGE PREFIX=$YOUR_PREFIX
as build command and maybe some more variables, though on a sane system this
should not be necessary.
Uncomment exactly ONE of these
#LNG := DUTCH #LNG := ENGLISH #LNG := FRENCH #LNG := GERMAN #LNG := ITALIAN #LNG := POLISH
Thanks to what Justin Coleman suggested I was able to compile it by simply renaming gcc.exe to cc.exe
Been using it for a few hours and it’s working perfectly, if anyone wants this game let me know I’d be happy to send as it works beautifully with sdl.
Anyway I just have 2 questions since I have everything set up to compile I’d like to include a change in the source code that someone made… I know I’m a complete ignorant but do I put this commands in the msys console or do I edit the JA2Screens.h and JA2screens.cc files in the build directory ???
My second question is that right now the game is C:\program files\JA2 and the *.exe I compiled creates a JA2 folder in my documents and a bunch of stuff inside that folder
I’d like the game to be contained inside the program files\ja2 folder like it’s the norm but I can’t figure out what do I put in
MANPREFIX= ?
Tunables for installation. The default values are shown
As long as you have the GNU tools, you can apply a diff patch like so:
patch <mypatchfile
This will work if you’re in the parent directory of ‘Build’. If you’re in
the Build directory, use:
patch -p1 <mypatchfile
Check out man patch (even though it sounds funny, tee hee).
Jonny DOn Thu, Apr 8, 2010 at 4:44 AM, Triarii wrote:
Thanks to what Justin Coleman suggested I was able to compile it by
simply renaming gcc.exe to cc.exe
Been using it for a few hours and it’s working perfectly, if anyone wants
this game let me know I’d be happy to send as it works beautifully with sdl.
Anyway I just have 2 questions since I have everything set up to compile
I’d like to include a change in the source code that someone made… I know
I’m a complete ignorant but do I put this commands in the msys console or do
I edit the JA2Screens.h and JA2screens.cc files in the build directory ???
GNU tools seem to not be available for mingw+msys, at least in my TDM/MIngw setup they are not optional…
I guess windows and mingw+msys hardly make a optimal environment for this but the *.exe is working so I’m going to try to input those command lines in the msys console see what happens