Cannot open include files
Moderator: OpenTTD Developers
Cannot open include files
Hi, I've been looking into making my own build of OpenTTD with some minor game mechanics tweaks but I can't seem to make it work.
I've followed the visual studio compile guide from the wiki.
The issue Iam having is about 21 errors of cannot open include file.
Starting with unicode/coll.h
I think the issue could be with steps 2.9 and 2.10 of this guide.
I did add the lines to the VC++ configuration but the errors are exactly the same as if I didn't.
What could I be doing wrong?
I've followed the visual studio compile guide from the wiki.
The issue Iam having is about 21 errors of cannot open include file.
Starting with unicode/coll.h
I think the issue could be with steps 2.9 and 2.10 of this guide.
I did add the lines to the VC++ configuration but the errors are exactly the same as if I didn't.
What could I be doing wrong?
Re: Cannot open include files
Listing all possible things that you can do wrong in all of the zillion steps, such that a compiler will fail to find one of the zillion files won't fit on the Internet.
So instead, please provide details. What files does it claim are missing?
Do you have those files?
Where are they?
What is the set directories that you gave as include search path to the compiler? (and pointing to the guide doesn't help, as your machine configuration is likely different in some minor way, like a missed typo or so, please give these things from your own install).
I am not a Windows user, so I cannot help you even if you would provide those details (other than the obvious "add that directory of the files to the include search path"), but the above details make it possible to point out a more directed search rather than "help, anything can be wrong, please guide me".
So instead, please provide details. What files does it claim are missing?
Do you have those files?
Where are they?
What is the set directories that you gave as include search path to the compiler? (and pointing to the guide doesn't help, as your machine configuration is likely different in some minor way, like a missed typo or so, please give these things from your own install).
I am not a Windows user, so I cannot help you even if you would provide those details (other than the obvious "add that directory of the files to the include search path"), but the above details make it possible to point out a more directed search rather than "help, anything can be wrong, please guide me".
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: Cannot open include files
All of the files mentioned appear to be in the OpenTTD essentials/shared/include folder.
Those would be the directories I set up in VS. Which is where the files are.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Cannot open include files
Might also be, that the (correct) openttd-useful install is either missing or incorrectly installed.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Cannot open include files
A thought - on the screenshot we can see that you set up the "Release - Win32" configuration, but perhaps you are building the "Debug" or the "Win64" configuration? Try building "Release - Win32" or try setting up other configurations.
Note that the library path you entered (...\OpenTTD essentials\win64\library) is for 64-bit builds but you put it into "Win32" configuration. This will fail while linking.
Note that the library path you entered (...\OpenTTD essentials\win64\library) is for 64-bit builds but you put it into "Win32" configuration. This will fail while linking.
don't worry, be happy and checkout my patches
Re: Cannot open include files
Thanks for the tip, I noticed that while taking the screenshot, tried matching with 32 and 64, both result in the same kind of errors.
Re: Cannot open include files
Seems like I managed to compile the thing in Ubuntu. I'll continue there. Thanks everyone.
Re: Cannot open include files
i love topics like this.
"my country is flooded, please send help"
"ok, i solved it by moving to another country"
"my country is flooded, please send help"
"ok, i solved it by moving to another country"
Who is online
Users browsing this forum: No registered users and 1 guest