Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Update Compilation.md. #190

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Update Compilation.md. #190

wants to merge 1 commit into from

Conversation

anthnich
Copy link

@anthnich anthnich commented Aug 6, 2017

Following Compilation.md, MPC-HC was unable to compile, with many missing includes, in Windows 10/Visual Studio 2017 until I selected Windows Universal CRT SDK under "Individual Components -> Compilers, build tools, and runtimes". Selecting and ensuring that Windows Universal CRT SDK allowed compilation without issues.

@XhmikosR
Copy link
Contributor

XhmikosR commented Aug 6, 2017

IMHO your installation was wrong from the beginning. I had no issue just doing what the current docs say, that is why I documented it.

@anthnich
Copy link
Author

anthnich commented Aug 7, 2017

Followed the guide to the letter and that was my outcome.

Also, I needed to modify my install and include "Windows XP support for C++" for LAVFILTERS to compile in the solution.

@XhmikosR
Copy link
Contributor

XhmikosR commented Aug 7, 2017

XP is no longer supported.

As for the other change, I definitely didn't need to do it myself.

@anthnich
Copy link
Author

anthnich commented Aug 7, 2017

I know.

So I can look into it more to see what possibly got messed up on my end, are you running Windows 10 and VS2017?

@clsid2
Copy link
Contributor

clsid2 commented Aug 7, 2017

Are you sure? build_lavfilters.bat does not seem to override the toolchain and SDK, so it uses the default ones as specified in the LAV projects files (which currently is XP toolchain).

This need to be added to /property parameter for VS2017:
PlatformToolset=v141;WindowsTargetPlatformVersion=8.1

@XhmikosR
Copy link
Contributor

XhmikosR commented Aug 7, 2017

@anthnich: yes, on Windows 10, VS2017 and only C++ with those 2 extra options.

@clsid2: not sure I follow? It might be possible we have missed to change the toolset and stuff in our LAV fork if you mean that.

@clsid2
Copy link
Contributor

clsid2 commented Aug 7, 2017

Yes, LAV wasn't updated.

@XhmikosR
Copy link
Contributor

XhmikosR commented Aug 7, 2017

Ok that seems a separate issue. /CC @kasper93 for updating our lav fork to use vs2017 with the SDK we pass and target >= Vista.

@XhmikosR
Copy link
Contributor

@kasper93: can we close this?

@kasper93
Copy link
Contributor

Indeed doing dry test it doesn't seem to auto select Universal CRT. Which is weird, but I didn't actually start the installation.

Maybe someone could confirm that we need to select it explicitly? And if anything else is missing.

@XhmikosR
Copy link
Contributor

I honestly didn't need to explicitly select it when I cleaned installed VS2017 a month or so ago.

I did choose C++ environment though.

@kasper93
Copy link
Contributor

@anthnich reported that our current guide dosn't work, maybe we should merge it? It doesn't harm to have one more component listed and if this help people to setup environment easier, why not?

@XhmikosR
Copy link
Contributor

XhmikosR commented Aug 15, 2017 via email

@XhmikosR
Copy link
Contributor

Indeed, it's not selected. I don't remember enabling it manually but that's what I must have done.

@kasper93: should we switch to the default SDK that ships with VS2017 or still use 8.1? The 8.1 SDK is 1.4GB more.

@kasper93
Copy link
Contributor

kasper93 commented Oct 2, 2017

We should use 8.1 as it is the one to be used to Vista+ targets. There are no issues with using Windows 10 SDK, but since we don't really need it we can keep it with 8.1.

stdedos pushed a commit to stdedos/mpc-hc that referenced this pull request Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants