The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Junna on September 06, 2013, 02:08:38 AM

Title: Compiling Simutrans-Experimental with MSVS 2012
Post by: Junna on September 06, 2013, 02:08:38 AM
Trying to compile with 2012 gives me errors with loadsave.obj (bz2 related, I think). I use the libraries that came with the earlier instructions for how to compile, do I need to update?
Title: Re: Compiling Simutrans-Experimental with MSVS 2012
Post by: jamespetts on September 06, 2013, 09:59:14 AM
I have split your post, as it was not directly related to the previous topic.

To deal with the substantive query: you might need to amend the project settings. Are you compiling in x64 or Win32?
Title: Re: Compiling Simutrans-Experimental with MSVS 2012
Post by: Junna on September 06, 2013, 10:41:35 AM
x64.
Title: Re: Compiling Simutrans-Experimental with MSVS 2012
Post by: jamespetts on September 06, 2013, 10:59:18 AM
Ahh, you need a new bzlib.lib file for x64, as well as different pthreads files. Try Win32 first to see whether you can compile with that, and, if you can, you will know that it is only x64-specific issues that are causing the problem.
Title: Re: Compiling Simutrans-Experimental with MSVS 2012
Post by: Junna on September 06, 2013, 11:04:34 AM
Ah, it does work with w32. I reckon I lack the right x64 versions of bzlib (I already have an x64 pthreads, I think).
Title: Re: Compiling Simutrans-Experimental with MSVS 2012
Post by: jamespetts on September 06, 2013, 11:09:08 AM
Yes, you do need an x64 version of bzlib to compile in x64. You might have to compile it yourself, though.