Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Link errors building tier 2 with VS 2012

Author
Message
Zef
11
Years of Service
User Offline
Joined: 27th Feb 2013
Location: Massachusetts
Posted: 8th Feb 2016 19:49
Hi, I get many dozens of this error when I link after compiling a (copied) unmodified VS_2010 template using VS 2012:

1>AGKWindows.lib(Wrapper.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Core.obj

I tried using a couple of the other templates too, similar deal. Are there libraries for VS_2012?
It also didn't link when I used 2010 express.

I figured I had better ask before I spin my wheels any more.

Can I use VS 2012 or do I need to upgrade to 2013 or 2015? (That's more than I care to pay out!)

Thanks
Zef
11
Years of Service
User Offline
Joined: 27th Feb 2013
Location: Massachusetts
Posted: 8th Feb 2016 21:19
Perhaps a better question is: what combinations of visual studio and AppGameKit are supported?
Crazy Programmer
AGK Developer
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 8th Feb 2016 22:05 Edited at: 8th Feb 2016 22:10
In AppGameKit build 2.16 the only templates I see are for 2010, 2013, and 2015. I thought 2008 was supported but maybe not any more in the newer updates.


I had just set up AppGameKit with VS 2015 yesterday.

Here are the steps I took.

Step 1 - Install VS-2015.(BTW its free) https://www.visualstudio.com/
Step 2 - Find Visual Studio Template for Vs-2015 in C: ProgramFiles(86)/TGC/AGK/Tier2/apps (should be found somewhere in there.)
Step 3 - Open AppGameKit Template for VS-2015 (Make sure its the Template.sln)
Step 4 - VS-2015 will prompt you it wont run and install the files it tells you too(Windows SDK 7.1 for win xp) It will ask you if you want it to do all the work and click yes (Install). Wait for VS-2015 to install the Windows 7.1 SDK win Xp.
Step 5 - Download and install the DirectX End User
Step 6 - Make sure your running VS-2015 as ADMIN
Step 7 - Your done!!!!!!


Make sure not to dirty up your template so you can make copies at a later date.
Copy the VS-2015 Template folder and rename it to your project name.
This will give you a template always ready to rock and roll for newer projects.

If you get stuck just let me know ill see what I can help you with.
Download My Games for Android. Made with AGK.
Jellyfish Dive- https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_JellyFishSwim
Brick Destroyer - https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_BrickDestroyer
Ping Bong - https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_Pong_Ping_Bong
Zef
11
Years of Service
User Offline
Joined: 27th Feb 2013
Location: Massachusetts
Posted: 10th Feb 2016 00:50
Hi Crazy,
Thanks for the answer. Right after I posted I started looking around for current info about Visual Studio.
In a chat session with a MS employee on their VS webpage, the employee directed me to the free download too!
I downloaded it, copied the AppGameKit template for vs2015 and it worked - straight out of the box. That was a novel experience.

Anyway, it looks like you have to jump through some hoops to build for android in VS. I found an article from 2011 that described how to configure building for Android from inside VS.
(http://www.gavpugh.com/2011/02/04/vs-android-developing-for-android-in-visual-studio/ - excellent article.)

Now I'm wondering if there is something provided by MS to do it, after all they are claiming cross-platform builds with this.
If there is, it isn't obvious. I'll have to dig deeper, unless someone can direct me to it.
Crazy Programmer
AGK Developer
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 10th Feb 2016 01:45
Glad you got it sorted

Good Luck!
Download My Games for Android. Made with AGK.
Jellyfish Dive- https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_JellyFishSwim
Brick Destroyer - https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_BrickDestroyer
Ping Bong - https://play.google.com/store/apps/details?id=com.CrazyProgrammerProductions.my_Pong_Ping_Bong
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 13th Feb 2016 21:34
The trick to remember is to use the correct AppGameKit libraries. Make sure you are linking to the ones for the version of VS that you are using. The libraries are not really compatible with other versions.
Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-04-19 15:21:16
Your offset time is: 2024-04-19 15:21:16