Skip to content

Compiling Under Visual Studio 2013 (References and Linking)

Gevil edited this page Sep 21, 2014 · 2 revisions

Cheers I thought I'd add a little info page for anyone trying to compile the project and running into linking errors etc.

Requirements & Dependencies

  1. Visual C++ (2013 or later) This one's obvious enough
  2. The DirectX SDK Still pretty straightforward. However I've managed to run into a linking error because xinput.lib wasn't included in Linker -> Input -> Additional Dependencies
  3. Boost (http://www.boost.org/) Get the binaries aswell and reference them as described below.
  4. MinHook (this fork: https://github.com/RaMMicHaeL/minhook) Build it so you have the lib file to add to your references. See below.
  5. Ruby (just for the script which updates the build numbers/dates -- you can do without that if you want to) Remove it from the pre-build events to be able to compile it without ruby. See the bottom of the page how
  6. NVAPI (https://developer.nvidia.com/nvapi) This one's is missing from the references in the project's dependencies, had to add it manually

Now to fix the missing dependencies and libraries etc here's what to do:

VC++ Directories

Goto the Gedosato Project -> Properties Then Under VC++ Directories -> Include Directories edit the list and set the directories where you have downloaded the dependencies. I usually prefer to have a single directory for a project and have a folder called libs for all the dependencies. Something like this:

Then Under VC++ Directories -> Library Directories edit the list here aswell to have the correct paths to your static libs somewhat like this:

Additional Dependencies:

Goto the Gedosato Project -> Properties Then Under Linker -> Input -> Additional Dependencies edit the list and see if it looks like this: Note the added xinput.lib and nvapi.lib files to the list.

Build Events

Fix Post Build Copy to "pack" Directory

Goto the Gedosato Project -> Properties Then Under Build Events -> Post-Build Event -> Command Line -> copy $(TargetPath) $SolutionDir..\pack

Remove Ruby Dependency (Optional)

Goto the Gedosato Project -> Properties Then Under Build Events -> Pre-Build Event -> Command Line -> Delete "ruby versioning.rb"