ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

Compiling on Visual Studio 2017 RC (apparently requires Win 8.1 SDK)

Open PaulGGriffiths opened this issue 9 years ago • 10 comments

I'm receiving compiler errors on Visual Studio 2017. Updated configuration Windows SDK Version to 10.0.14393.0.

1>------ Build started: Project: CoreManifests, Configuration: Release x64 ------
1>mc : error : Internal error - ErrorCode=3, SubErrorCode=4294967295, Message=
1>Performing Custom Build Tools
1>Done building project "CoreManifests.vcxproj" -- FAILED.
2>------ Build started: Project: Chakra.Jsrt.Core, Configuration: Release x64 ------
3>------ Build started: Project: Chakra.Runtime.Base, Configuration: Release x64 ------
3>RuntimeBasePch.cpp
3>f:\chakracore-master\lib\common\Core/EtwTraceCore.h(68): fatal error C1083: Cannot open include file: 'microsoft-scripting-chakra-instrumentationevents.h': No such file or directory
3>Done building project "Chakra.Runtime.Base.vcxproj" -- FAILED.

PaulGGriffiths avatar Jan 10 '17 10:01 PaulGGriffiths

@PaulGGriffiths where did you install VS2017 from?

digitalinfinity avatar Jan 10 '17 21:01 digitalinfinity

Visual studio.com is where i got it from.

Sent from my Windows Phone


From: Hitesh Kanwathirthamailto:[email protected] Sent: ‎10/‎01/‎2017 21:51 To: Microsoft/ChakraCoremailto:[email protected] Cc: PaulGGriffithsmailto:[email protected]; Mentionmailto:[email protected] Subject: Re: [Microsoft/ChakraCore] Compiling on Visual Studio 2017 (#2348)

@PaulGGriffithshttps://github.com/PaulGGriffiths where did you install VS2017 from?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/ChakraCore/issues/2348#issuecomment-271709303, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX3ufjUjY25WeNuIyf3Mk3bGKqWD7cUZks5rQ_11gaJpZM4LfRfn.

PaulGGriffiths avatar Jan 10 '17 21:01 PaulGGriffiths

Sorry, what version? The RC?

digitalinfinity avatar Jan 10 '17 21:01 digitalinfinity

Yes

Sent from my Windows Phone


From: Hitesh Kanwathirthamailto:[email protected] Sent: ‎10/‎01/‎2017 21:55 To: Microsoft/ChakraCoremailto:[email protected] Cc: PaulGGriffithsmailto:[email protected]; Mentionmailto:[email protected] Subject: Re: [Microsoft/ChakraCore] Compiling on Visual Studio 2017 (#2348)

Sorry, what version? The RC?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/ChakraCore/issues/2348#issuecomment-271710231, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX3ufvEf9x1vyyozqD2x7gXpzY-0G4bYks5rQ_5FgaJpZM4LfRfn.

PaulGGriffiths avatar Jan 10 '17 22:01 PaulGGriffiths

Related to #2096

dilijev avatar Jan 11 '17 08:01 dilijev

I was able to build the chakracore x64 under visual studio 2017 with some fixes around the include paths and other tools. You must install: VC++ 2015 toolset, windows universal crt sdk, windows 10 sdk, windows 8.1 sdk, windows universal C runtime and retarget the solution except for the "platformAgnostic" project.

Once installed the Include directories property must set to: C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\Include\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\atlmfc\include;$(IncludePath)

juancarlosbaezpozos avatar Mar 16 '17 00:03 juancarlosbaezpozos

On a clean VM with VS2017 RTM, I was able to build latest by including "Desktop Development with C++" and selecting the optional "Windows 8.1 SDK and UCRT SDK" package and using the "Developer Command Prompt for VS2017" without needing any path modifications or solution changes.

Oceanswave avatar Mar 22 '17 13:03 Oceanswave

Sounds workable, but I wonder if we could make our solution compatible with VS 2017 without the Windows 8.1 SDK.

dilijev avatar Mar 22 '17 21:03 dilijev

I think this is an issue in VS where it defaults to 8.1 SDK.

tcare avatar May 30 '17 18:05 tcare

#3067 should fix this.

curtisman avatar May 31 '17 00:05 curtisman