carla/Docs/how_to_build_on_windows.md

67 lines
2.0 KiB
Markdown
Raw Normal View History

2017-09-07 21:55:41 +08:00
How to build CARLA on Windows
=============================
2017-10-11 23:20:26 +08:00
**Building CARLA on Windows is not yet fully supported. Compilation is tedious
and fails often. We recommend to use the Linux version if possible.**
2017-09-07 21:55:41 +08:00
Install Unreal Engine 4.17 and Visual Studio 2015. (Later versions of Visual
Studio work, but you will need to adapt "Rebuild.bat" to find the right
"vcvarsall.bat").
2017-10-11 23:20:26 +08:00
For running Rebuild.bat some Linux utilities are required (like make, cmake,
rm...), it is recommended to install Cygwin or a similar environment.
2017-09-07 21:55:41 +08:00
Setup CARLA plugin
------------------
A setup script is not yet available. You need to compile yourself boost,
protobuf and googletest, and install them under ./Util/Build as
Util/
Build/
boost-install/
googletest-install/
protobuf-install/
You can also download the precompiled binaries of these libraries
[here](http://datasets.cvc.uab.es/CARLA/CarlaUE4_Dependencies_Win64.zip)
(requires password).
Some Unix utilities need to be installed for the build system to work, including
Make and CMake.
Build and launch CARLAUE4
-------------------------
Once the dependencies are there, you just need to run the rebuild script
(double-click works). This script deletes all intermediate files, rebuilds CARLA
plugin, and launches the editor. You will be prompted a couple of times.
$ Rebuild.bat
If it warns you about plugin CARLA not being compatible, ignore the warning and
do not disable the plugin.
If the rebuild script fails, you will need to
[build CARLA plugin](#Build CARLA Plugin) yourself. Then build CARLAUE4 from
Visual Studio.
Other
-----
#### Build CARLA Plugin
Go to the folder CARLAUE4/Plugins/Carla, and open a terminal there.
Dependencies need to be installed under ./Util/Build.
Configure your environment running "vcvarsall.bat". For Visual Studio 2015, this
script is located at (don't forget the "amd64" part)
2017-09-07 22:04:18 +08:00
$ "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
2017-09-07 21:55:41 +08:00
Then run make
2017-09-07 22:04:18 +08:00
$ make