Related Topic
O/S: Windows 10
Msys2 (MinGW32 and MinGW64)
Visual Studio 2019
The download page for grfcodec offers:
grfcodec-6.0.6-windows (Windows XP with SP3 / Vista / 7 / 8 / 10 (32bit) (zip archive))
and
grfcodec-6.0.6-sources (Sources (zip archive))
The binary does work on WindowsXP
but
A compilation from source does not. [System error : The procedure entry point GetTickCount64 could not be located in DLL Kernel32.dll.]
Apparently Kernel32.dll does not exist in XP.
Question: How was the binary compiled such that it does support XP?
Compiling grfcodec/nforenum For Windows
Moderator: Graphics Moderators
Compiling grfcodec/nforenum For Windows
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Compiling grfcodec/nforenum For Windows
Did you try an older SDK / Visual Studio version? I can well imagine that MS removed support for building XP-backward compatible binaries as support for that expired. I am pretty sure that OpenTTD does not use the 2019 SDK to build its binaries.
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: Compiling grfcodec/nforenum For Windows
Thanks for the fast reply.planetmaker wrote: 20 Oct 2019 12:15 Did you try an older SDK / Visual Studio version? I can well imagine that MS removed support for building XP-backward compatible binaries as support for that expired. I am pretty sure that OpenTTD does not use the 2019 SDK to build its binaries.

I am able to compile OpenTTD on VS2019 by selecting project solution openttd_vs142.sln.
Unfortunately the grfcodec source does not have a project folder.
There is a Windows7 SDK that does support XP, but will it live alongside my VS2019?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Compiling grfcodec/nforenum For Windows
Last toolset supporting XP is v141_xp
It is not installed by default in VS2019, but you can select it in installer.
It is not installed by default in VS2019, but you can select it in installer.
Re: Compiling grfcodec/nforenum For Windows
Thanks for that. I now have it installed.milek7 wrote: 25 Oct 2019 19:29 Last toolset supporting XP is v141_xp
It is not installed by default in VS2019, but you can select it in installer.

wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Who is online
Users browsing this forum: No registered users and 10 guests