-
Notifications
You must be signed in to change notification settings - Fork 2
Setting up Urho3D on Windows with Visual Studio
This is a quickstart and step by step version of https://urho3d.github.io/documentation/HEAD/_building.html.
This was tested with: Windows 10 Visual Studio 14 2015 Community Edition Urho3D from GitHub (2016-03-15) cmake-3.5.0-win32-x86
Visual Studio: https://www.visualstudio.com/
These settings have been picked during installation:
The Git and GitHub features haven't even been used here so you can also not install them.
Urho3D: Either one of the releases from https://sourceforge.net/projects/urho3d/files/Urho3D/ or directly from GitHub https://github.com/urho3d/Urho3D. Here a ZIP was downloaded from GitHub.
Unpack Urho3D somewhere.
CMake: https://cmake.org/download/ (Windows Installer)
You can either use CMake from the command line or the CMake GUI like this:
Start the CMake GUI.
Load the folder where you unpacked Urho3D in into the "Where is the source code:" field.
Select some (possible new) folder as the build folder.
Click configure and the dialog on the right appears. Here the Win64 option had been picked to create a 64-bit Urho3D.
After finishing this dialog CMake should look like this:
Select the options you want build Urho3D with (see http://urho3d.github.io/documentation/1.5/_building.html for details).
You may want to display the advanced options via the "Advanced" checkbox in the top right.
Click Generate and it should look like this:
There should be a Visual Studio project in the folder you selected as the build forder, open that:
You may want to switch the "Solution Configuration" to "Release" before building via the build menu or via F7. After building (and making the output log bigger) it should look like this:
If you build the samples you can check them out in the bin/ subfolder in your build folder:
The terminal in the bottom right with the log output is there because I set the URHO3D_WIN32_CONSOLE option in CMake.
Modify me