-
Notifications
You must be signed in to change notification settings - Fork 166
Compiling Under Visual Studio 2013 (References and Linking)
Cheers I thought I'd add a little info page for anyone trying to compile the project and running into linking errors etc.
- Visual C++ (2013 or later) This one's obvious enough
- 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
- Boost (http://www.boost.org/) Get the binaries aswell and reference them as described below.
- MinHook (this fork: https://github.com/RaMMicHaeL/minhook) Build it so you have the lib file to add to your references. See below.
- 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
- 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:
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:
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.
Goto the Gedosato Project -> Properties Then Under Build Events -> Post-Build Event -> Command Line -> copy $(TargetPath) $SolutionDir..\pack
Goto the Gedosato Project -> Properties Then Under Build Events -> Pre-Build Event -> Command Line -> Delete "ruby versioning.rb"