carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.53k stars 3.72k forks source link

0.9.11, make launch failure: The system cannot find the path specified. Already defined the system variable #4242

Closed randaldong closed 2 years ago

randaldong commented 3 years ago

Hi, everyone, I was trying to build Carla 0.9.11 on my Windows 10 system according to the document v: 0.9.11. I have installed git, cmake, Visual Studio 2017, python3.7.8, and UE 4.24.3, downloaded and unzipped the assets, and succeeded when running make PythonAPI. I've also defined the environment variable UE4_ROOT as C:\Program Files\Epic Games\UE4.24.

However, when I run make launch, the following error occurred:

-[BuildCarlaUE4]: [Batch params]: --build --all --build --all ECHO 处于关闭状态。 -[BuildCarlaUE4]: Building Unreal Editor... 系统找不到指定的路径。 make: *** [CarlaUE4Editor] 错误 1

The full output is as follows:

A:\Carla>make launch -[Setup]: [Batch params]: --boost-toolset msvc-14.1 -[Setup]: Asynchronous jobs: 16 -[Setup]: Boost toolset: msvc-14.1 -[Setup]: Install directory: "A:\Carla\Build\" -[Setup]: Installing zlib... -[install_zlib]: [Batch params]: --build-dir "A:\Carla\Build\" -[install_zlib]: A zlib installation already exists. -[install_zlib]: Delete "A:\Carla\Build\zlib-install\" if you want to force a rebuild. -[install_zlib]: Exiting... -[Setup]: Installing libpng... -[install_libpng]: [Batch params]: --build-dir "A:\Carla\Build\" --zlib-install-dir "A:\Carla\Build\zlib-install\" -[install_libpng]: A libpng installation already exists. -[install_libpng]: Delete "A:\Carla\Build\libpng-1.2.37-install\" if you want to force a rebuild. -[install_libpng]: Exiting... -[Setup]: Installing rpclib... -[install_rpclib]: [Batch params]: --build-dir "A:\Carla\Build\" -[install_rpclib]: A rpclib installation already exists. -[install_rpclib]: Delete "A:\Carla\Build\rpclib-install\" if you want to force a rebuild. -[install_rpclib]: Exiting... -[Setup]: Installing Google Test... -[install_gtest]: [Batch params]: --build-dir "A:\Carla\Build\" -[install_gtest]: A Google Test installation already exists. -[install_gtest]: Delete "A:\Carla\Build\gtest-install\" if you want to force a rebuild. -[install_gtest]: Exiting... -[Setup]: Installing "Recast & Detour"... -[install_recast]: [Batch params]: --build-dir "A:\Carla\Build\" -[install_recast]: A "Recast & Detour" installation already exists. -[install_recast]: Delete "A:\Carla\Build\recast-cdce4e-install\" if you want to force a rebuild. -[install_recast]: Exiting... -[Setup]: Installing Boost... -[install_boost]: [Batch params]: --build-dir "A:\Carla\Build\" --toolset msvc-14.1 --version 1.72.0 -j 16 -[install_boost]: A Boost installation already exists. -[install_boost]: Delete "A:\Carla\Build\boost-1.72.0-install\" if you want to force a rebuild. -[install_boost]: Exiting... 已复制 1 个文件。 已复制 1 个文件。 -[Setup]: Installing Xercesc... -[install_xercesc]: [Batch params]: --build-dir "A:\Carla\Build\" -[install_xercesc]: A xerces installation already exists. -[install_xercesc]: Delete "A:\Carla\Build\xerces-c-3.2.3-install\" if you want to force a rebuild. -[install_xercesc]: Exiting... fatal: not a git repository (or any of the parent directories): .git -[Setup]: Creating "CMakeLists.txt.in"... -[Setup]: ###########

SUCCESS

###########

IMPORTANT!

All the CARLA library dependences should be installed now. (You can remove all "*-src" folders in A:\Carla\Build\ directory)

You only need the ASSET PACK with all the meshes and textures.

This script provides the assets for CARLA 0.9.11: You can download the assets from here:

   http://carla-assets.s3.amazonaws.com/20201222_232b876.tar.gz

Unzip it in the "A:\Carla\Unreal\CarlaUE4\Content\Carla\" folder. If you want another version, search it in A:\Carla\Util\ContentVersions.txt.

