I can't compile Simutrans code (Win7 x64 Visual C++ 2008) November 24, 2009, 08:29:08 pm Hello:I have tried to compile the code following the instructions, but it does not generate the feasible one. It appears 62 errors and approximately 1000 warnings, but it does not create the programme. My system is Windows 7 x64 and I use Visual C ++ 2008.I have put bzip files.Regards and thanks. Here is log file:7z filehtm file Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #1 – November 24, 2009, 08:47:56 pm Do you realy put the bzip files??Quotefatal error C1083: No se puede abrir el archivo incluir: 'bzlib.h' Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #2 – November 24, 2009, 08:53:04 pm I put bzlib.h in OTTD folder/shared/include and I configure Visual c++ to read this folder. Where i put these files? Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #3 – November 24, 2009, 09:19:09 pm That sounds good. I can imagine only one problem: did you add that folder for "include files" ? Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #4 – November 24, 2009, 09:34:22 pm Well, with it I have managed to arrange all failures less 1. I continue having 1 mistake, but at least already it is not the bzlib.h.I p**** to you again the log.1 error,1400 warnings link Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #5 – November 24, 2009, 09:44:12 pm The warning are "normal"You have a linking problem, he don´t found a libarySee QuoteLINK : fatal error LNK1181: no se puede abrir el archivo de entrada 'zlibstat.lib'But i don´t know how to configure Visual C ++ 2008 ...but ... could you look if you have the libary (file) on your System?And .. it is a part of the zlib ;o) Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #6 – November 24, 2009, 09:54:02 pm You must...1) unpack the file libbz2.lib, copy into ottd/win32/library2) add that path in same window as I showed, but the picker (I made red mark) must be set to "library files" (this is the problem Werner found)3) menu project -> simutrans properties; configuration properties -> Linker -> Input; then edit the first line where it say many times something.lib and add to this list libbz2.lib Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #7 – November 24, 2009, 09:58:00 pm very often there is not zlibstat.lib but only zlib.lib. You can use this too, but then need also the zlin.dll, which needs to be in the program folder of simutrans then. Quote Selected
Re: I can't compile Simutrans code (Win7 x64 Visual C++ 2008) Reply #8 – November 24, 2009, 10:05:01 pm I had zlibstat.lib in OTTD lib folder, but the programme can't read the file. I try change the name in properties and change the filename but i have the same result. Where i download zlibstat.lib?EDIT:Finally already I have managed to compile the code. The problem was that ithad placed the libraries in the inadequate folder, because of it, it was not working.Thank you for fixing the problem up.Regards. Quote Selected Last Edit: November 25, 2009, 04:28:22 pm by Aglezabad