[SOLVED] Build to Glfw problem (now using MinGw :)

Monkey Targets Forums/Desktop/[SOLVED] Build to Glfw problem (now using MinGw :)

Vinians(Posted 2013) [#1]
Hi! I'm trying to build a project to Glfw using VCExpress 2012, I already opened my .sln solution file in VCExpress and updated the project and still getting the error below:


"C:/Dropbox/Programas Registrados/MonkeyPro/MonkeyPro74a/bin/transcc_winnt" -target=Glfw_Game -config=Debug "C:/Dropbox/Criacoes/Jogos/Monkey/Chat/Chat.monkey"
TRANS monkey compiler V1.53
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18052]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 9/5/2013 1:49:56 PM.
Project "C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|Win32".
Project "C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.sln" (1) is building "C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
C:\Dropbox\Criacoes\Jogos\Monkey\Chat\Chat.build\glfw\vc2010\MonkeyGame.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.08
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln', return code=1
Done.


Can some good soul help me ? Thanks!


AdamRedwoods(Posted 2013) [#2]
i couldn't even open vc2010 projects with vc2012...

anyways, that "Microsoft.Cpp.Default.props" file needs to be found, so look for the path and add it to the include directories somewhere.
i found mine under /program files x86/msbuild/microsoft.cpp/v4.0

it may also be only for vc++2010. also, i'm surprised that monkey doesn't have an updated glfw build file for vc2012.


SLotman(Posted 2013) [#3]
If you're using VS2012, you're not using MingW... so I don't understand the topic :P


dawlane(Posted 2013) [#4]
@SLotman: I think he changed it the title as I'm sure it didn't have the MINGW bit.

@Vinian: If you can't get it to build with MINGW, then make sure that MINGW is correctly installed and that the "MINGW's bin/include/lib PATHS ARE SET UP IN YOUR SYSTEM PATH" and add #GLFW_USE_MINGW=true to your projects main source file.

As for VS2012 I'll install it and have a look at it.


dawlane(Posted 2013) [#5]
Well I installed v2012 Express, it didn't like living with vs2010 installed. Converting the v2010 project file wasn't a viable solution unless you do a bit of registry editing. As from what I information I can find off the net that there is a bug which confuses visual studio from find the right tool chain when you have any previous version of VS installed.
Only way I got it to compile in the end was to start with an empty vs2012 project file and set it up the same way as to 2010 version and replacing those files it the target/glfw/template/vs2010 directory.