Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for v140_xp platform toolset/target #4

Open
Malvineous opened this issue Nov 1, 2015 · 4 comments
Open

Request for v140_xp platform toolset/target #4

Malvineous opened this issue Nov 1, 2015 · 4 comments
Assignees

Comments

@Malvineous
Copy link

Along with the current v120 and v140 platform toolsets, would it be possible to add support for v140_xp as well? This is needed if you want your programs to still be able to run under Windows XP.

Currently if you set your platform to v140_xp in Visual Studio 2015 and try to compile a program that uses libpng, you just get a bunch of png-related unresolved external errors.

@madewokherd madewokherd self-assigned this Nov 2, 2015
@madewokherd
Copy link
Member

I'll see what I can do.

You might be able to work around it for now by using v140, setting the "Minimum Required Version" to 5.01 in Configuration Properties > Linker > System (also requires specifying a subsystem on the same page), and defining WINVER and _WIN32_WINNT macros to 0x0501. I don't have a copy of Windows XP around to test this.

@Malvineous
Copy link
Author

Thanks for that, I'll give it a try, but I'm not confident it will work. The toolset name is different for v140_xp, so all the conditions in the NuGet configuration files will fail as they only match v120 and v140. So I guess you'd have to manually specify all the include paths and library files, for each project.

I was hoping it would be a simple matter of adding v140_xp to the list of toolsets and have everything generated automatically when rebuilding the package, but perhaps not?

@madewokherd
Copy link
Member

Looks like the zlib package doesn't support the _xp variations. I will contact the owner of that package through nuget to see if they can add this.

@Malvineous
Copy link
Author

That's great, many thanks for looking into this for me. I hope the zlib maintainer is willing to add _xp support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants