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.

AppGameKit Studio Chat / VS 2019 with toolkit v142

Author
Message
Xaron
6
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 23rd Jun 2020 08:53
Dear devs,

are there plans to upgrade to VS 2019 using the latest toolkit v142 and not the quite old one v141_XP?
Same is true for the SDK target which is currently still 7.0. Is there a way to update this to 10.0 as well?

Thanks!
blink0k
Moderator
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Bored of the Rings
15
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 23rd Jun 2020 09:23
I created my own templates for VS2019. works fine.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
Bengismo
2
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 23rd Jun 2020 10:29
Just re-target the project for v142 and 10.0 and compile. Thats what ive done and I use VS2019.
Xaron
6
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 23rd Jun 2020 11:28 Edited at: 23rd Jun 2020 11:30
Ah didn't notice the github repo. Thanks!

Seems I cannot compile it on Windows 10 with VS 2019 even after installing the missing XAudio2 files using NuGet.

And switching the SDK to 10 doesn't work at all because winsock stuff is missing... Hmm.

Quote: "Just re-target the project for v142 and 10.0 and compile. Thats what ive done and I use VS2019."


That simply doesn't work. Could you please share your solution and project file?
Xaron
6
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 24th Jun 2020 09:58
Ok I managed to compile it using the latest tools and Windows 10 SDK.

So here's what I did, when you use Windows 10 with VIsual Studio 2019 on a fresh system:

1) Install the XAudio2 files using NuGet out of VS2019 (Tools->NuGet Package Manager)
2) Install the DirectX SDK (June 2010) for some libs and set the path accordingly.
3) Open xaudio2redist.h and look for this line:

Comment that #if preprocessor directive out so that AUDIO_STREAM_CATEGORY is correctly defined. I still don't know why this #if statement isn't entered as the _WIN32_WINNT target is set to Windows 7...

4) Set the (maybe) missing C++ directories to the Windows 10 SDK path.
5) set the tools to v142 and the SDK from 7.0 to 10.0 and compile
Bengismo
2
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 24th Jun 2020 11:09 Edited at: 24th Jun 2020 11:15
Good to see you finally got it sorted.

You should already have the DirectX SDK (June 2010) installed if you had followed the instructions on github on how to compile the project. It also gives you XAudio2.h, so that would have covered 1&2 anyway. I didnt have to do 3? but that may be due to how you got the xaudio sdk.

If you develop on win 10 then you have to change your source sdk folder from win 7 sdk to whatever you want IE win 8, win 10.

Retargeting the project does 4 and 5 for you on vs2019 but doing it manually isnt too hard.
Xaron
6
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 24th Jun 2020 11:28 Edited at: 24th Jun 2020 12:20
Thanks, I really should read that stuff first. My bad!

Unfortunately I now run into the next issues having linker errors when using my own compiled AppGameKit lib with my C++ project (same toolkit, same SDK9...

edit: Ok so using the official guide it was easy to compile with v142 tools and Windows 10 SDK, so thanks again!

Using that lib I still fail to compile the sample project (that x64 template for visual studio 2017 coming with the github repo) using the same toolkit and Windows 10 SDK and of course linking to the just created agk lib...

Login to post a reply

Server time is: 2020-08-04 04:09:13
Your offset time is: 2020-08-04 04:09:13