Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Game on Windows using Visual Studio 2012 #1

Open
marianneR opened this issue Aug 3, 2015 · 7 comments
Open

Building Game on Windows using Visual Studio 2012 #1

marianneR opened this issue Aug 3, 2015 · 7 comments
Assignees
Labels

Comments

@marianneR
Copy link

Many projects in the GAME_ACE.sln give the following error.
Microsoft.CppCommon.targets(611,5): error : Element has an invalid value of "2".

To fix each project, change the properties Linker/System/SubSystem to a valid value for example
Windows (/SUBSYSTEM:WINDOWS)

A better fix for this problem would be to create the solution (ie with MPC) with the correct SubSystem value.

@hilljh82 hilljh82 self-assigned this Aug 3, 2015
@hilljh82 hilljh82 added the bug label Aug 3, 2015
@hilljh82
Copy link

hilljh82 commented Aug 3, 2015

@marianneR, I have tried to reproduce the error on my workspace using a clean build and workspace, but have not had any success. Can you please let me know at least one project that is causing the problem in your workspace so I can know where exactly to start looking?

@jwillemsen
Copy link

@marianneR, what is the exact command you used to generate the solutions using MPC?

@hilljh82
Copy link

hilljh82 commented Aug 3, 2015

@marianneR, in addition to @jwillemsen question and a follow-up to my question, what does the $MPC_ROOT/config/winapp.mpb file contain. It should contain the following contents:

https://github.com/DOCGroup/MPC/blob/master/config/winapp.mpb

This sets the correct subsystem for Windows. The GAME projects require the mfc feature defined in mfc.mpb, which I assume you are setting. Lastly, the mfc.mpb inherits from winapp.mpb.

This is why I am not able to reproduce the error on my workspace.

@jwillemsen
Copy link

@hilljh82 The change for vc12 is from April 2014, CoSMIC 0.8.4 is from 2011, maybe time to make a new 0.8.5 release with all changes?

@marianneR
Copy link
Author

Hi James and Johnny,
Thanks for the prompt response. Here are the answers to your questions.

Can you please let me know at least one project that is causing the problem?
GAME_Dialogs

What is the exact command you used to generate the solutions using MPC?
C:\CUTS\GAME>%ACE_ROOT%\bin\mwc.pl -type vc11 -features boost=1,xerces3=1,mfc=1 GAME_ACE.mwc
MPC_ROOT was set to C:\CUTS\MPC.
Using .../Middleware/ACE/bin/MakeProjectCreator/config/MPC.cfg
Generating 'vc11' output using GAME_ACE.mwc
Generation Time: 26s

What does the $MPC_ROOT/config/winapp.mpb file contain?
The winapp.mpb file has the specific(vc10) but not the vc11, vc12, vc14
This file was downloaded using bczar which uses the following svn repo.
https://svn.dre.vanderbilt.edu/DOC/MPC/tags/ACE+TAO+CIAO-6_1_8/config/winapp.mpb

I added the vc11 specific condition and created the solution again using MPC
%ACE_ROOT%\bin\mwc.pl -type vc11 -features boost=1,xerces3=1,mfc=1 GAME_ACE.mwc
After that the projects are linked with the Windows Subsystem correctly.

Should I download and use MPC from the git repo (https://github.com/DOCGroup/MPC) rather than using the svn repo?

@hilljh82
Copy link

hilljh82 commented Aug 5, 2015

@marianneR, The build script that you are using should be pulling everything for all Github repos. Let me check the build scripts, and get back to you!

@jwillemsen
Copy link

@hilljh82 Looks the script also pulls a fixed tag from the repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants