Posted: 01 Jul 2004 11:34
Do you have mainicon.ico in your root dir? And you should _not_ add it to your project, but ttd.rc should.. and yes, make a makefile, I will compare it with mine!
The place to talk about Transport Tycoon
https://www.tt-forums.net/
the root directory means the directory where are all source files? if it is, yes, i put there mainico.icoTrueLight wrote:Do you have mainicon.ico in your root dir? And you should _not_ add it to your project, but ttd.rc should.. and yes, make a makefile, I will compare it with mine!
to Shadow-XIIIDarkvater wrote:So I ask you again. Have you put all .txt files in the LANG/ directory? Have you compiled each of them using strgen, such that next to all .txt files, there are also .lng files in the LANG/ directory?SHADOW-XIII wrote:yes yes ... I meant that there are /LANG and /DATA directories ... it is the same directory where I installed OTTD
If the openttd executeable is in root, where LANG/ is a subdirectory of, it should work. If openttd executeable is in the debug folder for example, you might need to set the working directory in mingw to the root directory.
Meaning? You had your files in the wrong place, or openttd magically started working? It's nice to hear how people solved their problems.SHADOW-XIII wrote:thxI did it
You should consider writing a How-To, to make it easier for other people to get the same problems solved that you encountered.SHADOW-XIII wrote:thxI did it
Code: Select all
Compiling source file(s)...
StdAfx.c
ai.c
aircraft_cmd.c
..\ottd-svn_files\main\aircraft_cmd.c: In function `CmdBuildAircraft':
..\ottd-svn_files\main\aircraft_cmd.c:248: error: `STR_SV_AIRCRAFT_NAME' undeclared (first use in this function)
..\ottd-svn_files\main\aircraft_cmd.c:248: error: (Each undeclared identifier is reported only once
..\ottd-svn_files\main\aircraft_cmd.c:248: error: for each function it appears in.)
ottd-svn.exe - 3 error(s), 4 warning(s)
Code: Select all
aircraft_cmd.c
..\ottd-svn_files\main\aircraft_cmd.c: In function `CmdBuildAircraft':
..\ottd-svn_files\main\aircraft_cmd.c:248: error: `STR_SV_AIRCRAFT_NAME' undeclared (first use in this function)
now i'll get the latest strgen from nightly build's siteDarkvater wrote:I'll bet you my 2 cents that you haven't run strgen yetCode: Select all
aircraft_cmd.c ..\ottd-svn_files\main\aircraft_cmd.c: In function `CmdBuildAircraft': ..\ottd-svn_files\main\aircraft_cmd.c:248: error: `STR_SV_AIRCRAFT_NAME' undeclared (first use in this function)
. Strgen.exe creates strings.h where all these things are defined.
Code: Select all
In file included from ..\ottd-svn_files\main\engine.c:4:
..\ottd-svn_files\main\table\engines.h:1: error: redefinition of `struct EngineInfo'
..\ottd-svn_files\main\table\engines.h:7: error: redefinition of `EngineInfo'
..\ottd-svn_files\main\engine.h:35: error: `EngineInfo' previously declared here
..\ottd-svn_files\main\table\engines.h:12: error: conflicting types for `_engine_info'
..\ottd-svn_files\main\engine.h:132: error: previous declaration of `_engine_info'
..\ottd-svn_files\main\table\engines.h:271: error: conflicting types for `_rail_vehicle_info'
..\ottd-svn_files\main\engine.h:133: error: previous declaration of `_rail_vehicle_info'
ottd-svn.exe - 7 error(s), 0 warning(s)
FinallyWolf01 wrote:it works it works!!
err.... doh!
where i can get zlib.dll, and when found it, where i have to put it?
ok, but where i can get the file?Darkvater wrote:FinallyWolf01 wrote:it works it works!!
err.... doh!
where i can get zlib.dll, and when found it, where i have to put it?. You usually have to put it in the main development directory. Don't worry, if it's in the wrong place, the compiler will complain, so you will find out soon enough.
*Magic* http://www.tt-forums.net/viewtopic.php?t=6616Wolf01 wrote:ok, but where i can get the file?
Code: Select all
E:\ottd-svn\Debug\saveload.o(.text+0x1823): In function `InitReadZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:822: undefined reference to `inflateInit_@12'
E:\ottd-svn\Debug\saveload.o(.text+0x18dc): In function `ReadZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:843: undefined reference to `inflate@8'
E:\ottd-svn\Debug\saveload.o(.text+0x1924): In function `UninitReadZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:856: undefined reference to `inflateEnd@4'
E:\ottd-svn\Debug\saveload.o(.text+0x197c): In function `InitWriteZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:863: undefined reference to `deflateInit_@16'
E:\ottd-svn\Debug\saveload.o(.text+0x1a1f): In function `WriteZlibLoop':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:880: undefined reference to `deflate@8'
E:\ottd-svn\Debug\saveload.o(.text+0x1b24): In function `UninitWriteZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:900: undefined reference to `deflateEnd@4'
ottd-svn.exe - 6 error(s), 4 warning(s)
Which file was it? Have you read the whole post? Have you put the files from useful.zip or from the attachment?Wolf01 wrote:"i thought that was the end... but it was only the beginning"
yes, i done allDarkvater wrote:Which file was it? Have you read the whole post? Have you put the files from useful.zip or from the attachment?Wolf01 wrote:"i thought that was the end... but it was only the beginning"
Which one? One of them has to work. You can try removing 'WITH_ZLIB' if you don't want zlib support.Wolf01 wrote:yes, i done allDarkvater wrote:Which file was it? Have you read the whole post? Have you put the files from useful.zip or from the attachment?Wolf01 wrote:"i thought that was the end... but it was only the beginning"