Compiling grfcodec/nforenum For Windows

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
wallyweb
Tycoon
Tycoon
Posts: 5562
Joined: 27 Nov 2004 15:05
Location: Canada

Compiling grfcodec/nforenum For Windows

Post by wallyweb » 20 Oct 2019 12:14

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?

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9309
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Compiling grfcodec/nforenum For Windows

Post by planetmaker » 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.

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5562
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Compiling grfcodec/nforenum For Windows

Post by wallyweb » 20 Oct 2019 12:46

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.
Thanks for the fast reply. :bow:
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?

milek7
Engineer
Engineer
Posts: 4
Joined: 18 Jul 2016 08:04

Re: Compiling grfcodec/nforenum For Windows

Post by milek7 » 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.

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5562
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Compiling grfcodec/nforenum For Windows

Post by wallyweb » 25 Oct 2019 21:02

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.
Thanks for that. I now have it installed. :bow:

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests