Visual Studio Compiler Errors (Files not found)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
PNDA_
Engineer
Engineer
Posts: 62
Joined: 18 Jul 2018 17:26
Location: Germany

Visual Studio Compiler Errors (Files not found)

Post by PNDA_ »

Hi,
ive just started doing some stuff for Coding for OpenTTD which i will be uploading to GitHub when im finished

So these are the errors i get:

Code: Select all

Error	C1083	Cannot open include file: 'ft2build.h': No such file or directory (compiling source file ..\src\strings.cpp)	openttd	trunk\src\fontdetection.h	19	
Error	C1083	Cannot open include file: 'lzo/lzo1x.h': No such file or directory	openttd	trunk\src\saveload\saveload.cpp	1976	
Error	C1083	Cannot open include file: 'zlib.h': No such file or directory	openttd	trunk\src\network\network_content.cpp	27		
Error	C1083	Cannot open include file: 'png.h': No such file or directory	openttd	trunk\src\screenshot.cpp	224	
Ive found these files in the .zip files in \OpenTTD Essentials\. do i have to unzip these?

Thanks in advance
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: Visual Studio Compiler Errors (Files not found)

Post by Eddi »

you have to unpack those, and then set up a library path in visual studio so it finds them.


check out http://wiki.openttd.org/Compiling for details
User avatar
PNDA_
Engineer
Engineer
Posts: 62
Joined: 18 Jul 2018 17:26
Location: Germany

Re: Visual Studio Compiler Errors (Files not found)

Post by PNDA_ »

Eddi wrote:you have to unpack those, and then set up a library path in visual studio so it finds them.
Even if I put in a library path in visual studio I get those errors. Also why are they not unpacked from the start?
Eddi wrote:check out http://wiki.openttd.org/Compiling for details
I followed that and it nowhere said i have to unpack them and it doesnt say Ii have to put a library path to them.
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: Visual Studio Compiler Errors (Files not found)

Post by Eddi »

are you sure? because for example at http://wiki.openttd.org/Compiling_on_Wi ... _the_files i see the steps 1.4, 2.9 and 2.10
User avatar
PNDA_
Engineer
Engineer
Posts: 62
Joined: 18 Jul 2018 17:26
Location: Germany

Re: Visual Studio Compiler Errors (Files not found)

Post by PNDA_ »

Eddi wrote:are you sure? because for example at http://wiki.openttd.org/Compiling_on_Wi ... _the_files i see the steps 1.4, 2.9 and 2.10
I am very sure, because i have done all of these steps, and step 1.4 doesnt say that the zip files "lpng1618" nor "zlib128" have to be unzipped even though the files are inside those folders.
And in step 2.9 and 2.10 it refers to a 2 different folders and i have succesfully linked them
Karn
Traffic Manager
Traffic Manager
Posts: 128
Joined: 02 Oct 2011 18:56

Re: Visual Studio Compiler Errors (Files not found)

Post by Karn »

Did you download "openttd-useful-6.0-source" or "openttd-useful-6.0-win"? As I understand the tutorial, you need openttd-useful-6.0-win and those zip files you are mentioning are in source.
User avatar
PNDA_
Engineer
Engineer
Posts: 62
Joined: 18 Jul 2018 17:26
Location: Germany

Re: Visual Studio Compiler Errors (Files not found)

Post by PNDA_ »

Karn wrote:Did you download "openttd-useful-6.0-source" or "openttd-useful-6.0-win"? As I understand the tutorial, you need openttd-useful-6.0-win and those zip files you are mentioning are in source.
Yeah, thank you. that was my issue, i must of read it wrong.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 47 guests