y2s82 / goblin_camp

Dwarf Fortress clone, revisited
GNU General Public License v3.0
36 stars 12 forks source link

Compiling and build for Windows #124

Open ThomasNolte opened 5 years ago

ThomasNolte commented 5 years ago

I'm still working on this issue and feel like I'm getting close(r) so figured I'd make give an update.

All compiler and linker errors have been resolved and I'm just dealing with some warning stopping the executable being built.

progress

I've tried a few things in hopes of suppressing the warning but building with boost from command line isn't allowing that so easily

System: x32

Compiler MSVC-14.0

Current local dependencies: Python27 x32 WinSDK v7.1 libtcod-1.5.1 (I think) libpng-16 SDL-1.2.15 SDL_image-1.2.5 zlib-1.2.5

ThomasNolte commented 5 years ago

Ok I was finally able to get it to compile and build locally.

success

Not quite there yet though...

python-dll-missing sdl_image-dll-missing sdl-dll-missing

I'll keep hacking away at it.

humphd commented 5 years ago

@ThomasNolte oh yeah!

xt9igzuuc5ss6zntes

ThomasNolte commented 5 years ago

Simply adding the .dll files to the directly containing the .exe file fixes the crash errors.

However upon launching the executable to closes instantly with no warning. I've compiled for both debug and release and may try changing to x64 but fear that it's a deeper problem. I have no idea how I can debug an executable closing with no errors/warning so it seems I've hit a road block for resolving this issue for now.

y2s82 commented 5 years ago

Which version of boost are you using? I left a comment on your PR, but the latest Boost seems to produce unexpected behavior (quits silently). This was observed in the linux build by @rdittrich97 , too. I suspect the minor version change (1.5 to 1.6) is the culprit. Can you check and make sure you are using the older version and see if that makes any difference in making the binary to build and work? That was what @rdittrich97 did to make his build work in linux.