NB; (An updated version of this guide can be found on the wiki)
- Visual Studio 2013 or 2015 (Community edition is enough)
- MSYSGit or Git for Windows as it's also called (
cinst git.install
if you have Chocolatey) - Note that WSL does not work for this, as it needs to execute windows executables.
- 7-zip in your path (
cinst 7zip.install
works, if you have Chocolatey) - CMake in your path (
cinst cmake.install
for Chocolatey) - ~10GB of free space per build platform (32/64-bit), for all the build artefacts.
- Time. An hour or two most likely for full release and debug builds.
- Clone the OpenMW repo.
git://github.com/OpenMW/openmw.git
- Open a Git Bash shell in the repo.
- Run the following command:
CI/before_script.msvc.sh -k -p Win64 -v 2015
. (SubstituteWin64
withWin32
if doing a 32-bit build, 2015 can also be substituted with 2013 for VS2013) - Wait for the build environment to be set up.
- ???
- Develop.
@raisthewolf
(SOLVED)
I had the same problem today while using before_script.msvc.sh from revision f8fec992. I had to put quotes around every $DEPS and $DEPS_INSTALL entry.
Edit: This is because I was building the environment in a subfolder of Program Files. I'm dumb. When in doubt, use quotation marks for anything referring to file/folder paths. Or just do it the right way in the first place.
New issue (SOLVED): While installing QT, Bash states the following:
Qt 5.7.0... (Installation might take a while) Unknown option: silent
Additionally, the installer would cancel if an error is detected. Installed manually following the qs script's instructions while ignoring any unspecified errors like error while installing creation tool after the tool is already installed.
(HELP!)
Next Issue: CMake fails to build project. Before_script.MSVC.sh stops after printing "- Configuring..."
Using CMake commands copied from the SH script to troubleshoot lead me to the error The imported project "J:\Microsoft.Cpp.Default.props" was not found.