-[BuildLibCarla]: [Batch params]: --server --client -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042. -- Build debug: ON -- Build release: ON -- Build test: ON -- Configuring done -- Generating done -- Build files have been written to: A:/Carla/Build/libcarla-visualstudio 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3 版权所有(C) Microsoft Corporation。保留所有权利。

carla_server.vcxproj -> A:\Carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server.lib carla_server_debug.vcxproj -> A:\Carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server_debug.lib -- Install configuration: "Release" -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042. -- Build debug: ON -- Build release: ON -- Build test: ON -- Configuring done -- Generating done -- Build files have been written to: A:/Carla/Build/libcarla-visualstudio 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3 版权所有(C) Microsoft Corporation。保留所有权利。

carla_client.vcxproj -> A:\Carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client.lib carla_client_debug.vcxproj -> A:\Carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client_debug.lib -- Install configuration: "Release" -[BuildLibCarla]: LibCarla server has been successfully installed in "A:\Carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies\"! -[BuildLibCarla]: LibCarla client has been successfully installed in "A:\Carla\PythonAPI\carla\dependencies\"! -[BuildCarlaUE4]: [Batch params]: --build --all --build --all ECHO 处于关闭状态。 -[BuildCarlaUE4]: Building Unreal Editor... 系统找不到指定的路径。 make: *** [CarlaUE4Editor] 错误 1

Then, I tried to manually build "CarlaUE4.sln" in folder "Carla\Unreal\CarlaUE4", the output was as follows:

