Trying to compile on VS2015 community, nothing happens.

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Zincfling
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Mar 23, 2016 9:46 pm

Trying to compile on VS2015 community, nothing happens.

Post by Zincfling » Sun Mar 27, 2016 11:34 pm

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.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: Trying to compile on VS2015 community, nothing happens.

Post by EqMule » Mon Mar 28, 2016 1:08 am

Did you run mq2auth.exe as admin first?
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: Trying to compile on VS2015 community, nothing happens.

Post by EqMule » Mon Mar 28, 2016 1:15 am

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.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

Zincfling
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Mar 23, 2016 9:46 pm

Re: Trying to compile on VS2015 community, nothing happens.

Post by Zincfling » Mon Mar 28, 2016 5:28 pm

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 =)

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Trying to compile on VS2015 community, nothing happens.

Post by warlock45 » Mon Mar 28, 2016 6:59 pm

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)

Image

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"

Image

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.

Image

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.
Last edited by warlock45 on Mon Mar 28, 2016 7:06 pm, edited 1 time in total.

Zincfling
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Mar 23, 2016 9:46 pm

Re: Trying to compile on VS2015 community, nothing happens.

Post by Zincfling » Mon Mar 28, 2016 7:04 pm

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!

brainiac
a hill giant
a hill giant
Posts: 154
Joined: Mon May 17, 2004 6:52 pm

Re: Trying to compile on VS2015 community, nothing happens.

Post by brainiac » Wed Mar 30, 2016 1:03 am

Run the VS2015 installer again, and make sure you check the box to install c++ sdk

Zincfling
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Mar 23, 2016 9:46 pm

Re: Trying to compile on VS2015 community, nothing happens.

Post by Zincfling » Thu Mar 31, 2016 12:37 am

Yay, it worked! thanks brainiac! Now i have to go about learn how to make it do stuff! But it's a start.