News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

I can't compile Simutrans code (Win7 x64 Visual C++ 2008)

Started by Aglezabad, November 24, 2009, 08:29:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aglezabad

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 file
htm file

wernieman

Do you realy put the bzip files??

Quotefatal error C1083: No se puede abrir el archivo incluir: 'bzlib.h'
I hope you understand my English

Aglezabad

I put bzlib.h in OTTD folder/shared/include and I configure Visual c++ to read this folder. ??? Where i put these files?

VS

That sounds good. I can imagine only one problem: did you add that folder for "include files" ?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Aglezabad

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 pass to you again the log.
1 error,1400 warnings  :-[

link



wernieman

The warning are "normal"

You have a linking problem, he don´t found a libary

See
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)
I hope you understand my English

VS

You must...
1) unpack the file libbz2.lib, copy into ottd/win32/library
2) 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

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

prissi

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.

Aglezabad

#8
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.