Can I use vs2017 for coding

Leginus

New member
Joined
Sep 13, 2017
Messages
4
Hi. Is it possible to use Visual Studio 2017 for actually coding cerberusx? I have tried installing the vsix extension but failed terribly on all accounts.

Thanks
 

Podge

Member
Joined
Nov 10, 2019
Messages
60
Hi. Is it possible to use Visual Studio 2017 for actually coding cerberusx? I have tried installing the vsix extension but failed terribly on all accounts.

Thanks
I got it to work just fine a couple of years ago, so yes it's definitely possible. I tried again just recently and I also failed terribly. There is a thread here somewhere with instructions that I followed last time. I will look again as I want to try using VS again myself. If I have any luck I will let you know what I did.
 

Podge

Member
Joined
Nov 10, 2019
Messages
60
Hi. Is it possible to use Visual Studio 2017 for actually coding cerberusx? I have tried installing the vsix extension but failed terribly on all accounts.

Thanks
I just tried getting it to work again, no luck though. Not getting any errors, it appears to compile but then just says done. I tend to use Jungle and Mollusk.
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
874
The CerberusX vsix extension is meant for Visual Studio Code and not Visual Studio 2017. The log out put from the VSIX installer will say that it uses Visual Studio code extensions. So the answer to using Visual Studio 2017 as a coding editor would for Cerberus be a no. Unless you want to modify the C++ code generated.

To use Visual Studio 2017 to compile Cerberus Code.
Make sure that the path to MSBuild is set in the file Cerberus/bin/config.winnt.txt is set to
Code:
MSBUILD_PATH="${PROGRAMFILES(x86)}\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"

Next start up Visual Studio and open the Visual Studio solution located in Cerberus/targets/glfw3/template/msvc

In the Soulution Explorer, right click CerberusGame and select Properties for the context menu.

In the Cerberus Properties Page Dialog. At the top, change Configuration drop down to All Configurations and Platforms drop down to All Platforms.

Make select General from the left hand panel.
On the right panel in the section with the heading General, make sure that:
Windows SDK Version is pointing to the latest Windows SDK that is installed.
Platform Toolset is set to Visual Studio 2017 (v141)

Click Apply and then OK.

Save the solution: Main Menu->File->Save CerberusGame or use Ctrl+S.

Close Visual Studio.

Make sure that at the top of your main project build file that the line below is added.
Code:
#GLFW_USE_MINGW=False

To actually use Visual Studio to work on pre translated code. Just open up the solution file in the *.buildv2021-xx-xx->glfw32->msvc in Visual Studio 201x.
Also make sure that the required support files are in the builds output directory in side *.buildv2021-xx-xx->glfw32->msvc.
e.g. the data, external, internal and OpenAL32.dll
 
Last edited:

Leginus

New member
Joined
Sep 13, 2017
Messages
4
Thanks for everybody's reply. It answers my question perfectly. :) I have quite a big project in jungle using monkey, so I didn't want to start messing with it to use cerberus at this stage, so using a different IDE (and one i use daily) to mess was the idea, but not to worry I will look at getting it to work in Jungle. Thanks again everyone
 

Podge

Member
Joined
Nov 10, 2019
Messages
60
@Podge could you please share what you did to make it build a file?
Mike, I don't even know if it is making a build file. My output is:

/Applications/Cerberus/bin/transcc_macos -config=Debug -run -target="Desktop_Game_(Glfw3)" "x:\Current Robo Rally Build\Test Area\w\w.cxs"
Done.

I have no idea why MacOS is in there, needless to say it's not working for me. I did have 100% working about a year ago with VSC.
 

Phil7

Administrator
CX Code Contributor
3rd Party Tool Dev
Joined
Jun 26, 2017
Messages
659
/Applications/Cerberus/bin/transcc_macos -config=Debug -run -target="Desktop_Game_(Glfw3)" "x:\Current Robo Rally Build\Test Area\w\w.cxs"
Done.

I have no idea why MacOS is in there, needless to say it's not working for me.
So you are on Windows, right? And you are using the extension for VS-Code by AdamRedwoods!?
To my knowledge he stopped working on it when it was running on his mac machine.
@Holzchopf is working on a new version, but this is only building for html5 target at the moment AFAIK. The extension for VSCode is the thing I am tackling next after I got the new CX-Docs ready for shipping, but it will take some more weeks for sure.
 
Top Bottom