Page 1 of 1
Trying to compile on VS2015 community, nothing happens.
Posted: Sun Mar 27, 2016 11:34 pm
by Zincfling
So i just downloaded the latest zip, read the wiki and followed the instructions to compile, but when i click build, it gives a buttload of errors and nothing goes into the release folder. Tried reading the post about latest release but its vip only.
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Mon Mar 28, 2016 1:08 am
by EqMule
Did you run mq2auth.exe as admin first?
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Mon Mar 28, 2016 1:15 am
by EqMule
Visual Studio Community 2013 & 2015
Browse to the folder you extracted the source to and open MacroQuest2.sln alternative start visual studio and browse to it.
If you are using VS 2015 you will be asked to upgrade to toolset, you can click OK.
Did you run mq2auth,exe as admin?
If you did, Go to the Build menu and select Build Solution and wait for build to finish
now do that again.
and again.
and one more time for good measure. The reason we repeat this is that we want to be absolutely sure every single dll will be built.
you should see 0 warnings and 0 errors now and it's all built and ready to go.
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Mon Mar 28, 2016 5:28 pm
by Zincfling
Hi thanks for the response! Yes i did run mq2auth as admin, and it generated the hash file inside the mq2main folder and all. i loaded macroquest2.sln as instructed, then vs2015 asks me to upgrade the version and i click yes, so far everything seemed to be working fine, then i go to build and select build solution, it looks like its building but then it finishes with several errors and no .dlls are in the release folder for me to proceed with the install.
I never used visual studio before so i'm having a hard time to generate a log file so you guys know exactly what's going wrong, i'm no programmer either so i guess im meddling with arcane powers beyond my grasp, but dont blame me for trying =)
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Mon Mar 28, 2016 6:59 pm
by warlock45
Disclaimer: I am no expert, I can tell you what works for me though. It is what is in the wiki, but sometimes explaining things slightly differently helps.
I renamed my solution to "CompileMe.sln" just to insure it does not get overwritten as per someone else's suggestion some time back.
Set MQ2main as "Startup Project": After you open the SLN file, you want to check and make sure that MQ2Main is set at the start up project. In the "Solution Explorer" window, right click on MQ2main. In the pop up window, select "Set as StartUp Project" (this should not be getting changed, but lets be sure it is right)
Clean Solution To insure you are not getting any bad leftovers from previous build attempts or corrupt files ect ect... in your "Solution Explorer" window , right click on the Macroquest2 Solution. In the pop up window you will want to select "Clean Solution"
Retarget Solution: You mentioned you already upgraded, but lets be sure. In your "Solution Explorer" window, right click on the Macroquest solution. In the pop up window, right click on "Retarget Solution". If any of the projects are not upgraded, you will get a window showing them, asking if you want to upgrade them. Upgrade/Update them.
Build! In the "Solution Explorer" window, right click on the Macroquest2 solution and select "Build solution"
In your output window, you ought to have an error tab. Once all the building is done, check that one for red errors. You may get a mess of yellow warning/cautions (or at least I do) how ever the plugin gets built. The red errors will give a better idea on whats going on.
Someone else will have to say how to get an error log ( I have not tried to get one) though I assume ye old Copy N Paste or print-screen+Paint as a last resort.
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Mon Mar 28, 2016 7:04 pm
by Zincfling
Hey warlock thanks for the tips, once i get home i'll try these steps and post my results here!
so i tried your tips but still same problems, copy paste of error messages follows:
Code: Select all
Severity Code Description Project File Line Suppression State
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Main C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Main C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Chat C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Chat C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Labels C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ChatWnd C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ChatWnd C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ItemDisplay C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Labels C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Map C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Telnet C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Telnet C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ItemDisplay C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQBugFix C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQBugFix C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Irc C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Irc C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Map C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQIM C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQIM C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Bzsrch C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Bzsrch C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2CustomBinds C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2CustomBinds C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2HUD C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2HUD C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warnings:
Code: Select all
Severity Code Description Project File Line Suppression State
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Main C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Main C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Chat C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Chat C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Labels C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ChatWnd C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ChatWnd C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ItemDisplay C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Labels C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Map C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Telnet C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Telnet C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2ItemDisplay C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQBugFix C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQBugFix C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Irc C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Irc C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Map C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQIM C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2EQIM C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Bzsrch C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2Bzsrch C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2CustomBinds C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2CustomBinds C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Warning MSB8003 Could not find WindowsSdkDir_71A variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2HUD C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140_xp\Toolset.targets 36
Warning MSB8003 Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. MQ2HUD C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366
Absolutely no idea what i'm doing wrong!
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Wed Mar 30, 2016 1:03 am
by brainiac
Run the VS2015 installer again, and make sure you check the box to install c++ sdk
Re: Trying to compile on VS2015 community, nothing happens.
Posted: Thu Mar 31, 2016 12:37 am
by Zincfling
Yay, it worked! thanks brainiac! Now i have to go about learn how to make it do stuff! But it's a start.