Carla: Building on Windows 0.9.X

Created on 2 Aug 2018  ·  149Comments  ·  Source: carla-simulator/carla

These instructions are outdated, please follow How to build CARLA on Windows.


New automated instructions

Make sure you have:

Unreal Engine 4.19
Visual Studio 2017 (as default version, if not set it)

Windows SDK 10 (should be installed with VS2017)
Windows SDK 8.1 (select it when you install VS2017 or after)

make
cmake
python 3 (x64)

For more information about how to set up the Visual Studio 2017 and all it's components in order to build a project have a look at Unreal Engine Visual Studio setup

Compilation errors (C2440 or C2672)

If you also have installed other version of Visual Studio or Microsoft Compiler and get any error during the build as C2440 or C2672 this is probably because is not using the 2017 compiler, so try first to uninstall the other ones and rebuild again.

If you would like to keep the other version of Visual Studio edit %appdata%\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml and <path_to_unreal_engine_installation>\UE_4.19\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml adding the following lines under Configuration tag:

<VCProjectFileGenerator>
    <Version>VisualStudio2017</Version>
</VCProjectFileGenerator>

<WindowsPlatform>
    <Compiler>VisualStudio2017</Compiler>
</WindowsPlatform>

Unreal Engine 4.19 not detected

No information has been written in the Windows registry, try to reinstall Unreal or take a look at the next post.

Carla instructions example:

1) git clone https://github.com/carla-simulator/carla.git

2) Download https://drive.google.com/uc?id=1FtC00CrDb7Kz5StBAwb6vqOGbzZtpROx&export=download
3) Extract in Unreal/CarlaUE4/Content/Carla

4) make launch

Before posting in this issue:

  • Search for similar comments (just a quick ctrl+F search).
  • Make sure you use the correct Unreal Engine version.

If your questions satisfy the previous points, we will be glad to answer them. :grimacing:

Discord

Consider join our discord channel for a further talk.
We have a Windows specific channel.
discord


Manual build

Follow the instructions from 1 to 4, at this point, double-clicking on Unreal/CarlaUE4/CarlaUE4.uproject should work. A warning about Carla plugin being not compatible appears sometimes, it’s an Unreal’s bug and can be ignored, press no to disable Carla plugin. Then press yes when asked to compile the missing modules.

If that doesn’t work, you can open the project with Visual Studio. Right click the CarlaUE4.uproject and select Generate Visual Studio Project Files. Then open the Visual Studio solution it generates (*.sln). Hopefully this will give some hints on what fails.


PS: If you are coming from an open issue related with the build please make reference to it

backlog build system help wanted on hold

Most helpful comment

Observation - pulled master 0932 GMT 13/03/19. There is a mismatch in libraries RTTI settings. As a work around I added

"%CMAKE_CONFIG_FILE%" echo add_definitions(-DBOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY)

to the Server section of Setup.bat.

All 149 comments

Is it Windows 10 SDK? I just tried on a PC after new installation of VC 2017 and Unreal 4.19 and the Unreal log says:

Reflection code generated for CarlaUE4Editor in 13,6607113 seconds
@progress pop
ERROR: Windows SDK v8.1 must be installed in order to build this target.

Hi @grafandreas

I took a look at the Visual Studio setup for the Unreal Engine, and yes, it seems they ask for SDK 8.1.
You can install it using the Visual Studio Installer, press Modify, under the tab Individual componentes search for SDKs, libraries and framework and check the Windows 8.1 SDK, for last press Modify.

I also failed to compile it. The errors are listed below:

Severity Code Description Project File Line Suppression State
Error C2440 'initializing': cannot convert from 'initializer list' to 'FActorAttribute' CarlaUE4 D:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp 252

Severity Code Description Project File Line Suppression State
Error C2672 'TArray::Emplace': no matching overloaded function found CarlaUE4 D:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp 252

Severity Code Description Project File Line Suppression State
Error UBT ERROR: Failed to produce item: D:\carla\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4Editor\DebugGame\UE4Editor-Carla-Win64-DebugGame.lib CarlaUE4 D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\UnrealBuildTool 1

Severity Code Description Project File Line Suppression State
Error MSB3075 The command "D:\Epic\UE_4.19\EngineBuild\BatchFilesBuild.bat CarlaUE4Editor Win64 DebugGame "D:\carla\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command. CarlaUE4 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 41

It also failed on my machine

1>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Build started: Project: CarlaUE4, Configuration: Development_Editor x64 ------
2>Creating makefile for CarlaUE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>UnrealBuildTool : error : Unable to instantiate module 'Carla': System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\alanh\OneDrive\Desktop\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\lib'.
2> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2> at System.IO.FileSystemEnumerableIterator1.CommonInit() 2> at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
2> at System.IO.Directory.GetFiles(String path, String searchPattern)
2> at Carla.AddBoostLibs(String LibPath) in c:\Users\alanh\OneDrive\Desktop\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Carla.Build.cs:line 82
2> at Carla.AddCarlaServerDependency(ReadOnlyTargetRules Target) in c:\Users\alanh\OneDrive\Desktop\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Carla.Build.cs:line 106
2> (referenced via CarlaUE4.uproject -> Carla.uplugin)
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.19\EngineBuild\BatchFilesBuild.bat" CarlaUE4Editor Win64 Development "C:\Users\alanh\OneDrive\Desktop\carla\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "CarlaUE4.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I tried to run cmd as administrator still not working

@BrianN92 I experienced this too and it went away after installing VC 2017 and everything on a PC without a previous VC installation. Note that, if you have more than one VC installation on your PC, maybe an older version is being used during build (IIRC, the build files ask for VC 2015 as minimum, but that is not sufficient).

If during the compilation you are getting an error like initializing': cannot convert from 'initializer list' to 'FActorAttribute please update Visual Studio to the latest version as the compiler of your current version of VS2017 doesn't support that kind of initialization.

@BrianN92 sorry for the delay, we have been in vacations. Above the line you have hte reason why is failing the compilation.

@overlapjho Have you manage to fix it? It seems like is missing all the dependencies. Sorry for the delay in response, we have been in vacations.

@iFuSiiOnzZ not yet, I've tried several solutions from other issues did not work

@overlapjho take a look if under Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies you have the next folder structure:

includes
    - boost
    - carla
    - compiler
    - rpc

lib
    - carla_server.lib
    - carla_server_debug.lib
    - libboost_date_time-vc141-mt-x64-1_68.lib
    - libboost_system-vc141-mt-x64-1_68.lib
    - rpc.lib

@iFuSiiOnzZ yes I have those, this is my recent error product when i try to build it earlier

