Nuget is a packet manager for Visual Studio. I found all the dependencies needed had Nuget packages available. Nuget is included with Visual Studio. Right click on the project -> Manage Nuget Packages.
The idea is that you use it to fetch all the project dependencies instead of manually finding and downloading them. It also gives someone else detailed knowledge of which specific version of each dependency your project requires.
Nuget will create a file called packages.config in XML form containing which packages and their versions are required. It will place the fetched packages in a folder called packages. If you add the packages folder to the .gitignore, it will keep all the actual downloaded packages outside of the project. When the project is first opened in Visual Studio, Visual Studio will automatically fetch the packages listed in packages.config for you.
This is the package list I used to compile NAS2D. I'm not sure why it is pulling so many different versions of SDL (2.0.4, 2.0.5, and 2.0.
. Otherwise seems to be working???
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="freetype.redist" version="2.6.2.1" targetFramework="native" />
<package id="glew" version="1.9.0.1" targetFramework="native" />
<package id="glew.redist" version="1.9.0.1" targetFramework="native" />
<package id="physfs.v140" version="2.0.3.1" targetFramework="native" />
<package id="sdl2.new" version="2.0.8" targetFramework="native" />
<package id="sdl2.new.redist" version="2.0.8" targetFramework="native" />
<package id="sdl2.redist" version="2.0.5" targetFramework="native" />
<package id="sdl2.v140.redist" version="2.0.4" targetFramework="native" />
<package id="sdl2_ttf.v140" version="2.0.14" targetFramework="native" />
<package id="sdl2_ttf.v140.redist" version="2.0.14" targetFramework="native" />
<package id="vii.SDL2_image" version="2.0.3" targetFramework="native" />
<package id="vii.SDL2_image.redist" version="2.0.3" targetFramework="native" />
<package id="vii.SDL2_mixer" version="2.0.2" targetFramework="native" />
<package id="vii.SDL2_mixer.redist" version="2.0.2" targetFramework="native" />
</packages>
---
I'm trying to compile OutpostHD now. It appears to requires SDL in addition to NAS2D.
I have the following errors right now:
Error RC2135 file not found: C:\Dev\OPHD\proj\vc14\editor.ico StructureAligner C:\ . . . \OPHD\proj\vc14\StructureAligner\StructureAligner.rc 54
Error C2338 Can't use evil method ui_builder c:\ . . . \ophd\nas2d-core\include\nas2d\delegate.h 364
Error LNK1104 cannot open file 'glew32.lib' OPHD C:\ . . . \OPHD\proj\vc14\LINK 1
I have a glew.lib available from Nuget's download of Glew in a folder called win32. I'm thinking about just trying to rename this file to glew32.lib and seeing if it works.
StuctureAligner is throwing the static_assert about an 'evil method'.
Is there a post somewhere that discusses where to get the graphics?
Thanks. Sorry for peppering with questions.
-Brett