Then you clone SuperTux repository and open the project with Visual Studio Code.
Keep in mind that you need to use –recurse option or submodule option. Look in SuperTux wiki to clone correctly repoi.
At this part the video skips a lot of explanation.
Julia explains how to set the active key to Visual Studio Tools 2019 – amd64
She also explains how to setup build variant to Cmake: Debug Ready
At this point the build config is done but if you try to follow this sequence you will see this kind of error:
This error means that all third party libraries used by SuperTux are not installed in your system. In Julia’s case, she already installed those dependencies with vcpkg. So at this point is important to mention that we need to install vcpkg!
At this point, setup cmake configuration to point cmake to vcpkg. Open cmake extension settings from Visual Studio Code and setup settings.json. Notice that path is the same that the one displayed by vcpkg integrate install.
vcpkg will install by default 32 bits packages. By using the –triplet parameter you will install 64 bits version of packages instead of 32 bits.
Every time you install a package, click on the build gear button to generate cmake build file. You will get new error mentioning missing library/package. Once you generate successfully the build the tool will try to build SuperTux. Then you will get error that .lib files are missing
Those libs are provided by same project. Build them manually one by one. Select the target:
Then build every single target. lib files will be built.
Finally select SuperTux2 target. This will build exe file.
In my case, when trying to run or debug nothing happened. I launched manually exe file generated in build folder an error message showed that 2 dlls were not found:
squirrel.dll and sqstdlib.dll
Copy 2 dlls into build debug folder.
Finally, I wanted to try vcpkg.json manifest file support. I only found that feature included in latest roadmap:
I downloaded latest version 0.6.2 from git and then I followed my own steps. I got a different error when running cmake configure. Specifically with physfs_lib package
This time was more difficult to troubleshoot this issue. At the end I commented this line (940) from CMakeLists.txt:
This was not elegant but at the end allowed me to run cmake configure.
After that, the BUILD ALL option worked correctly and I did not have to create every submodule one by one.