carla/Source/CarlaServer
nsubiron 41d96e9402 Fix issue intersect other lane wasn't send on the reward 2017-06-15 17:19:59 +01:00
..
source Fix issue intersect other lane wasn't send on the reward 2017-06-15 17:19:59 +01:00
.gitignore New build system for Windows 2017-03-29 18:05:26 +01:00
CMakeLists.txt Fix compilation issues, choose png compression or no compression at compile time 2017-06-01 11:57:34 +02:00
Makefile Fix compilation issues, choose png compression or no compression at compile time 2017-06-01 11:57:34 +02:00
README.md Fix libpng linking issues, again 2017-04-26 14:09:28 +02:00

README.md

CarlaServer

Library for socket communications.

Building

Linux

Install boost, protobuf, cmake and ninja.

$ sudo apt-get install libpng16-dev libprotobuf-dev protobuf-compiler libboost-all-dev cmake ninja-build

IMPORTANT: Please define environment variable UE4_ROOT pointing to Unreal Engine's installation folder so we can link against the right version of libpng, otherwise the PNG compression won't work with Unreal Engine.

Run make in this folder

$ make

Windows

Note: PNG compression is not implemented on Windows, the server won't send any images.

Compile and install boost.

Compile protobuf. While compiling protobuf, use -Dprotobuf_MSVC_STATIC_RUNTIME=OFF when calling CMake in order to use the static runtime library, otherwise may give errors while trying to link with CarlaServer. Generate both debug and release and install under $PROTOBUF_ROOT/Debug and $PROTOBUF_ROOT/Release respectively.

The Makefile uses cmake to generate project files. Under Windows, it requires the following environment variables set

  • BOOST_ROOT root of the boost folder.
  • PROTOBUF_ROOT contains two folder Debug and Release, each of them with subfolders lib and include.

Before calling make you need to set up the environment calling vcvarsall.bat, usually located at the Visual Studio installation folder. Call it (don't forget the amd64 at the end)

$ "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

Then build either debug or release

$ make debug

or

$ make release

To generate the Visual Studio project

$ make vsproject

The solution gets generated at ./build/visualstudio/CarlaServer.sln. Change the solution configuration to match protobuf (release, most probably). Don't forget to build the project INSTALL, it doesn't build when building the solution.