Tuesday 22 November 2016

SFML Starter Project Visual Studio 2015

Since migrating to Visual Studio 2015, projects that previously worked in Visual Studio 2013 may not work out of the box. To aid easier migration some projects have be ported to Visual Studio 2015.

Projects have the following prerequisites:
  1. GitBash (required)
  2. Visual Studio Studio 2015 Community Edition (required - minimum)
  3. Cloned Project (via GitBash or other Git Client)
    https://bitbucket.org/MuddyGames/lab04-gameplay-programming-i
  4. SFML must be installed for project
Steps to running project are as follows:

Step 1 Open GitBash Client and Clone Repository
  • Open GitBash and check present working directory by entering pwd command in GitBash. 
  • Make a new sub-directory projects. This directory can be created by entering mkdir projects command in GitBash
  • Change to that directory by entering cd projects command in GitBash.

Clone repository by entering the following command in GitBash

git clone https://MuddyGames@bitbucket.org/MuddyGames/lab04-gameplay-programming-i.git 



Step 2 Start Visual Studio 2015, Open and Build Project and launch Local Window Debugger

  • Open project using Visual Studio 2015 and navigate to the cloned repository.
  • Enter ls command in GitBash to verify location of cloned project directory.


Examine the following within Solution | Properties | Build Events | Post-build Events



This will display a Build event which copies SFML application required DLL's. More information on Visual Studio 2015 Pre-Build events are located at https://msdn.microsoft.com/en-us/library/42x5kfw4.aspx


xcopy $(SFML_SDK)\bin $(TargetDir) /C /Y


On successfully executing the project edit files as required.

No comments:

Post a Comment