-
Notifications
You must be signed in to change notification settings - Fork 0
Visual Studio Setup
This page explains how to compile the gameplay samples using Windows 7 SP1 and Visual Studio Express or Professional.
Note: Visual Studio 2013 is now used in the 'next' branch.
Before you get started you will have to download the dependencies separately:
- Open
gameplay.sln -
Build > Build Solution(F7)
- Right click the sample you want to run
Set as StartUp Project-
Debug > Start Debugging(F5)
Unable to start program 'C:\Git\gaming\GamePlay\windows\x86\Release\gameplay.lib'
This error occurs when the gameplay library is set as the StartUp Project.
To fix this, right click on one of the application projects like sample-browser and choose Set as StartUp Project.
If you are running the exe from the Debug or Release directory then your game probably can't find your resource files. Each Visual Studio project has a "Working Directory" property (Project -> Properties -> Debugging), which is usually set to the base directory of your project $(ProjectDir). An easy solution would be to copy your exe to your base directory.
For example: Copy GamePlay\samples\mesh\Debug\sample-mesh.exe to GamePlay\samples\mesh\