1>------ Rebuild All started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Rebuild All started: Project: CarlaUE4, Configuration: Development_Editor x64 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\UE4.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\UE4.vcxproj]
2>Cleaning CarlaUE4Editor Binaries...
2>Creating makefile for CarlaUE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Parsing headers for CarlaUE4Editor
2> Running UnrealHeaderTool "C:\carla\Unreal\CarlaUE4CarlaUE4.uproject" "C:\carla\Unreal\CarlaUE4\IntermediateBuild\Win64\CarlaUE4Editor\Development\CarlaUE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
2>Reflection code generated for CarlaUE4Editor in 53.2410485 seconds
2>Performing 17 actions (2 in parallel)
2>PCH.CarlaUE4.cpp
2>SharedPCH.Engine.cpp
2>[3/17] Resource ModuleVersionResource.rc.inl
2>Module.Carla.cpp
2>C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(252): error C2440: 'initializing': cannot convert from 'initializer list' to 'FActorAttribute'
2>C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(252): note: No constructor could take the source type, or constructor overload resolution was ambiguous
2>C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(252): error C2672: 'TArray::Emplace': no matching overloaded function found
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/predef/other/endian.h(151): warning C4668: 'MSGPACK_ARCH_AMD64' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/array_ref.hpp(262): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/array_ref.hpp(267): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/map.hpp(204): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/map.hpp(210): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector.hpp(98): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector.hpp(103): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_char.hpp(35): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_char.hpp(40): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_char.hpp(48): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_char.hpp(53): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_unsigned_char.hpp(35): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_unsigned_char.hpp(40): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_unsigned_char.hpp(48): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\rpc/msgpack/v1/adaptor/vector_unsigned_char.hpp(53): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\boost/throw_exception.hpp(3): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\boost/throw_exception.hpp(3): warning C4668: '__GNUC_MINOR__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\boost/predef/other/endian.h(151): warning C4668: 'BOOST_ARCH_AMD64' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\shared\ntverp.h(121): warning C4668: 'DBG' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\shared\ntverp.h(128): warning C4668: 'BETA' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\shared\ntverp.h(134): warning C4668: 'OFFICIAL_BUILD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\boost/smart_ptr/shared_ptr.hpp(833): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\boost/asio/detail/impl/win_iocp_socket_service_base.ipp(253): warning C4191: 'type cast': unsafe conversion from 'FARPROC' to 'cancel_io_ex_t'
2> Calling this function through the result pointer may cause your program to fail
2>Module.Carla.gen.cpp
2>[6/17] Resource PCLaunch.rc
2>CarlaUE4GameModeBase.gen.cpp
2>CarlaUE4.init.gen.cpp
2>CarlaMapGenerator.gen.cpp
2>CarlaUE4GameModeBase.cpp
2>CarlaMapGenerator.cpp
2>CarlaUE4.cpp
2>[13/17] Resource PCLaunch.rc
2>[14/17] Link UE4Editor-CarlaUE4.lib
2> Creating library C:\carla\Unreal\CarlaUE4\IntermediateBuild\Win64\UE4Editor\Development\UE4Editor-CarlaUE4.lib and object C:\carla\Unreal\CarlaUE4\IntermediateBuild\Win64\UE4Editor\Development\UE4Editor-CarlaUE4.exp
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\carla\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4Editor\Development\UE4Editor-Carla.lib
2>Total build time: 567.10 seconds (Local executor: 0.00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command "D:\UE_4.19\EngineBuild\BatchFiles\Rebuild.bat CarlaUE4Editor Win64 Development "C:\carla\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited with code -1.
2>Done building project "CarlaUE4.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

@overlapjho As compilation errors I am seeing error C2440 and error C2672, all the others are warnings. ~Make sure you have the latest version of VS2017 (as the current version of VS2017 that you have the compiler doesn't support those features).~

After performing more tests I found that if you have VC++ 2015.3 v14.00 (v140) toolset for desktop, Unreal Engine get the 2015 compiler instead if 2017 and causes the C2440 and C2672 errors.

Can you also specify wich version do you have? On Visual Studio go to Help -> About Microsoft Visual Studio, mine is 15.7.6

Same
image

@overlapjho Do you have any other versión of Visual Studio intalled? If you have it can you uninstall it? It should give a few warning but any error, strange.

PS: Can you join discord to make the conversation more fluent?

If you also have installed other version of Visual Studio or Microsoft Compiler and get any error during the build as C2440 or C2672 this is probably because is not using the 2017 compiler, so try first to uninstall the other ones and rebuild again.

If you would like to keep the other version of Visual Studio edit %appdata%\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml adding the following lines:

<VCProjectFileGenerator>
    <Version>VisualStudio2017</Version>
</VCProjectFileGenerator>

<WindowsPlatform>
    <Compiler>VisualStudio2017</Compiler>
</WindowsPlatform>

Hi,

I've successfully built carla using the instruction above (windows) , also I was able to get hit play or run CarlaUE4.exe stand alone. but when I ran carla\PythonClient\manual_control unreal crashes and I get the following error

image

image

Hi @M-Hammod

We tried to reproduce the error but we could not, can you try to compile and execute Carla from Visual Studio and when it crashes try to provide more information about the crash (call stack of Carla, etc). It seems like the some exception generated from the rpclib it wasn't captured.

Hi @iFuSiiOnzZ,
it seems that there is a difference between the manual_control.py under PythonAPI and PythonClient, this problem went away when I used PythonAPI code, also I have to run setup.py build & install.
Thanks.

Thank you for the feedback @M-Hammod, PythonAPI is for Carla >= 0.9 and PythonClient for Carla < 0.9. In the future when the 0.9.X will be stable, legacy files it will be removed.

@overlapjho @grafandreas @iFuSiiOnzZ
Hi
I have met the same problem.
“E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\CarlaUE4.sln”(Default target) (1) -> “E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj”(Default target) (2) ->
(Build target) ->
E:\CARLA\carlamaster\carlamaster\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(252): error C2440: “initializing”: cannot convert from 'initializer list' to 'FActorAttribute' [E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
E:\CARLA\carlamaster\carlamaster\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(252): error C2672: 'TArray::Emplace': no matching overloaded function found
[E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
UnrealBuildTool : error : UBT ERROR: Failed to produce item: E:\CARLA\carlamaster\carlamaster\Unreal\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4-Carla.lib [E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command“"D:\AirSim Project\ue4_4.19.2\UE_4.19\EngineBuild\BatchFilesBuild.bat" CarlaUE4 Win64 Development "E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild”exited with code 5. Please verify that you have sufficient rights to run this command.
[E :\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]

I ever installed Visual Studio 2015. I have tried many ways to remove it compeletely.
But it does not work.
Help!

Hi @gut-yu

Have you tried to edit %appdata%\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml setting the compiler and the version to VisualStudio2017? On the first post you have what you have to add to the file. Make a clean before before recompile again.
make clean make launch

If is not working edit the Util\BuildTools\BuildCarlaUE4.bat and on line 134 add -2017 after -game -rocket -progress. the line should be like this -game -rocket -progress -2017 now

@iFuSiiOnzZ
I've added the lines.It works.
However,there is still an error as followed :
“E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\CarlaUE4.sln”(Default target) (1) -> “E:\CARLA\carla-master\carlamaster\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj”(Default target) (2) -> (Build target) -> UnrealBuildTool : error : multiple root elements. Line 4, location 2. [E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: command“"D: \AirSim Project\ue4_4.19.2\UE_4.19\Engine\Build\BatchFiles\Build.bat" CarlaUE4 Win64 Development "E:\CARLA\carla -master\carla-master\Unreal\CarlaUE4\CarlaUE4.uproject" -WaitMutex -FromMsBuild”exited with code 1. [E:\CARLA\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
What should I do?

First time that I see that error, you XML file look like this?

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <VCProjectFileGenerator>
        <Version>VisualStudio2017</Version>
    </VCProjectFileGenerator>

    <WindowsPlatform>
        <Compiler>VisualStudio2017</Compiler>
    </WindowsPlatform>
</Configuration>

I just added these lines at the end :
qq 20180912172741
Anything wrong?

I changed the position of these lines as you showed me .
It works !!!
Thanks a lot ! @iFuSiiOnzZ

You are welcome @gut-yu : )

i tried 'make clean' and then 'make launch-editor' but the build fails with this error. how to fix it?
capture

Hi,

Hope you found a solution, if not, try to manually delete delete the boost-install folder from Build (and if you see that the problem still persist also delete boost-src) and try again.

Hi, i get the following error when i try to build CARLA. I have CMake in environment path, and the version is 3.12.0. I think the problem is due to the fact that it is trying to access "Documents/CARLA_Project/carla/Build/rpclib-src" inside "D:/My Documents/CARLA_Project/carla/Build/rpclib-src/build/" which was never created. Im curious as to why is it even trying to do this. The additional path looks like a clipped-off version of my parent path. Is it maybe due to the space in "My Documents" name.

Here is the console message:

D:\My Documents\CARLA_Project\carla>make launch
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 4
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "D:/My Documents/CARLA_Project/carla/Build/"
-[Setup]: Installing rpclib...
-[install_rpclib]: [Batch params]: --build-dir "D:/My Documents/CARLA_Project/carla/Build/"
-[install_rpclib]: Not cloning rpclib because already exists a folder called "rpclib-src".
-[install_rpclib]: Generating build...
CMake Error: The source directory "D:/My Documents/CARLA_Project/carla/Build/rpclib-src/build/Documents/CARLA_Project/carla/Build/rpclib-src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

-[install_rpclib]: [CMAKE ERROR] An error ocurred while executing the cmake.
-[install_rpclib]: [CMAKE ERROR] Possible causes:
-[install_rpclib]:                - Make sure "CMake" is installed.
-[install_rpclib]:                - Make sure it is available on your Windows "path".
-[install_rpclib]:                - CMake 3.9.0 or higher is required.
-[install_rpclib]: Exiting with error...

-[Setup]:
Ok, and error ocurred, don't panic!
We have different platforms where you can find some help :)

Ok so i solved the above problem by moving my contents to a folder with folder-name having no spaces.
But now it says it cant find "CMakeLists.txt"

I copied CMakeLists.txt from parent folder to the "rpclib_src" folder and it started compiling however it stopped with following message:

D:\Self_driving_Car_setup\CARLA_Project\carla>make launch
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 4
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "D:/Self_driving_Car_setup/CARLA_Project/carla/Build/"
-[Setup]: Installing rpclib...
-[install_rpclib]: [Batch params]: --build-dir "D:/Self_driving_Car_setup/CARLA_Project/carla/Build/"
-[install_rpclib]: Not cloning rpclib because already exists a folder called "rpclib-src".
-[install_rpclib]: Generating build...
-- The C compiler identification is MSVC 19.15.26730.0
-- The CXX compiler identification is MSVC 19.15.26730.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:4 (include):
include could not find load file:

Build/CMakeLists.txt.in

CMake Error at CMakeLists.txt:6 (add_subdirectory):
add_subdirectory given source "LibCarla/cmake" which is not an existing
directory.

-- Configuring incomplete, errors occurred!

Hi @adarsh9975

Delete the Build folder and try again. That file should be created automatically by setup.bat (UtilBuildTools).

PS: I will try to take a look at the spaces problem when I will have some time

Thank you @iFuSiiOnzZ I just completed my build process. The build completed successfully how ever when i launch the CarlaUE4.exe i get this:

image

obviously build was not proper. Build did complete successfully but i had a warning that some parts of unreal engine had to be re-built (which completed automatically successfully),also there were a lot of warnings during the unreal-rebuild. What should i do now ? I am using Unreal engine 4.19.2

I opened the project in unreal editor. Looks like the assets can't be located. However I have downloaded the content and extracted it to " Unreal\CarlaUE4\Content\Carla ". I am using 0.8.4 content for CARLA.

This is the content folder:
image

Any help will be greatly appreciated.

You need the content for the 0.9.X as master branch is on 0.9.X. In case you need the 0.8.X you will have to checkout it.

Seems like the assets in content folder are arranged differently for 0.8.x and 0.9.x (for example compare Blueprints/Game for both versions). I downloaded the content for 0.9.x and built the code again. Now it runs the environment. Thanks for your help @iFuSiiOnzZ

capture

what are these errors for? and how to fix them?

@mshaheerm that is because you didn't download Carla contents, take a look at Download Carla contents.

@iFuSiiOnzZ thanks alot. fixed it.

@iFuSiiOnzZ the problem with the boost-install still exists. in the Build folder there isnt any boost-install folder. it is being created till the time error occurs and then it is removed automatically. only boost-src which i removed and tried again but the problem was still there.

@mshaheerm can you provide more information of what happened during the build, any log or on screen information.

Branch 0.9-win32 is missing.
In Sep, I successed builing Carla following above steps, while recently I failed to repeat the steps, since I could not checktou the 0.9-win32 branch. What should I do now?

Hi @SumerHoT

Sorry, I forgot to update the main post. Currently the windows branch is on master. So you shouldn't have any problem building it it from there. Take a look at How to build on Windows, there you have the full information of how to do it.

@iFuSiiOnzZ Thanks! So I could not blame on this and keep fighting with the linking issues now... 0_0

Hi @iFuSiiOnzZ, While make launch, the command line report:
D:\Carla\carla\LibCarla\cmake..\source\carla/sensor/CompileTimeTypeMap.h(97): error C2975: “Size”:“carla::sensor::detail::CompileTimeTypeMapImpl”的模板参数无效,应为编译时常量表达式 (编译源文件 D:\Carla\carla\LibCarla\source\carla\sensor\Deserializer.cpp) [D:\Carla\carlaBuild\libcarla-visualstudio\LibCarla\cmake\server\carla_server.vcxproj]
The Chinese means "the template parameters are invalid, should be constexpr(compling the source file)"

That happens in 2 files and result in total 4 errors:
D:\Carla\carla\LibCarla\cmake..\source\carla/sensor/CompileTimeTypeMap.h(97)
D:\Carla\carla\LibCarla\cmake..\source\carla/sensor/CompileTimeTypeMap.h(100)

Could you help to figure out what should I do with them?

@SumerHoT
Compilation problems between clang and visual cl. Change size() with sizeof...(Items), we will try to fix it in the future.

@iFuSiiOnzZ Thanks a lot! That works!
But while compling CarlaUE4 in Unreal Engine, it shows CarlaUE4 could not be complied. Try rebuiding from source manually.
The Unreal Engine is 4.19.2, and the default complier setting is VS2017 in xml.
Any idea about this?

Of course is a compilation problem, open the file and change what i told you in the previous post.

@iFuSiiOnzZ While compling CarleUE4 Unreal Project, two main errors occur:

1: LogCompile : error : Circular dependency detected for filename D:\Carla\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Settings\QualityLevel.h!
2: D:\Carla\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\carla/geom/BoundingBox.h(27): error C2512: “carla::geom::Location” No suitable default constructor available.

In file: D:\Carla\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\carla\geomLocation.h
I add: Location() {};
But I couldn't find out the way to solve Error 1#. Any suggestion?

Hi @SumerHoT

Those 2 errors are quite easy to fix. For the circular dependency you can leave it as it is, it builds any way or change the name of the file to QualityLevelUE.h for instances and all the includes where it appears.

For the C2512 error you will have to modify the Vector3D.h and Location.h, in Vector3D you will have to add the copy constructor and for Location add the constructors:

    Vector3D(const Vector3D &v3d)
      : x(v3d.x),
        y(v3d.y),
        z(v3d.z) {}
    Location() = default;

    Location(const Location &location)
      : Vector3D(location) {}

    Location(float ix, float iy, float iz)
      : Vector3D(ix, iy, iz) {}

Once that you have done that, it will compile the Editor but the game, as it seems that some Unreal functions are overwritten. We are currently working to fix it.

@iFuSiiOnzZ
Thanks, I modified above and then build unreal project manually and works.
Do I still need to make PythonAPI now?
Since there still are errors while make PythonAPI:
1#. Traceback (most recent call last):
File "setup.py", line 101, in
ext_modules=get_libcarla_extensions(),
File "setup.py", line 51, in get_libcarla_extensions
sources += [x for x in walk('dependencies/include/carla', '*.cpp')]
UnboundLocalError: local variable 'walk' referenced before assignment
I move the def walk to above, remake PythonAPI and then new errors occur:

2#. source/libcarla/libcarla.cpp(7): fatal error C1083: Could not open include file: “carla/Memory.h”: No such file or directory

That is a bit more tricky, for now no one started to port the PythonAPI to Windows. It has some dependencies for png, jpeg and tiff support. So if you want to test the 0.9.X please use linux for now as we are currently busy with the 0.9.1 release. Sorry!

@iFuSiiOnzZ So could you reopen the 0.9-win32 branch for these days?

I am sorry, but unfortunately the branch is deleted. You could try to checkout some old commit and see if it builds, sadly I can not tell you with which one to start as I don't know in what point the Windows build broken.

@iFuSiiOnzZ Nevermind and thanks any way, I could try rebuilding from my archived code :) Hope you guys all good~

3>UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.15.26726\bin\HostX64\x64\cl.exe @"C:\Users\carlo\Desktop\carla-master\carla-maste
r\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4\Development\Carla\Module.Carla.gen.3_of_3.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
]
3>UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.15.26726\bin\HostX64\x64\cl.exe @"C:\Users\carlo\Desktop\carla-master\carla-maste
r\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4\Development\Carla\Module.Carla.gen.1_of_3.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
]
3>UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.15.26726\bin\HostX64\x64\cl.exe @"C:\Users\carlo\Desktop\carla-master\carla-maste
r\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4\Development\Carla\Module.Carla.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
3>UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.15.26726\bin\HostX64\x64\cl.exe @"C:\Users\carlo\Desktop\carla-master\carla-maste
r\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4\Development\Carla\Module.Carla.gen.2_of_3.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
]
3>UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at UnrealBuildTool.ActionThread.ThreadFunc()
3>UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at UnrealBuildTool.ActionThread.ThreadFunc()
3>UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at UnrealBuildTool.ActionThread.ThreadFunc()
3>UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at UnrealBuildTool.ActionThread.ThreadFunc()
3>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4-Carla.lib [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\Car
laUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
Total build time: 6.74 seconds (Local executor: 0.00 seconds)
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.19\EngineBuild\BatchFilesBuild.bat" CarlaUE4
Win64 Development "C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command. [C:\Users\car
lo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
3>Done Building Project "C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj" (default targets) -- FAILED.
1>Done Building Project "C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\CarlaUE4.sln" (default targets) -- FAILED.

Build FAILED.

   "C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\CarlaUE4.sln" (default target) (1) ->
   "C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj" (default target) (3) ->
   (Build target) ->
     UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe  @"C:\Users\carlo\Desktop\carla-master\carla-mas
   ter\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4\Development\Carla\Module.Carla.gen.3_of_3.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxpr
   oj]
     UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe  @"C:\Users\carlo\Desktop\carla-master\carla-mas
   ter\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4\Development\Carla\Module.Carla.gen.1_of_3.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxpr
   oj]
     UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe  @"C:\Users\carlo\Desktop\carla-master\carla-mas
   ter\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4\Development\Carla\Module.Carla.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     UnrealBuildTool : error : Failed to start local process for action: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe  @"C:\Users\carlo\Desktop\carla-master\carla-mas
   ter\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4\Development\Carla\Module.Carla.gen.2_of_3.cpp.obj.response" [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxpr
   oj]
     UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
   ]
     UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
   ]
     UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
   ]
     UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
   ]
     UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4-Carla.lib [C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\C
   arlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.19\Engine\Build\BatchFiles\Build.bat" CarlaU
   E4 Win64 Development "C:\Users\carlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command. [C:\Users\c
   arlo\Desktop\carla-master\carla-master\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
“D:\carla\Unreal\CarlaUE4\CarlaUE4.sln”(默认目标) (1) ->
       “D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj”(默认目标) (2) ->
       (Build 目标) ->
         d:\program files (x86)\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): error C2039: “_
       InterlockedCompareExchange”: 不是“FWindowsPlatformAtomics”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\
       CarlaUE4.vcxproj]
         d:\program files (x86)\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): error C2665: “_
       InterlockedCompareExchange”: 4 个重载中没有一个可以转换所有参数类型 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.v
       cxproj]
         d:\program files (x86)\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(78): error C2039: “_
       _faststorefence”: 不是“FWindowsPlatformMisc”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxpr
       oj]
         d:\program files (x86)\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): error C2039:
        “_InterlockedIncrement”: 不是“FWindowsPlatformAtomics”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\Car
       laUE4.vcxproj]
         d:\program files (x86)\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): error C2665:
        “_InterlockedIncrement”: 4 个重载中没有一个可以转换所有参数类型 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxp
       roj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1689): error C20
       39: “GetObjectW”: 不是“TScriptInterface<IBlendableInterface>”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFil
       es\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1709): error C20
       39: “GetObjectW”: 不是“TScriptInterface<IBlendableInterface>”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFil
       es\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(3
       7): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(4
       5): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(1
       28): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
       ]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(1
       37): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
       ]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1689): error C20
       39: “GetObjectW”: 不是“TScriptInterface<IBlendableInterface>”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFil
       es\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1709): error C20
       39: “GetObjectW”: 不是“TScriptInterface<IBlendableInterface>”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFil
       es\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(3
       7): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(4
       5): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(1
       28): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
       ]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(1
       37): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
       ]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(103): erro
       r C2039: “__faststorefence”: 不是“FWindowsPlatformMisc”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\Car
       laUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(154): erro
       r C2039: “__faststorefence”: 不是“FWindowsPlatformMisc”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\Car
       laUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(159): erro
       r C2039: “__faststorefence”: 不是“FWindowsPlatformMisc”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\Car
       laUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(165): erro
       r C2039: “__faststorefence”: 不是“FWindowsPlatformMisc”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\Car
       laUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(3
       7): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(4
       5): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(1
       28): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
       ]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(1
       37): error C2660: “GetObjectW”: 函数不接受 0 个参数 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj
       ]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\SlateCore\Public\Rendering\DrawElements.h(723)
       : error C2039: “_InterlockedIncrement”: 不是“FWindowsPlatformAtomics”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\Pr
       ojectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\SlateCore\Public\Rendering\DrawElements.h(723)
       : error C2665: “_InterlockedIncrement”: 4 个重载中没有一个可以转换所有参数类型 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles
       \CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\SlateCore\Public\Rendering\DrawElements.h(724)
       : error C2039: “_InterlockedDecrement”: 不是“FWindowsPlatformAtomics”的成员 [D:\carla\Unreal\CarlaUE4\Intermediate\Pr
       ojectFiles\CarlaUE4.vcxproj]
         D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Source\Runtime\SlateCore\Public\Rendering\DrawElements.h(724)
       : error C2665: “_InterlockedDecrement”: 4 个重载中没有一个可以转换所有参数类型 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles
       \CarlaUE4.vcxproj]
         UnrealBuildTool : error : UBT ERROR: Failed to produce item: D:\carla\Unreal\CarlaUE4\Plugins\Carla\Binaries\W
       in64\UE4-Carla.lib [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.T
       argets(44,5): error MSB3075: 命令“"D:\Program Files (x86)\Epic Games\UE_4.19\Engine\Build\BatchFiles\Build.bat" Ca
       rlaUE4 Win64 Development "D:\carla\Unreal\CarlaUE4\CarlaUE4.uproject" -WaitMutex -FromMsBuild”已退出,代码为 5。 请验证您是否拥有
       运行此命令的足够权限。 [D:\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]

Hi all, there is a branch called fix_win32_comilation, the windows version should build now.
@nicksunyang @MaxTD

Hi,
i get the following error when I try to run any of the python scritpts (with Carla v0.9.1):
C:\Carla\carla_0.9\carla_fix_win32_Try_2\carla-fix_win32_compilation>python .\PythonAPI\tutorial.py
Traceback (most recent call last):
File ".\PythonAPI\tutorial.py", line 21, in
import carla
ImportError: No module named 'carla'

I rebuild the PythinAPI and LibCarla hoping it would help, but it did't.
Thanks for your help!

For building PythonAPI take a look at the issue #976, once you have built it go to PythonAPI folder and run any of the scripts.

For building PythonAPI take a look at the issue #976, once you have built it go to PythonAPI folder and run any of the scripts.

Thanks for the reply. I did everything as told in #976, but the problem sadly remains. Any idea what I'm doing wrong?
Have a great weekend !

Error Code:

PS C:\Carla\carla_0.9\carla_fix_win32_Try_2\carla-fix_win32_compilation> python .\PythonAPI\manual_control.py
Traceback (most recent call last):
File ".\PythonAPI\manual_control.py", line 63, in
import carla
ImportError: No module named 'carla'

Hi @dieteekanne2.
Did you compiled the python API?

make PythonAPI

@iFuSiiOnzZ
I'm still getting the same errors like @nicksunyang @MaxTD while following the "How to build on Windows" to build 0.9.1. . Is there a newer version for download? Or how can I fix this issue?

I have also the same issue when I'm trying to build 0.9.0.

Hi @dieteekanne2.
Did you compiled the python API?

make PythonAPI

Hi @marcgpuig,
yes I did, still nothing changed

Hey @dieteekanne2 @Atlunch
Can you try with the latest changes in master?

Hey @dieteekanne2 @Atlunch
Can you try with the latest changes in master?

I'm just doing it. Now I get the following error after 'make launch':
-[BuildCarlaUE4]: [Batch params]: --build --ue-version 4.19
-[BuildCarlaUE4]: Builing and starting Carla...
Microsoft (R)-Build-Engine, Version 15.8.169+g1ccb72aefa für .NET Framework
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Der Buildvorgang wurde am 29.11.2018 14:43:07 gestartet.
1>Projekt "C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\CarlaUE4.sln" auf Knoten "1" (Standardziel
e).
1>ValidateSolutionConfiguration:
Die Projektmappenkonfiguration "Development|Win64" wird erstellt.
0>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3)
: warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Micro
soft.Makefile.props" kann nicht erneut importiert werden. Es wurde bereits bei "C:\Program Files (x86)\MSBuild\M
icrosoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)" importiert. Es handelt sich aller Wahrscheinlichkeit nach um
einen Buildautorisierungsfehler. Der darauf folgende Import wird ignoriert. [C:\Carla\carla_0.9\Carla_v_0_9_1_Tr
y_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
1>Das Projekt "C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\CarlaUE4.sln" (1) erstellt "C:\Carla\c
arla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj" (2) auf Knoten "1
" (Standardziele).
2>Build:
"C:\Program Files\Epic Games\UE_4.19\EngineBuild\BatchFilesBuild.bat" CarlaUE4 Win64 Development "C:\Carla\c
arla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild
Performing full C++ include scan (building a new target)
Performing 5 actions (4 in parallel)
Module.Carla.gen.1_of_3.cpp
Module.Carla.gen.2_of_3.cpp
Module.Carla.cpp
2>c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): error C2039: "_Interloc
kedCompareExchange": Ist kein Element von "FWindowsPlatformAtomics" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carl
a\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): no
te: Siehe Deklaration von "FWindowsPlatformAtomics"
2>c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): error C2665: "_Interloc
kedCompareExchange": Durch keine der 4 Überladungen konnten alle Argumenttypen konvertiert werden. [C:\Carla\car
la_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(9010): note: kann "unsigned __int64 _InterlockedC
ompareExchange(volatile unsigned __int64 *,unsigned __int64,unsigned __int64)" sein
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8997): note: oder "unsigned long _InterlockedComp
areExchange(volatile unsigned long *,unsigned long,unsigned long)"
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8986): note: oder "unsigned int _InterlockedCompa
reExchange(volatile unsigned int *,unsigned int,unsigned int)"
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(179): note: oder "long _InterlockedCom
pareExchange(volatile long *,long,long)"
c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): note: bei Anpassung d
er Argumentliste "(int32 *, int, int)"
2>c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(78): error C2039: "__faststo
refence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\Carla
UE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(41): note:
Siehe Deklaration von "FWindowsPlatformMisc"
2>c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): error C2039: "_Inter
lockedIncrement": Ist kein Element von "FWindowsPlatformAtomics" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\U
nreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformAtomics.h(14): no
te: Siehe Deklaration von "FWindowsPlatformAtomics"
2>c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): error C2665: "_Inter
lockedIncrement": Durch keine der 4 Überladungen konnten alle Argumenttypen konvertiert werden. [C:\Carla\carla_
0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8844): note: kann "unsigned __int64 _InterlockedI
ncrement(volatile unsigned __int64 *)" sein
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8833): note: oder "unsigned long _InterlockedIncr
ement(volatile unsigned long *)"
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8824): note: oder "unsigned int _InterlockedIncre
ment(volatile unsigned int *)"
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(259): note: oder "long _InterlockedInc
rement(volatile long *)"
c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): note: bei Anpassun
g der Argumentliste "(volatile int32 *)"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1689): error C2039: "Get
ObjectW": Ist kein Element von "TScriptInterface" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\c
arla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1686): note: Siehe Dek
laration von "TScriptInterface"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1709): error C2039: "Get
ObjectW": Ist kein Element von "TScriptInterface" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\c
arla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1686): note: Siehe Dek
laration von "TScriptInterface"
2>C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunc
tionLibrary.cpp(332): error C2440: "Initialisierung": "initializer list" kann nicht in "FActorAttribute" konvert
iert werden [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcx
proj]
C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFu
nctionLibrary.cpp(332): note: Quelltyp konnte von keinem Konstruktor angenommen werden, oder die Überladungsau
flösung des Konstruktors ist mehrdeutig
2>C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunc
tionLibrary.cpp(332): error C2672: "TArray::Emplace": keine übereinstimmende
überladene Funktion gefunden [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectF
iles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(37): erro
r C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unrea
l\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(45): erro
r C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unrea
l\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(128): err
or C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
al\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(137): err
or C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
al\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1689): error C2039: "Get
ObjectW": Ist kein Element von "TScriptInterface" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\c
arla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1686): note: Siehe Dek
laration von "TScriptInterface"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1709): error C2039: "Get
ObjectW": Ist kein Element von "TScriptInterface" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\c
arla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1686): note: Siehe Dek
laration von "TScriptInterface"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(37): erro
r C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unrea
l\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(45): erro
r C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unrea
l\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(128): err
or C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
al\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(137): err
or C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
al\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(103): error C2039:
"__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\U
nreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(41): note:
Siehe Deklaration von "FWindowsPlatformMisc"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(154): error C2039:
"__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\U
nreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(41): note:
Siehe Deklaration von "FWindowsPlatformMisc"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(159): error C2039:
"__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\U
nreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(41): note:
Siehe Deklaration von "FWindowsPlatformMisc"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(165): error C2039:
"__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\U
nreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Windows/WindowsPlatformMisc.h(41): note:
Siehe Deklaration von "FWindowsPlatformMisc"
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(37): erro
r C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unrea
l\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(45): erro
r C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unrea
l\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(128): err
or C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
al\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(137): err
or C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
al\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSensor
.cpp(17): error C2664: "void AShaderBasedSensor::AddShader(const FSensorShader &)" : Konvertierung von Argument
1 von "initializer list" in "const FSensorShader &" nicht möglich [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\
Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSens
or.cpp(17): note: Ursache: Konvertierung von "initializer list" in "const FSensorShader" nicht möglich
C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSens
or.cpp(17): note: Quelltyp konnte von keinem Konstruktor angenommen werden, oder die Überladungsauflösung des
Konstruktors ist mehrdeutig
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal
\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4-Carla.lib [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaU
E4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
Total build time: 19,33 seconds (Local executor: 0,00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: Der Befe
hl ""C:\Program Files\Epic Games\UE_4.19\EngineBuild\BatchFilesBuild.bat" CarlaUE4 Win64 Development "C:\Carla
\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild" wurde mit dem C
ode 5 beendet. Stellen Sie sicher, dass Sie zur Ausführung dieses Befehls berechtigt sind. [C:\Carla\carla_0.9\C
arla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>Die Erstellung des Projekts "C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFi
les\CarlaUE4.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.
1>Die Erstellung des Projekts "C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\CarlaUE4.sln" ist abge
schlossen (Standardziele) -- FEHLER.

Fehler beim Buildvorgang.

     C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,
   3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Mic
   rosoft.Makefile.props" kann nicht erneut importiert werden. Es wurde bereits bei "C:\Program Files (x86)\MSBuild
   \Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)" importiert. Es handelt sich aller Wahrscheinlichkeit nach u
   m einen Buildautorisierungsfehler. Der darauf folgende Import wird ignoriert. [C:\Carla\carla_0.9\Carla_v_0_9_1_
   Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]


   "C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\CarlaUE4.sln" (Standardziel) (1) ->
   "C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj" (Stand
   ardziel) (2) ->
   (Build Ziel) ->
     c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): error C2039: "_Interl
   ockedCompareExchange": Ist kein Element von "FWindowsPlatformAtomics" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\ca
   rla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(59): error C2665: "_Interl
   ockedCompareExchange": Durch keine der 4 Überladungen konnten alle Argumenttypen konvertiert werden. [C:\Carla\c
   arla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHIResources.h(78): error C2039: "__fasts
   torefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\Car
   laUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): error C2039: "_Int
   erlockedIncrement": Ist kein Element von "FWindowsPlatformAtomics" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla
   \Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     c:\program files\epic games\ue_4.19\engine\source\runtime\rhi\public\RHICommandList.h(282): error C2665: "_Int
   erlockedIncrement": Durch keine der 4 Überladungen konnten alle Argumenttypen konvertiert werden. [C:\Carla\carl
   a_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1689): error C2039: "G
   etObjectW": Ist kein Element von "TScriptInterface<IBlendableInterface>" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3
   \carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1709): error C2039: "G
   etObjectW": Ist kein Element von "TScriptInterface<IBlendableInterface>" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3
   \carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFu
   nctionLibrary.cpp(332): error C2440: "Initialisierung": "initializer list" kann nicht in "FActorAttribute" konve
   rtiert werden [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.v
   cxproj]
     C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFu
   nctionLibrary.cpp(332): error C2672: "TArray<FActorAttribute,FDefaultAllocator>::Emplace": keine übereinstimmend
   e überladene Funktion gefunden [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\Projec
   tFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(37): er
   ror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unr
   eal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(45): er
   ror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unr
   eal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(128): e
   rror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Un
   real\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(137): e
   rror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Un
   real\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1689): error C2039: "G
   etObjectW": Ist kein Element von "TScriptInterface<IBlendableInterface>" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3
   \carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Engine\Classes\Engine/Scene.h(1709): error C2039: "G
   etObjectW": Ist kein Element von "TScriptInterface<IBlendableInterface>" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3
   \carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(37): er
   ror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unr
   eal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(45): er
   ror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unr
   eal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(128): e
   rror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Un
   real\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(137): e
   rror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Un
   real\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(103): error C203
   9: "__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla
   \Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(154): error C203
   9: "__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla
   \Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(159): error C203
   9: "__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla
   \Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(165): error C203
   9: "__faststorefence": Ist kein Element von "FWindowsPlatformMisc" [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla
   \Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(37): er
   ror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unr
   eal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(45): er
   ror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unr
   eal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(128): e
   rror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Un
   real\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files\Epic Games\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectIterator.h(137): e
   rror C2660: "GetObjectW": Funktion akzeptiert keine 0 Argumente [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Un
   real\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSens
   or.cpp(17): error C2664: "void AShaderBasedSensor::AddShader(const FSensorShader &)" : Konvertierung von Argumen
   t 1 von "initializer list" in "const FSensorShader &" nicht möglich [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carl
   a\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unre
   al\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4-Carla.lib [C:\Carla\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\Carl
   aUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: Der Be
   fehl ""C:\Program Files\Epic Games\UE_4.19\Engine\Build\BatchFiles\Build.bat" CarlaUE4 Win64 Development "C:\Car
   la\carla_0.9\Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\CarlaUE4.uproject" -WaitMutex -FromMsBuild" wurde mit dem
    Code 5 beendet. Stellen Sie sicher, dass Sie zur Ausführung dieses Befehls berechtigt sind. [C:\Carla\carla_0.9
   \Carla_v_0_9_1_Try_3\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]

1 Warnung(en)
30 Fehler

Verstrichene Zeit 00:00:20.47

-[BuildCarlaUE4]: [ERROR] There was a problem building Carla.
[ERROR] Please read the screen log for more information.
make: * [launch] Fehler 1

Looks like i receive the same error message. help needed. Current Master branch, carla version 0.9.1

Build started 18.12.2018 14:48:08.
1>Project "D:\kru7si\carla_exp\Unreal\CarlaUE4\CarlaUE4.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Development Editor|Win64".
0>C:\Program Files (x86)\Microsoft Visual Studio\2017BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\
Microsoft Visual Studio\2017BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program
Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored
. [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
1>Project "D:\kru7si\carla_exp\Unreal\CarlaUE4\CarlaUE4.sln" (1) is building "D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj"
(2) on node 1 (default targets).
2>Build:
"C:\Program Files\Epic Games\UE_4.19\EngineBuild\BatchFilesBuild.bat" CarlaUE4Editor Win64 Development "D:\kru7si\carla_exp\Unreal\CarlaUE4\CarlaUE4.upr
oject" -WaitMutex -FromMsBuild
Performing full C++ include scan (building a new target)
Performing 4 actions (4 in parallel)
Module.Carla.cpp
2>D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(361): error C2440: 'initializing': cannot convert fro
m 'initializer list' to 'FActorAttribute' [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(361): note: No constructor could take the source ty
pe, or constructor overload resolution was ambiguous
2>D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(361): error C2672: 'TArray locator>::Emplace': no matching overloaded function found [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(366): error C2440: 'initializing': cannot convert fro
m 'initializer list' to 'FActorAttribute' [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(366): note: No constructor could take the source ty
pe, or constructor overload resolution was ambiguous
2>D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(366): error C2672: 'TArray locator>::Emplace': no matching overloaded function found [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
2>D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSensor.cpp(17): error C2664: 'void AShaderBasedSensor::AddShader(const FSen
sorShader &)': cannot convert argument 1 from 'initializer list' to 'const FSensorShader &' [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\C
arlaUE4.vcxproj]
D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSensor.cpp(17): note: Reason: cannot convert from 'initializer list' to '
const FSensorShader'
D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSensor.cpp(17): note: No constructor could take the source type, or const
ructor overload resolution was ambiguous
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4Editor\Developmen
t\UE4Editor-Carla.lib [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
Total build time: 16,37 seconds (Local executor: 0,00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.19\En
gineBuild\BatchFilesBuild.bat" CarlaUE4Editor Win64 Development "D:\kru7si\carla_exp\Unreal\CarlaUE4CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited wi
th code 5. Please verify that you have sufficient rights to run this command. [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxpro
j]
2>Done Building Project "D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj" (default targets) -- FAILED.
1>Done Building Project "D:\kru7si\carla_exp\Unreal\CarlaUE4\CarlaUE4.sln" (default targets) -- FAILED.

Build FAILED.

     C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86
   )\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Progra
   m Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignor
   ed. [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]


   "D:\kru7si\carla_exp\Unreal\CarlaUE4\CarlaUE4.sln" (default target) (1) ->
   "D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj" (default target) (2) ->
   (Build target) ->
     D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(361): error C2440: 'initializing': cannot convert f
   rom 'initializer list' to 'FActorAttribute' [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(361): error C2672: 'TArray<FActorAttribute,FDefault
   Allocator>::Emplace': no matching overloaded function found [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(366): error C2440: 'initializing': cannot convert f
   rom 'initializer list' to 'FActorAttribute' [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(366): error C2672: 'TArray<FActorAttribute,FDefault
   Allocator>::Emplace': no matching overloaded function found [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSensor.cpp(17): error C2664: 'void AShaderBasedSensor::AddShader(const FS
   ensorShader &)': cannot convert argument 1 from 'initializer list' to 'const FSensorShader &' [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles
   \CarlaUE4.vcxproj]
     UnrealBuildTool : error : UBT ERROR: Failed to produce item: D:\kru7si\carla_exp\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4Editor\Developm
   ent\UE4Editor-Carla.lib [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxproj]
     C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.19\
   Engine\Build\BatchFiles\Build.bat" CarlaUE4Editor Win64 Development "D:\kru7si\carla_exp\Unreal\CarlaUE4\CarlaUE4.uproject" -WaitMutex -FromMsBuild" exited
   with code 5. Please verify that you have sufficient rights to run this command. [D:\kru7si\carla_exp\Unreal\CarlaUE4\Intermediate\ProjectFiles\CarlaUE4.vcxp
   roj

Hello,

I am trying to build Carla 0.9.2 on Windows 10.

I followed all the steps provided on the documentation of how to build Carla on Windows. I can say that all the steps is verified. However, when I try to build it through x64 Visual Studio Command Prompt after entering Make Launch, I get the following errors provided in the attached photos.

I will appreciate it, if anyone can tell me how to overcome this errors.

Thanks
capture2
capture3
capture1

Hello,

I could not build 0.9.2 on Windows 10 due to this cmake error:

C:\Users\tangr\Documents\git\carla> make launch
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs:  12
-[Setup]: Boost toolset:      msvc-14.1
-[Setup]: Install directory:  "C:/Users/tangr/Documents/git/carla/Build/"
-[Setup]: Installing rpclib...
    -[install_rpclib]: [Batch params]: --build-dir "C:/Users/tangr/Documents/git/carla/Build/"
    -[install_rpclib]: Not cloning rpclib because already exists a folder called "rpclib-src".
    -[install_rpclib]: Generating build...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

-- Configuring incomplete, errors occurred!
See also "C:/Users/zoeeer/Documents/git/carla/Build/rpclib-src/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/zoeeer/Documents/git/carla/Build/rpclib-src/build/CMakeFiles/CMakeError.log".

It reports "The C compiler identification is unknown" and "The CXX compiler identification is unknown". And in the CMakeError.log it says:

c1 : fatal error C1083: cannot open source file: “CMakeCCompilerId.c”: No such file or directory

and

c1xx : fatal error C1083: cannot open source file: “CMakeCXXCompilerId.cpp”: No such file or directory

But I do have these files generated inside the carla\Build\rpclib-src\build\CMakeFiles\3.12.18081601-MSVC_2\CompilerIdC and carla\Build\rpclib-src\build\CMakeFiles\3.12.18081601-MSVC_2\CompilerIdCXX folders.

To test things out, I tried building an hello world program with cmake (the same installation - I only have one installed with VS 2017) from VS 2017's x64 command prompt, and it was successfully built.

Anyway I haven't found a similar question here, so if anyone has any idea, I really need your help.
Thx.

Hi @zoeeer
Just to check, did you used a Visual Studio x64 Native Tools Command Prompt right?

Hi @marcgpuig

Just to check, did you used a Visual Studio x64 Native Tools Command Prompt right?

Yes I was using it, and cmake can build my test program. (mentioned in my post).

I also checked the Windows Discord Channel. Some people say 0.9.2 doesn't support building on windows...
However the build scripts in 0.9.0 are a bit different and I think in 0.9.2 they seem more Windows friendly. So if 0.9.2 is not a problem I prefer sticking with it. Guess I'll have to get familiar with the cmake system?

@iFuSiiOnzZ
Hi, I have successfully build on win 10, but I cannot find the *.egg file to use pythonapi.
Anything need to do to build pythonapi?
Thx.

PS D:\Intelligent_vehicle\carlar-sim\carla\PythonAPI> python.exe .\manual_control.py
Traceback (most recent call last):
File ".\manual_control.py", line 65, in
import carla
ImportError: No module named 'carla'

Use 'make PythonAPI' to build the PythonApi, the egg file can be found in the dist folder. Import the .egg file to your system path with sys.path.append().

I have tried this, but some errors about boost appeared. Here I've mentioned in #976.

@sriharshakunda @sagnibak I had exactly the same problems as you two. Someone mentioned branch fix_vs2017_build_solution does not support server. Any progress made so far?

Hi @zoeeer

Yes I was using it, and cmake can build my test program. (mentioned in my post).

Yes, I totally overlooked it. This is what instantly goes in my mind after seeing this :P

No CMAKE_CXX_COMPILER could be found.

I've never faced your specific problem with Carla while working in Windows. You can check a few things that could be wrong in this post.

Hope you find a solution.

@marcgpuig Thanks for your reply. I already refered to the StackOverflow thread before posting the problem here, since it did not solve it.

After a few more hours trying and searching, I finally fixed it -- turns out the problem occured because I used WSL shell to git clone carla repo. And files created using WSL can cause you unexpected results! (I am really pissed off that it cost me so much time. However it's a relief to finally find the cause.)

Now cmake can build stuff, but I'm still getting other errors... guess I'll come back later to ask for more help...

Anyone also experience a boost installation problem?

The build process cloned boost-src from git, and tries to build boost libs from it.
The boost src contains a bunch of submodules. And most of their refs seem to be broken now?

I also encountered this last time I built carla. Then I followed the Manual Installation Guide (from 0.8.4 docs), downloaded the pre-compiled boost libs, placed them to the lib folder, then finished building carla, but still wasn't able to open the CarlaUE4 project. That's why I'm re-trying a fresh build this time.

-[Setup]: Installing Boost...
    -[install_boost]: [Batch params]: --build-dir "C:/Users/tangr/Documents/git/carla/Build/"    --toolset msvc-14.1    -j 12
    -[install_boost]: Cloning Boost - version "boost-1.67.0"...
Cloning into 'C:/Users/tangr/Documents/git/carla/Build/boost-src'...
remote: Enumerating objects: 287, done.
remote: Counting objects: 100% (287/287), done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 287 (delta 139), reused 198 (delta 120), pack-reused 0
Receiving objects: 100% (287/287), 958.37 KiB | 548.00 KiB/s, done.
Resolving deltas: 100% (139/139), done.
Checking connectivity... done.
Note: checking out '1a9dda41fbfb0dfbec17ab6afeba8138265395f7'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Submodule 'accumulators' (https://github.com/boostorg/accumulators.git) registered for path 'libs/accumulators'
Submodule 'algorithm' (https://github.com/boostorg/algorithm.git) registered for path 'libs/algorithm'
Submodule 'align' (https://github.com/boostorg/align.git) registered for path 'libs/align'
Submodule 'any' (https://github.com/boostorg/any.git) registered for path 'libs/any'
Submodule 'array' (https://github.com/boostorg/array.git) registered for path 'libs/array'
Submodule 'asio' (https://github.com/boostorg/asio.git) registered for path 'libs/asio'
......
...... # More Than 100 Submodules Here
......
Cloning into 'C:/Users/tangr/Documents/git/carla/Build/boost-src/libs/accumulators'...
Cloning into 'C:/Users/tangr/Documents/git/carla/Build/boost-src/libs/align'...
Cloning into 'C:/Users/tangr/Documents/git/carla/Build/boost-src/libs/any'...
Cloning into 'C:/Users/tangr/Documents/git/carla/Build/boost-src/libs/assert'...
Cloning into 'C:/Users/tangr/Documents/git/carla/Build/boost-src/libs/array'...
......
...... # Cloning into each submodule
......

error: no such remote ref bfcbfe3c58064cd1ffabbce49a95c6c20351c96e
Fetched in submodule path 'libs/accumulators', but it did not contain bfcbfe3c58064cd1ffabbce49a95c6c20351c96e. Direct fetching of that commit failed.
    -[install_boost]: Generating build...
Building Boost.Build engine
The system cannot find the path specified.
'.\build.bat' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.

Edit 2019/01/22
I'm trying manually building boost again. Which boost version is recommended for carla 0.9.2? Can I use 1.64 as in carla 0.8.4?

Hi, it looks like I am missing some dependencies:

image

I see @overlapjho posted a similar issue a while ago but couldn't find a resolution on this thread. Can someone help?

Unfortunately, we have to put this issue on hold until we have secured basic functionality on Linux for the Carla challenge.

Sorry :disappointed:

@zoeeer better try boost 1.67.

More users are facing the same problem with fetching libs/accumulators... weird.
Please update this issue if you have some news!

Edit
Also, thanks for the info regarding the WSL shell.

Hi @marcgpuig ,

I think I've found the right solution for building boost:

Download boost source from the official site, extrat it into carla's Build folder, and rename boost_1_67_0 to boost-src. You'll have something like this:

Build
└── boost-src
    ├── boost
    |   ├── accumulators
    |   ├── algorithm
    |   ├── align
    |   └── [...] // and all the other libraries
    ├── bootstrap.bat
    └── [...] // other stuff from the source folder

Then you can run the make commands, such as

make launch

and boost will be auto built.

P.S.
I checked the Linux build script, and found in the Linux version boost source is downloaded with wget instead of using the git repo. I think it's better to change the Windows script, too.

# Util/BuildTools/Setup.sh

log "Retrieving boost."
wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz
log "Extracting boost."
tar -xzf boost_1_67_0.tar.gz

P.S.
I still got some errors from make launch, but I can open the .uproject file and run the editor now. I'll play a bit to see if things work well.

Hi @zoeeer

Thank you for your explanation, I'm sure it will be really helpful for the community :)

I checked the Linux build script, and found in the Linux version boost source is downloaded with wget instead of using the git repo. I think it's better to change the Windows script, too.

Indeed! We discused this in the past and it must be changed. The thing here is that downloading in Windows is not that easy without dependencies... there is nothing like wget, there are other methods but I need to make a further investigation. Later on, I will focus on the Windows build and I will consider using this method, that should be quicker too.

Please, share the other errors in the make launch process.

Cheers.

Hi @marcgpuig

Wget can be used in Windows. http://gnuwin32.sourceforge.net/packages/wget.htm

Hi @didibaba
Yeah sure! But we want you to install the fewer dependencies as possible, so we searched for a default standard download tool in Windows like bitsadmin or some _workarround_ like this.
If there is no other option, we may consider using wget for Windows indeed.

The answer by @f5maki in this issue #1155 helped me with make launch.

Now I'm struggling with make PythonAPI... #976 is discussing this.

Edit:
Regarding download tool in Windows, maybe @iFuSiiOnzZ's zlib powershell script is a good idea? Is it the same tool bitsadmin you just mentioned?

Hi guys. I have a problem with compiling Carla. The setup I'm using: Windows10, Visual Studio 2017, Unreal Engine 4.21.2, Carla 0.9.3. I have make, cmake, python, Win SDK8.1 installed. It looks boost is compiling, but then I got popup that CarlaUE4 needs to be rebuilt,

I click yes, and then I got C4577 errors
cmd_kfh4lm3svj

Any idea how to solve it?

Same issue as for @grzjab, while using the same environment.
Any idea, please?

This was introduced by the re-routing exception handling change. Unfortunately there is now a circular problem as the compiler asks for the addition of /Ehsc. You add the bEnableExceptions = true; to CarlaUE4.build.cs but the UnrealBuildTool does not like that.
So no solution just outlining where I go to before I gave up.

Not sure handling third party exceptions in Carla is the way to go.

I'm currently redoing the Windows setup for Carla 0.9.x in marcgpuig/windows_build and looks like I got a first good version of it. It compiles PythonAPI now.
Feel free to try it and I'll help you as much as I can so we can achieve a solid Windows installer.

I'm getting error C2780/C2784/C2782. This is probably due to a conflict between boost libraries. I currently have the 1.67 installed, whereas it seems CARLA 0.9.2 requires 1.68. Can I rebuild boost library from Carla?

marcgpuig, Many thanks for devoting the time to this issue. Small issue in your branch marcgpuig/windows_build : boost-install :
BOOST_REPO=https://dl.bintray.com/boostorg/release/%BOOST_VERSION%/source/%BOOST_TEMP_FILE%
I do not have the credentials(Win7) to access the site with https. http works.

@eds89 we are using 1.69, delete carla/Build and try again (this can take a while).


@f5maki thanks to you for the effort on solving this by yourself and making the report here, I'll add a flag in the future to change that, but by default, I prefer to use https because reasons :)
And probably another flag to use the clone on github (that also seems to download faster than download and unzip)

I'm currently redoing the Windows setup for Carla 0.9.x in marcgpuig/windows_build and looks like I got a first good version of it. It compiles PythonAPI now.
Feel free to try it and I'll help you as much as I can so we can achieve a solid Windows installer.

Many thanks!

Can I only checkout your new Util folder to the 0.9.2 branch which I'm currently using? So that I won't have to update the associated Content version.
Do I have to use boost 1.67 instead of 1.69 with 0.9.2?

Hi guys. I have a problem with compiling Carla. The setup I'm using: Windows10, Visual Studio 2017, Unreal Engine 4.21.2, Carla 0.9.3. I have make, cmake, python, Win SDK8.1 installed. It looks boost is compiling, but then I got popup that CarlaUE4 needs to be rebuilt,

I click yes, and then I got C4577 errors
cmd_kfh4lm3svj

Any idea how to solve it?

same issue here. any updates yet?

Hi @zoeeer

Can I only checkout your new Util folder to the 0.9.2 branch which I'm currently using?

No sorry, I've made changes on code. But you can actually merge my branch into yours, and resolve the conflicts (if any).

Do I have to use boost 1.67 instead of 1.69 with 0.9.2?

Yes, I recommend you to delete your Build folder and then make setup to automatically download the last boost version. Then make launch to open the Unreal Editor as usual.


Hi @simach
Can you provide more information? Are you using my branch marcgpuig/windows_build?

@marcgpuig thanks for your help, using your branch helped!

@marcpuig - A question.
Your branch does not build the .sln, project or development configuration. Do you recommend a way of doing this? I used the generate_vs solution section of the old BuildCarlaUE4.bat.

An observation - Manual_control.py does not start because of a carla import error. It cannot find the zlib dll. Move the dll or put the directory on PATH?

Hi @marcgpuig ,

Thanks to the discussions and efforts by many of you guys, I have everything built and running now. I haven't tried your branch yet because I currently prefer to try to build things on 0.9.2 without making too many changes.

Two more tips:

  • I think Python 3.5 on Windows has some issues. I replaced it with Python 3.6 and now I can build PythonAPI. (I experieced issues with 3.5 in other Python projects too)
  • I'm using the 0.9.2 tagged version and I think it goes with boost 1.67. Boost 1.69 is not compatible when making PythonAPI.

Hi @marcgpuig ,

I can confirm, that I was able to build carla - UE4 with your modified branch (https://github.com/carla-simulator/carla/pull/1241) instead of relese 9.3. Thanks for that!
(Windows 10, x64, Visual Studio 2017, UE 4.21, Python 3.7.0)

Unfortunatelly Iam not able to compile PythonAPI. I have python 3.7 and I fail on boost linking. Do you have some hint, what I can try?

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:dependencies/lib /LIBPATH:C:\Programs\Python\Python37\libs /LIBPATH:C:\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" /EXPORT:PyInit_libcarla build\temp.win-amd64-3.7\Release\source/libcarla/libcarla.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\Buffer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\Exception.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\FileSystem.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\StringUtil.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Actor.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ActorAttribute.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ActorBlueprint.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ActorList.obj build\temp.win-amd64-
........
build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\tcp\Client.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\tcp\Server.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\tcp\ServerSession.obj /OUT:build\lib.win-amd64-3.7\carla\libcarla.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\source/libcarla\libcarla.cp37-win_amd64.lib shlwapi.lib C:\WorkingDir\toyota\carla\src_carla_0.9.3\PythonAPI\dependencies/lib\carla_client.lib C:\WorkingDir\toyota\carla\src_carla_0.9.3\PythonAPI\dependencies/lib\libboost_filesystem-vc141-mt-x64-1_69.lib C:\WorkingDir\toyota\carla\src_carla_0.9.3\PythonAPI\dependencies/lib\libpng.lib C:\WorkingDir\toyota\carla\src_carla_0.9.3\PythonAPI\dependencies/lib\rpc.lib C:\WorkingDir\toyota\carla\src_carla_0.9.3\PythonAPI\dependencies/lib\zlib.lib
   Creating library build\temp.win-amd64-3.7\Release\source/libcarla\libcarla.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\source/libcarla\libcarla.cp37-win_amd64.exp
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::throw_error_already_set(void)" (?throw_error_already_set@python@boost@@YAXXZ)

followed by 70ty similar lines.
build\lib.win-amd64-3.7\carla\libcarla.cp37-win_amd64.pyd : fatal error LNK1120: 70 unresolved externals

I found, that there is maybe some issue with boost static/dynamic linking. But it seems, that it is correctly set-up...

@f5maki you can build the .sln with right clicking the carla\unreal\CarlaUE4\CarlaUE4.uproject file and select generate project for Visual studio (or something like that, I'm on Linux now). Also, thanks for confirming that the dll problem is a the zlib issue, this was helpful. Next time I'll retake the Win build, I'll focus on statically linking zlib so no dll will be needed anymore.


@davidSedlacek Just in case, are you using a x64 version of Python?

@marcgpuig Thanks for quick response. Yes, I do. I verified it now. :(

@marcgpuig btw. In the prebuild 9.3 version for Windows the python API doesn't work. Thanks to @f5maki , when I put zlib.dll next to python scripts (for example spawn_vehicle.py) it all start to work. Unfortunatelly, the zlib.dll is not packed in release. I know, it is related to prev. post. I just want to confirm, that it works in release also.

@davidSedlacek Thanks for the confirmation.
I'll update the release package with a fresh zlib.dll on it when I have time.

Using the newest master branch to build carla on win10, I didn't see any output exe files. Although I have successfully built the PythonAPI, I got the problem when I try to import carla.

In [1]: import carla
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-4913ac8c036f> in <module>
----> 1 import carla

c:\users\whzon\appdata\local\programs\python\python37\lib\site-packages\carla-0.9.3-py3.7-win-amd64.egg\carla\__init__.py in <module>
      5 # For a copy, see <https://opensource.org/licenses/MIT>.
      6
----> 7 from .libcarla import *

ImportError: DLL load failed: The specified module could not be found.

Anyone can help?

Anyone with such source code error?

Command: make package
Error: CarlaWheeledVehicle.cpp(221): error C4018: '<': signed/unsigned mismatch

Versions

Carla 0.9.3, branch master (fa9ad0028ddd5f28ca6302cb5c352a12d46236ea)
VS 2017
Unreal Engine 4.21 (added key via regedit, added to path, added UE4_ROOT)

Log output

-[BuildPythonAPI]: Carla lib for python has been successfully installed in "D:/carla/PythonAPI\dist"!
-[Package]: [Batch params]: --ue-version 4.21
Building 4 actions with 4 processes...
  [1/4] Module.Carla.cpp
  D:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Vehicle\CarlaWheeledVehicle.cpp(221): error C4018: '<': signed/unsigned mismatch
UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\carla\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4Editor\Development\Carla\UE4Editor-Carla.lib
                        (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)
Total build time: 42.46 seconds (Parallel executor: 0.00 seconds)

-[Package]: [ERROR] There was a problem while building the CarlaUE4Editor.
          [ERROR] Please read the screen log for more information.
make: *** [package] Error 1

More readable screenshot

image

make launch works fine, but fails at the very last step

Command: make launch
No errors, compiles correctly Launching UE4 Editor...
image

Clicking Yes
image

Some progress...
image

And then it fails...
image

Should be fixed now, just removing a character :man_facepalming:

@micmarty Thanks for reporting!

@micmarty I've got the exact same problem. UnrealBuildTool opens, starts compiling and I get the same error message, but a different error causing it i guess:

error C4647: behavior change: __is_pod(carla::rpc::Command::DestroyActor) has different value in previous versions

[...]

D:..\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Sensor/Sensor.h(57): note: see reference to class template instantiation 'FDataStreamTmpl' being compiled
ERROR: UBT ERROR: Failed to produce item: D:..\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4Editor\Development\Carla\UE4Editor-Carla.lib

Update:

I checked out an earlier commit, before the commands were introduced: fd4d8959f5bdc99d01bd6fc9f626cb299e5b065f
'Change more rpc bindings to accept rpc::ActorId instead of rpc::Actor'

Versions
Python 3.6
Unreal Engine 4.21
Windows 10 64 bit
VS 2017

Error Message:

  Module.Carla.gen.2_of_4.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class UScriptStruct * __cdecl Z_Construct_UScriptStruct_FAssetData(void)" (__imp_?Z_Construct_UScriptStruct_FAssetData@@YAPEAVUScriptStruct@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static struct UE4CodeGen_Private::FStructPropertyParams const Z_Construct_UClass_UMapProcessCommandlet_Statics::NewProp_AssetDatas_Inner''(void)" (??__E?NewProp_AssetDatas_Inner@Z_Construct_UClass_UMapProcessCommandlet_Statics@@2UFStructPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)
  D:\kru7si\carla_sync\Unreal\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4Editor-Carla.dll : fatal error LNK1120: 1 unresolved externals
  [19/19] UE4Editor-CarlaUE4.dll
     Creating library D:\kru7si\carla_sync\Unreal\CarlaUE4\Intermediate\Build\Win64\UE4Editor\Development\CarlaUE4\UE4Editor-CarlaUE4.suppressed.lib and object D:\kru7si\carla_sync\Unreal\CarlaUE4\Intermediate\Build\Win64\UE4Editor\Development\CarlaUE4\UE4Editor-CarlaUE4.suppressed.exp
UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\kru7si\carla_sync\Unreal\CarlaUE4\Plugins\Carla\Binaries\Win64\UE4Editor-Carla.dll
                        (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)

@Sakrust I can confirm that happens! just fixed it, master should be compile in Windows again. Many thanks for the report!

Hello, I have been trying to run the carla on my windows pc, but the precompiled version seems to give somedependency issue:
File "C:\work\Simulation\CARLA\tutorial.py", line 21, in
import carla
File "C:\work\Simulation\CARLA\PythonAPI\carla-0.9.4-py3.7-win-amd64.egg\carla__init__.py", line 7, in
File "C:\work\Simulation\CARLA\PythonAPI\carla-0.9.4-py3.7-win-amd64.egg\carla\libcarla.py", line 7, in
File "C:\work\Simulation\CARLA\PythonAPI\carla-0.9.4-py3.7-win-amd64.egg\carla\libcarla.py", line 6, in __bootstrap__
File "C:\Users\Valentin\AppData\Local\Programs\Python\Python37-32\Lib\imp.py", line 342, in load_dynamic
return _load(spec)

builtins.ImportError: DLL load failed: %1 is not a valid Win32 application.

The compilation also fails due to something not set up properly:

-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "C:\work\SimulationSrc\carla-0.9.4Build\"
-[Setup]: Creating "C:\work\SimulationSrc\carla-0.9.4Build\" folder...
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "C:\work\SimulationSrc\carla-0.
9.4Build\"
-[install_zlib]: Retrieving zlib.
-[install_zlib]: Extracting zlib from "zlib-1.2.11.zip".
Expand-Archive : The term 'Expand-Archive' is not recognized as the name of a c
mdlet, function, script file, or operable program. Check the spelling of the na
me, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • Expand-Archive 'C:\work\SimulationSrc\carla-0.9.4Build\zlib-1.2.11.zip' -Des
    tin ...
  • ~~~~~~

    • CategoryInfo : ObjectNotFound: (Expand-Archive:String) [], Comm

      andNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

-[install_zlib]: Removing "zlib-1.2.11.zip"

The system cannot find the file specified.
-[install_zlib]: Creating "C:\work\SimulationSrc\carla-0.9.4Build\zlib-sour
ce\build"
CMake Error: The source directory "C:/work/SimulationSrc/carla-0.9.4/Build/zlib-
source" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

-[install_zlib]: [CMAKE ERROR] An error ocurred while executing cmake comman

d.
-[install_zlib]: [CMAKE ERROR] Possible causes:
-[install_zlib]: - Make sure "CMake" is installed.
-[install_zlib]: - Make sure it is available on your Windows
"path".
-[install_zlib]: - Make sure you have cmake 3.12.4 or higher
installed.
-[install_zlib]: Exiting with error...

I am pretty sure I have some dependency or include not set up correctly, but not sure about it. I am using Windows 8, Python 3.7, VS 2017 and latest Unreal version. Can anybody tell me what am I doing wrong?

Observation - pulled master 0932 GMT 13/03/19. There is a mismatch in libraries RTTI settings. As a work around I added

"%CMAKE_CONFIG_FILE%" echo add_definitions(-DBOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY)

to the Server section of Setup.bat.

@f5maki Hi, I don't fully understand how to do it, can you be more specific? I add the line

add_definitions(-DBOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY)

to literally all the CMake file I can find, yet no luck. I think I've misunderstood sth.

Thankyou

@osjacky430 Add at line 207 of carla\UtilBuildTools\Setup.bat

"%CMAKE_CONFIG_FILE%" echo add_definitions(-DBOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY)

This is a work around only.

I'm still having issues, and quite similar to @Nightingale7 (well, literally the same...), @f5maki workaround does not solve the problem, sadly.

I am using Windows 8, Python 3.7, VS 2017 and latest Unreal version, too.

D:\carla>python

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

D:\carla>cl

Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26730 for x64 Copyright (C) Microsoft Corporation.

Source Build problem in the build LibCarla step:

Versions
Python 3.6
Unreal Engine 4.21
Windows 10 64 bit
VS 2017
Carla version 0.9.4

LibCarla build writes that the client is successfully built:
image

But the dependencies folder is not generated.
When fetching for an error, the following is found:
C:\Users\---\Documents\Carla_9_4\carla\LibCarla\source\carla/client/detail/ActorState.h(101): error C2248: 'carla::client::detail::ActorState::ActorState': cannot access private member declared in class 'carla::client::detail::ActorState' [C:\Users\---\Documents\Carla_9_4\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\carla_client_debug.vcxproj]

@nsubiron: Any idea how to solve this?

Thanks in advance

Capture

Hello, I tried building Carla for the first time via the make launch feature and encountered this issue. I'm not sure what the problem is or how to fix it. Any help is appreciated!

I guess the space char in your directory is to blame for that.

I got the following errors when I tried to make PythonAPI. Anyone knows how to solve this? Except make PythonAPI, everything else (make setup, make launch, make package) seems to work just fine.
image

Indeed, I get the very same error for 'make PythonAPI' on Windows.

Hey guys, getting a very unusual error An error ocurred while executing "bootstrap.bat"

this is after i run make launch - the process begins to extract the file boost_1_69_0 but somewhere inbetween it hits the above error.

how can i remedy this? thank you

windows 10 64 bit
VS 2017

    -[install_boost]: Removing "boost_1_69_0.zip"
The system cannot find the file specified.
The system cannot find the path specified.
    -[install_boost]: Generating build...
'bootstrap.bat' is not recognized as an internal or external command,
operable program or batch file.

    -[install_boost]: [BOOTSTRAP ERROR] An error ocurred while executing "bootstrap.bat".
    -[install_boost]: Exiting with error...

Error

I am now running into this issue. I saw a similar post above, but I am not quite sure how to resolve it. Does anyone have suggestions?

Whenever I try to build it this error pops out:
/bin/sh: /cygdrive/c/Users/Usuario/Desktop/Codes/Python/Tema 4/Tema_4/carla/Util/BuildTools/Setup.bat: Permission denied
make: * [Util/BuildTools/Windows.mk:57: setup] Error 126
Do I have to change the read/write permissions of my archive?

having UBT error when building the unreal after launch. using carla 0.9.5 and UE4 version 4.21.
it tells those codes causing errors but looks no problem.

Error C4822 'carla::MoveHandler::MoveWrapper::MoveWrapper': local class member function does not have a body CarlaUE4   C:\Users\asdf\Documents\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\carla\MoveHandler.h   25
Error C4822 'carla::MoveHandler::MoveWrapper::operator =': local class member function does not have a body CarlaUE4    C:\Users\asdf\Documents\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\carla\MoveHandler.h   26
Error UBT ERROR: Failed to produce item: C:\Users\asdf\Documents\carla\Unreal\CarlaUE4\Plugins\Carla\Intermediate\Build\Win64\UE4Editor\Development\Carla\UE4Editor-Carla.lib   CarlaUE4    C:\Users\asdf\Documents\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\UnrealBuildTool 1   

Error C4822 'carla::MoveHandler::MoveWrapper::MoveWrapper': local class member function does not have a body CarlaUE4 C:\Users\asdf\Documents\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\carla\MoveHandler.h 25
Error C4822 'carla::MoveHandler::MoveWrapper::operator =': local class member function does not have a body CarlaUE4 C:\Users\asdf\Documents\carlaUnreal\CarlaUE4\Plugins\Carla\CarlaDependencies\include\carla\MoveHandler.h 26
Error UBT ERROR: Failed to produce item: C:\Users\asdf\Documents\carla\Unreal\CarlaUE4\Plugins\Carla\IntermediateBuild\Win64\UE4Editor\Development\Carla\UE4Editor-Carla.lib CarlaUE4 C:\Users\asdf\Documents\carla\Unreal\CarlaUE4\Intermediate\ProjectFiles\UnrealBuildTool 1
```

@vishal-prgmr
about this,

nsubiron
@Guuuuuum Yes, replace LibCarla/source/carla/MoveHandler.h with this, I'm fixing it on 4.22 branch, >hopefully it will be merged this week
https://cdn.discordapp.com/attachments/445494135990779915/575260339407552512/MoveHandler.h

Thx anyway!

@Guuuuuum , did you manage to build the PythonAPI ?

@RoadToML , did you fix your issue?

@vishal-prgmr yes but then i got so many more issues, i gave up and installed on Ubuntu

LINK : fatal error LNK1201: 写入程序数据库“H:\19?????\carla-master\Build\zlib-source\build\CMakeFiles\CMakeTmp\cmTC_71fd9.pdb”时出错;请检查是否是磁盘空间不足、路径无效或权限不够
NMAKE : fatal error U1077: “"C:\Program Files\CMake\bin\cmake.exe"”: 返回代码“0xffffffff”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"”: 返回代码“0x2”

how can I solve this problem, thanks for everyone

@Nightingale7 @osjacky430 if you still haven't fixed the Expand-archive problem:

Pick a compatible install from the link below [probably Win8.1AndW2K12R2-KB3191564-x64.msu]:
https://www.microsoft.com/en-us/download/details.aspx?id=54616

Old PowerShell versions (<5.0) do not support Expand-archive.

Hi,
It seems that the windows build for the 0.9.6 is broken.
We are trying to fix this asap.
There is an issue about that here:
https://github.com/carla-simulator/carla/issues/1894

@vishal-prgmr yes but then i got so many more issues, i gave up and installed on Ubuntu

I did the same thing but on virtual machine. The size was over 60gb and when I finally started the unreal engine editor it failed because it is too advanced to run on virtual machine. Graphics drivers are not good enough, this goes for any virtual machine. 👎

I am trying to build Carla 0.9.6 latest master branch as of today with unreal 4.22.3.
I am doing a make launch and I get as far as it opening Unreal Editor. It asks to rebuild CarlaUE4 and Carla. But from what I can tell I am getting errors about Frame: undeclared identifier and unicode, just all kinds of errors. I can't see to get past this point.

It was a corrupted file. I was able to build. But I did have a few more questions. I want to make a build like the 0.9.5 Windows build with the PythonAPI included. I tried a make package last night and it seemed to work but did not build the PythonAPI. What are the steps to build the full release version. Also when I ran the executable I got a crash message but the window still came up. So I am not sure what happened there.

2098

hope to be useful

I think something is missing from the instructions. I successfully ran "make launch" and got the UE4 window showing the world.
but I cannot import the client into Python.
How do I install the compiled carla client into my python installation?

Make sure you run

make PythonAPI

before you run any client python script. Otherwise the import carla will fail.

make PythonAPI
That didn't seem to be enough.
I did install the client by running "python setup.py install" from here:
C:\Projects\carla\PythonAPI\carla

Still I'm missing something. I don't have the CarlaUE4.exe file.
Is that replaced by the Unreal Engine launched by "make launch"?

I think something is missing from the documentation (https://carla.readthedocs.io/en/latest/how_to_build_on_windows/)

CarlaUE4 was not created. I guess you have to run "make package" and this is not mentioned. (it also doesn't run for me yet, I'll keep working on it)

I was able to run the simulation / server by hitting "Play" within Unreal Engine and then the client works, I can connect, etc...

I'm not sure which one of the troubles you are having, but I can tell you this:

  1. The "ended successfully" message in the build script is sequential and sometimes shows when it actually didn't work. The first time I installed Carla, I accidentally stopped the make process during the download / making of the dependencies. Took me quite a while to realize that I have to delete the dependencies folder content and run it again.
  2. As a side-note, in the CarlaUE4 solution / Plugins / Carla / Source / Carla / Carla.cpp you need to add the following line for it to build successfully:

undef DrawText

Maybe this should be entered in the instructions.

  1. I had some PythonAPI troubles as well, even though it built and everything. If you ran make PythonAPI and it finished successfully and you still can't import carla inside python, go to (carla root) / PythonAPI / carla and you should have another folder called dist.
    inside it you will have the egg file. open a cmd window and type:
    easy_install (egg file name)
    This should let your python know it exists (worked for me).
    Perhaps this should be added to the instructions as well...

Thanks for the help. It's getting harder to know what went wrong but actually now things are moving forward.

Just a note regarding the "InstalledDirectory" parameter in the registry.
On my machine it wasn't set and I followed the instructions here and set it by mistake to:
C:\Program Files (x86)\Epic Games
While it was supposed to be set to :
C:\Program Files\Epic Games\UE_4.22
It's confusing because both locations contain the launcher and other things.
It was fixed for me by the launcher when I used it to verify my engine and then uninstall the source and reinstall it. After that this parameter was set correctly. I guess the original installation of the engine failed somehow.

I managed to run "make package" almost to the end.

The only thing that failed is creating the archive with the following out-of-memory message:

"-[Package]: Building package..."
Exception calling "Write" with "3" argument(s): "Exception of type 'System.OutOfMemoryException' was thrown."
At
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:820
char:29
+ ...                     $destStream.Write($buffer, 0, $numberOfBytesRead)
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : OutOfMemoryException

I have everything compiled, server and all so I don't mind.

Looking online there seems to be a possibility to build the archive in multiple passes which might solve the issue but I don't have the technical know-how to implement such a change.
See here:
https://stackoverflow.com/questions/43616028/outofmemoryexception-when-using-compress-archive-with-60gb-of-files

Hi guys,

I've also encountered some troubles when trying to compile carla on Windows. Especifically, when I try to do make launch (or any other kind of make call) I get the following error:
make: * [launch] Error 2

Has someone else faced this problem? Any tips on how to solve it?

Thank you very much!

Hi guys,
This is my first time to build CARLA on windows and I have a problem when making launch

C:\CARLAR\carla>make launch
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 4
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "C:\CARLAR\carlaBuild\"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "C:\CARLAR\carlaBuild\"
-[install_zlib]: Not downloading zlib because already exists the folder "C:\
CARLAR\carlaBuild\zlib-source".
CMake Error at CMakeLists.txt:4 (include):
include could not find load file:
Build/CMakeLists.txt.in

CMake Error at CMakeLists.txt:6 (add_subdirectory):
add_subdirectory given source "LibCarla/cmake" which is not an existing
directory.
... ...

Does anyone know how to deal with it?
Thank you very much!

Hi guys,
This is my first time to build CARLA on windows and I have a problem when making launch

-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 8
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "E:\FINAL YEAR PROJECT\SDC - V2 (Unreal Engine)\carlaBuild\"
-[Setup]: Creating "E:\FINAL YEAR PROJECT\SDC - V2 (Unreal Engine)\carlaBuild\" folder...
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "E:\FINAL YEAR PROJECT\SDC - V2 (Unreal Engine)\carlaBuild\"
\carlaBuild\ was unexpected at this time.
make: * [Util/BuildTools/Windows.mk:65: setup] Error 255

Does anyone know how to deal with it?
Thank you very much!

-[install_zlib]: [Batch params]: --build-dir "E:\FINAL YEAR PROJECT\SDC - V2 (Unreal Engine)\carlaBuild"
\carlaBuild\ was unexpected at this time.
make: * [Util/BuildTools/Windows.mk:65: setup] Error 255

maybe change install directory to the name without space solves the problem

-[install_zlib]: [Batch params]: --build-dir "E:\FINAL YEAR PROJECT\SDC - V2 (Unreal Engine)\carlaBuild"
\carlaBuild\ was unexpected at this time.
make: * [Util/BuildTools/Windows.mk:65: setup] Error 255

maybe change install directory to the name without space solves the problem

Thanks friend. It helped.

This issue should be solved after the fixes and considering the new documentation: https://carla.readthedocs.io/en/latest/build_windows/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mallela picture mallela  ·  3Comments

AftermathK picture AftermathK  ·  3Comments

syinari0123 picture syinari0123  ·  4Comments

syinari0123 picture syinari0123  ·  3Comments

jinfagang picture jinfagang  ·  3Comments