Hey everybody.
I found this game about a week back and got absolutely hooked.
I started this thread on reddit: https://www.reddit.com/r/cataclysmdda/comments/4w54he/fishing_in_classic_zombies/
I’ve got a linux machine at home and do have some experience with linux as a work environment from my previous job (but it was quite well prepared so we mostly could focus on bug fixing), and at home I mainly sit by my Windows computer and I’ve worked with VS a few years ago and really liked it, so I was wondering if it would be doable to set up VS 2015.
I found and tried to follow this, setting up VS2015 and everything from scratch:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md
[glow=red,2,300]!!! IGNORE THE REST OF THIS POST: PLEASE FOLLOW THE POST BELOW INSTEAD !!![/glow]
There were a few issues, such as some includes expecting all SDL-files residing in an SDL2 folder, some expecting to be found in the root of some include folder.
The pre compile script tries to use LUA to autogenerate some code. I of course didn’t have LUA on my computer so I had to shove that in.
I downloaded and built the gettext-msvc at https://github.com/kahrl/gettext-msvc after changing a couple of things mentioned in a 1 year old still open issue (the only issue).
https://github.com/kahrl/gettext-msvc/issues/1
(The comments by petermorck are mine.)
In Cataclysm I got an error about an unknown file by [tt]#include <libintl.h>[/tt] in [tt]translations.h[/tt] and [tt]main.cpp[/tt]
There file [tt]libintl.h[/tt] doesn’t exist anywhere.
I figured it might be the [tt]libgnuintl.h[/tt] in gettext, so I change those includes to use that instead.
Finally I actually got past the compilation stage and then the linker started puking at me.
It was of course a bucketload of
[tt]error LNK2001: unresolved external symbol libintl_gettext[/tt]
I then look at the built libintl.lib and see this:
[code]>dumpbin /EXPORTS libintl.lib
...blablabla...
libintl_swprintf
libintl_sprintf
libintl_snprintf
libintl_setlocale
libintl_printf
libintl_fwprintf
libintl_fprintf
gettext
..blablabla...
[/code]
Note how there’s no [tt]libintl_[/tt] in front of [tt]gettext[/tt].
So it’s trying to find [tt]libintl_gettext[/tt] but the lib only exports [tt]gettext[/tt].
Looking at the [tt]libgnuintl.h[/tt] and the redirect stuff in there made my brain hurt and I just gave up…
Anybody know how to get past this (last?) step? (It actually complains about LUA references too, but… later problem…)
TL;DR:
Has anybody managed to set up VS2015 as a working dev environment for this game?