1>------ 已启动生成: 项目: CarlaUE4, 配置: Development_Editor x64 ------ 1>Creating makefile for CarlaUE4Editor (no existing makefile) 1>---------------------------------------------- 1>CarSim OFF 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorBlueprintFunctionLibrary.cpp(1): error : Expected ActorBlueprintFunctionLibrary.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorDispatcher.cpp(1): error : Expected ActorDispatcher.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorRegistry.cpp(1): error : Expected ActorRegistry.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\ActorSpawnResult.cpp(1): error : Expected ActorSpawnResult.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Actor\CarlaBlueprintRegistry.cpp(1): error : Expected CarlaBlueprintRegistry.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\AI\AIControllerFactory.cpp(1): error : Expected AIControllerFactory.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\CarlaEngine.cpp(1): error : Expected CarlaEngine.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\CarlaEpisode.cpp(1): error : Expected CarlaEpisode.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\CarlaGameInstance.cpp(1): error : Expected CarlaGameInstance.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\CarlaGameModeBase.cpp(1): error : Expected CarlaGameModeBase.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\CarlaStaticDelegates.cpp(1): error : Expected CarlaStaticDelegates.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\CarlaStatics.cpp(1): error : Expected CarlaStatics.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\Tagger.cpp(1): error : Expected Tagger.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Game\TaggerDelegate.cpp(1): error : Expected TaggerDelegate.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\CityMapMeshHolder.cpp(1): error : Expected CityMapMeshHolder.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\CityMapMeshTag.cpp(1): error : Expected CityMapMeshTag.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\DoublyConnectedEdgeList.cpp(1): error : Expected DoublyConnectedEdgeList.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\GraphGenerator.cpp(1): error : Expected GraphGenerator.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\GraphParser.cpp(1): error : Expected GraphParser.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\GraphTypes.cpp(1): error : Expected GraphTypes.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\RoadMap.cpp(1): error : Expected RoadMap.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\StaticMeshCollection.cpp(1): error : Expected StaticMeshCollection.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\OpenDrive\OpenDrive.cpp(1): error : Expected OpenDrive.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\OpenDrive\OpenDriveActor.cpp(1): error : Expected OpenDriveActor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\OpenDrive\OpenDriveGenerator.cpp(1): error : Expected OpenDriveGenerator.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\OpenDrive\OpenDriveMap.cpp(1): error : Expected OpenDriveMap.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorder.cpp(1): error : Expected CarlaRecorder.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderAnimVehicle.cpp(1): error : Expected CarlaRecorderAnimVehicle.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderAnimWalker.cpp(1): error : Expected CarlaRecorderAnimWalker.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderCollision.cpp(1): error : Expected CarlaRecorderCollision.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderEventAdd.cpp(1): error : Expected CarlaRecorderEventAdd.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderEventDel.cpp(1): error : Expected CarlaRecorderEventDel.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderEventParent.cpp(1): error : Expected CarlaRecorderEventParent.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderFrames.cpp(1): error : Expected CarlaRecorderFrames.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderHelpers.cpp(1): error : Expected CarlaRecorderHelpers.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderPosition.cpp(1): error : Expected CarlaRecorderPosition.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderQuery.cpp(1): error : Expected CarlaRecorderQuery.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaRecorderState.cpp(1): error : Expected CarlaRecorderState.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Recorder\CarlaReplayerHelper.cpp(1): error : Expected CarlaReplayerHelper.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\AsyncDataStream.cpp(1): error : Expected AsyncDataStream.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\CollisionSensor.cpp(1): error : Expected CollisionSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\DepthCamera.cpp(1): error : Expected DepthCamera.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\DVSCamera.cpp(1): error : Expected DVSCamera.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\GnssSensor.cpp(1): error : Expected GnssSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\InertialMeasurementUnit.cpp(1): error : Expected InertialMeasurementUnit.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\LaneInvasionSensor.cpp(1): error : Expected LaneInvasionSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ObstacleDetectionSensor.cpp(1): error : Expected ObstacleDetectionSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\PixelReader.cpp(1): error : Expected PixelReader.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\Radar.cpp(1): error : Expected Radar.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\RayCastLidar.cpp(1): error : Expected RayCastLidar.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\RayCastSemanticLidar.cpp(1): error : Expected RayCastSemanticLidar.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\RssSensor.cpp(1): error : Expected RssSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\SceneCaptureCamera.cpp(1): error : Expected SceneCaptureCamera.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\SceneCaptureSensor.cpp(1): error : Expected SceneCaptureSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\SemanticSegmentationCamera.cpp(1): error : Expected SemanticSegmentationCamera.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\Sensor.cpp(1): error : Expected Sensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\SensorFactory.cpp(1): error : Expected SensorFactory.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\ShaderBasedSensor.cpp(1): error : Expected ShaderBasedSensor.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\WorldObserver.cpp(1): error : Expected WorldObserver.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Server\CarlaServer.cpp(1): error : Expected CarlaServer.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Settings\CarlaSettings.cpp(1): error : Expected CarlaSettings.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Settings\CarlaSettingsDelegate.cpp(1): error : Expected CarlaSettingsDelegate.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Traffic\RoutePlanner.cpp(1): error : Expected RoutePlanner.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Traffic\TrafficLightBase.cpp(1): error : Expected TrafficLightBase.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Traffic\TrafficLightGroup.cpp(1): error : Expected TrafficLightGroup.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Traffic\TrafficSignBase.cpp(1): error : Expected TrafficSignBase.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Trigger\FrictionTrigger.cpp(1): error : Expected FrictionTrigger.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Trigger\TriggerFactory.cpp(1): error : Expected TriggerFactory.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\ActorAttacher.cpp(1): error : Expected ActorAttacher.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\ActorWithRandomEngine.cpp(1): error : Expected ActorWithRandomEngine.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\BoundingBoxCalculator.cpp(1): error : Expected BoundingBoxCalculator.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\DebugShapeDrawer.cpp(1): error : Expected DebugShapeDrawer.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\NavigationMesh.cpp(1): error : Expected NavigationMesh.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\ObjectRegister.cpp(1): error : Expected ObjectRegister.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\RandomEngine.cpp(1): error : Expected RandomEngine.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Util\RayTracer.cpp(1): error : Expected RayTracer.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Vehicle\CarlaWheeledVehicle.cpp(1): error : Expected CarlaWheeledVehicle.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Vehicle\VehicleVelocityControl.cpp(1): error : Expected VehicleVelocityControl.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Vehicle\WheeledVehicleAIController.cpp(1): error : Expected WheeledVehicleAIController.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Walker\WalkerController.cpp(1): error : Expected WalkerController.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Weather\Weather.cpp(1): error : Expected Weather.h to be first header included. 1>A:\Carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\CityMapGenerator.cpp(1): error : Expected CityMapGenerator.h to be first header included. 1>Creating makefile for ShaderCompileWorker (no existing makefile) 1>Building CarlaUE4Editor and ShaderCompileWorker... 1>Using Visual Studio 2017 14.16.27045 toolchain (A:\VisualStudio\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (A:\Windows Kits\10). 1>Building 15 actions with 16 processes... 1> [1/15] PCH.Carla.cpp 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(17): error C2065: “STATGROUP_CarlaSensor”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(17): error C2065: “STATCAT_Advanced”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(17): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(17): error C2440: “初始化”: 无法从“initializer list”转换为“int” 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(17): note: 初始值设定项包含过多元素 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): error C2065: “STAT_CarlaSensorReadRT”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): error C2065: “STATGROUP_CarlaSensor”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): error C2440: “初始化”: 无法从“initializer list”转换为“int” 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): note: 初始值设定项包含过多元素 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(22): error C2065: “STAT_CarlaSensorCopyText”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(22): error C2065: “STATGROUP_CarlaSensor”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(22): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(22): error C2374: “DECLARE_CYCLE_STAT”: 重定义;多次初始化 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): note: 参见“DECLARE_CYCLE_STAT”的声明 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(22): error C2440: “初始化”: 无法从“initializer list”转换为“int” 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(22): note: 初始值设定项包含过多元素 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(23): error C2065: “STAT_CarlaSensorBufferCopy”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(23): error C2065: “STATGROUP_CarlaSensor”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(23): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(23): error C2374: “DECLARE_CYCLE_STAT”: 重定义;多次初始化 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): note: 参见“DECLARE_CYCLE_STAT”的声明 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(23): error C2440: “初始化”: 无法从“initializer list”转换为“int” 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(23): note: 初始值设定项包含过多元素 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(24): error C2065: “STAT_CarlaSensorStreamSend”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(24): error C2065: “STATGROUP_CarlaSensor”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(24): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(24): error C2374: “DECLARE_CYCLE_STAT”: 重定义;多次初始化 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(21): note: 参见“DECLARE_CYCLE_STAT”的声明 1>A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(24): error C2440: “初始化”: 无法从“initializer list”转换为“int” 1> A:/Carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.h(24): note: 初始值设定项包含过多元素 1> [2/15] Module.CarlaExporter.cpp 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(175): error C2039: “TriMeshes”: 不是“UBodySetup”的成员 1> C:\Program Files\Epic Games\UE4.24\Engine\Source\Runtime\Engine\Classes\PhysicsEngine/BodySetup.h(146): note: 参见“UBodySetup”的声明 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(178): error C2065: “PxU32”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(178): error C2146: 语法错误: 缺少“;”(在标识符“nbVerts”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(178): error C2065: “nbVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(178): error C2065: “mesh”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(179): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(179): error C2143: 语法错误: 缺少“;”(在“”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(179): error C2065: “convexVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(179): error C2065: “mesh”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(180): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(180): error C2143: 语法错误: 缺少“;”(在“”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(180): error C2065: “indexBuffer”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(180): error C2059: 语法错误:“)” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2065: “PxU32”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2146: 语法错误: 缺少“;”(在标识符“j”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2143: 语法错误: 缺少“;”(在“=”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2143: 语法错误: 缺少“)”(在“=”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2059: 语法错误:“=” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2065: “j”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2065: “nbVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(183): error C2059: 语法错误:“)” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(185): error C2059: 语法错误:“const” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(186): error C2065: “v”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(202): error C2065: “mesh”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(205): error C2065: “indexBuffer”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(207): error C2065: “nbVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(211): error C2181: 没有匹配 if 的非法 else 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(214): error C2065: “Component”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(228): error C2039: “TriMeshes”: 不是“UBodySetup”的成员 1> C:\Program Files\Epic Games\UE4.24\Engine\Source\Runtime\Engine\Classes\PhysicsEngine/BodySetup.h(146): note: 参见“UBodySetup”的声明 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(231): error C2065: “PxU32”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(231): error C2146: 语法错误: 缺少“;”(在标识符“nbVerts”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(231): error C2065: “nbVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(231): error C2065: “mesh”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(232): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(232): error C2143: 语法错误: 缺少“;”(在“”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(232): error C2065: “convexVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(232): error C2065: “mesh”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(233): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(233): error C2143: 语法错误: 缺少“;”(在“”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(233): error C2065: “indexBuffer”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(233): error C2059: 语法错误:“)” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2065: “PxU32”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2146: 语法错误: 缺少“;”(在标识符“j”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2143: 语法错误: 缺少“;”(在“=”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2143: 语法错误: 缺少“)”(在“=”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2059: 语法错误:“=” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2065: “j”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2065: “nbVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(236): error C2059: 语法错误:“)” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(238): error C2059: 语法错误:“const” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(239): error C2065: “v”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2065: “PxU32”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2146: 语法错误: 缺少“;”(在标识符“i”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2143: 语法错误: 缺少“;”(在“=”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2143: 语法错误: 缺少“)”(在“=”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2059: 语法错误:“=” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2065: “i”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2065: “mesh”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(256): error C2059: 语法错误:“)” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(259): error C2065: “indexBuffer”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(259): error C2059: 语法错误:“;” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(262): error C2065: “nbVerts”: 未声明的标识符 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(153): warning C4996: 'AActor::GetComponentsByClass': Use one of the GetComponents implementations as appropriate Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. 1> C:\Program Files\Epic Games\UE4.24\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(3056): note: 参见“AActor::GetComponentsByClass”的声明 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(266): error C2059: 语法错误:“}” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(266): error C2143: 语法错误: 缺少“;”(在“}”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(267): error C2143: 语法错误: 缺少“;”(在“}”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(267): error C2059: 语法错误:“}” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(269): error C2059: 语法错误:“}” 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(269): error C2143: 语法错误: 缺少“;”(在“}”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(272): error C2143: 语法错误: 缺少“;”(在“{”的前面) 1>A:/Carla/Unreal/CarlaUE4/Plugins/CarlaExporter/Source/CarlaExporter/Private/CarlaExporter.cpp(272): error C2447: “{”: 缺少函数标题(是否是老式的形式表?) 1>A:\VisualStudio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: 命令“"C:\Program Files\Epic Games\UE4.24\Engine\Build\BatchFiles\Build.bat" -Target="CarlaUE4Editor Win64 Development -Project=\"A:\Carla\Unreal\CarlaUE4\CarlaUE4.uproject\"" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild”已退出,代码为 6。 1>已完成生成项目“CarlaUE4.vcxproj”的操作 - 失败。 ========== 生成: 成功 0 个,失败 1 个,最新 2 个,跳过 0 个 ==========

I have no idea how to fix it. I would be grateful if you can help me with it. @bernatx @marcgpuig @Axel1092 @nsubiron

winterwindwang commented 3 years ago

Any solution here? I have encountered this question as well.

randaldong commented 3 years ago

Any solution here? I have encountered this question as well.

Sorry to tell you that I’ve switched to Ubuntu 18.04 and after a little bit debugging, I succeeded in making launch on Linux. It seems that you’ll never know what kind of problems is going to happen to Windows operation system.😓

winterwindwang commented 3 years ago

Thank you for your quickly response. I solve this problem with: "Go to: HKEY_LOCAL_MACHINE\SOFTWARE\EpicGames\Unreal Engine%UE_VERSION% (replace %UE_VERSION% with 4.22) and add a new String value with Value name InstalledDirectory and Value data your path to UE_4.24 (for me it is E:\games\epic\UnrealEngine)", after I go through this(https://github.com/carla-simulator/carla/issues/1941#issuecomment-625375872) soultion.

------------------ 原始邮件 ------------------ 发件人: "Ryan @.>; 发送时间: 2021年7月12日(星期一) 下午2:53 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [carla-simulator/carla] 0.9.11, make launch failure: The system cannot find the path specified. Already defined the system variable (#4242)

Any solution here? I have encountered this question as well.

Sorry to tell you that I’ve switched to Ubuntu 18.04 and after a little bit debugging, I succeeded in making launch on Linux. It seems that you’ll never know what kind of problems is going to happen to Windows operation system.😓

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

randaldong commented 3 years ago

Thank you for your quickly response. I solve this problem with: "Go to: HKEY_LOCAL_MACHINE\SOFTWARE\EpicGames\Unreal Engine%UE_VERSION% (replace %UE_VERSION% with 4.22) and add a new String value with Value name InstalledDirectory and Value data your path to UE_4.24 (for me it is E:\games\epic\UnrealEngine)", after I go through this(#1941 (comment)) soultion. ------------------ 原始邮件 ------------------ 发件人: "Ryan @.>; 发送时间: 2021年7月12日(星期一) 下午2:53 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [carla-simulator/carla] 0.9.11, make launch failure: The system cannot find the path specified. Already defined the system variable (#4242) Any solution here? I have encountered this question as well. Sorry to tell you that I’ve switched to Ubuntu 18.04 and after a little bit debugging, I succeeded in making launch on Linux. It seems that you’ll never know what kind of problems is going to happen to Windows operation system.😓 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you very much for your solution!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.