carla-simulator / carla

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

make osmrender in windows 10. Error 1 #6927

Open saitejeswar1 opened 6 months ago

saitejeswar1 commented 6 months ago

CARLA version: 0.9.15 Platform/OS: Windows 10 Problem you have experienced: The system cannot find the file specified. make: *** [osmrenderer] Error 1 What you expected to happen: Steps to reproduce: followed this documentation https://carla.readthedocs.io/en/latest/adv_digital_twin/
Other information (documentation you consulted, workarounds you tried): When I encountered an error in make PythonAPI I followed this thread #6898

Could someone help me with this? I want to make use of the digital twin tool to create a scene to simulate AD as a part of my studies.

Here is the full log

C:\carla>make osmrenderer Cloning into 'C:\carla\Build\libosmscout-source'... remote: Enumerating objects: 77948, done. remote: Counting objects: 100% (4287/4287), done. remote: Compressing objects: 100% (1568/1568), done. remote: Total 77948 (delta 2735), reused 4154 (delta 2686), pack-reused 73661 Receiving objects: 100% (77948/77948), 80.57 MiB | 2.42 MiB/s, done. Resolving deltas: 100% (53415/53415), done. Updating files: 100% (1763/1763), done. -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045. -- The C compiler identification is MSVC 19.29.30153.0 -- The CXX compiler identification is MSVC 19.29.30153.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for dlfcn.h -- Looking for dlfcn.h - not found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for strings.h -- Looking for strings.h - not found -- Looking for string.h -- Looking for string.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/time.h -- Looking for sys/time.h - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for unistd.h -- Looking for unistd.h - not found -- Looking for C++ include codecvt -- Looking for C++ include codecvt - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of int16_t -- Check size of int16_t - done -- Check size of int32_t -- Check size of int32_t - done -- Check size of int64_t -- Check size of int64_t - done -- Check size of int8_t -- Check size of int8_t - done -- Check size of long long -- Check size of long long - done -- Check size of uint16_t -- Check size of uint16_t - done -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of uint8_t -- Check size of uint8_t - done -- Check size of unsigned long long -- Check size of unsigned long long - done -- Check size of wchar_t -- Check size of wchar_t - done -- Looking for fseeko -- Looking for fseeko - not found -- Looking for mmap -- Looking for mmap - not found -- Looking for posix_fadvise -- Looking for posix_fadvise - not found -- Looking for posix_madvise -- Looking for posix_madvise - not found -- Looking for mallinfo -- Looking for mallinfo - not found -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find Marisa (missing: MARISA_INCLUDE_DIRS MARISA_LIBRARIES) CMake Warning at cmake/features.cmake:196 (message): No iconv support Call Stack (most recent call first): CMakeLists.txt:74 (include)

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- glm NOT found -- Try loading Qt5 (implicitly preferred version)... -- Qt5 NOT found -- Try loading Qt6 (implicitly preferred version)... -- Qt6 NOT found CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to find_package_handle_standard_args (Matlab) does not match the name of the calling package (MATLAB). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.28/Modules/FindMatlab.cmake:2027 (find_package_handle_standard_args) cmake/features.cmake:360 (find_package) CMakeLists.txt:74 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Matlab: D:/MATLAB/R2023b/extern/include (found version "23.2.0.2391609") found components: MX_LIBRARY -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Direct2D_INCLUDE_DIRS: C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um -- Direct2D_D2D1_LIBRARY: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x64/d2d1.lib -- Direct2D_DWRITE_LIBRARY: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x64/dwrite.lib -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE -- Checking for 64-bit off_t -- Checking for 64-bit off_t - not present -- Checking for _fseeki64/_ftelli64 -- Checking for _fseeki64/_ftelli64 - present -- Checking for fseeko/ftello -- Checking for fseeko/ftello - not found -- Large File support - not found Template dir: osmscout/lib Template dir: osmscoutmapdirectx Template dir: osmscoutmapsvg

-- libosmscout 1.1.1 build configuration: -- Shared libraries: ON

-- Dependencies: -- - glm: FALSE -- - glfw: FALSE -- - harfbuzz: FALSE -- - Iconv: FALSE -- - LibLZMA: FALSE -- - LibXml2: FALSE -- - protobuf: FALSE -- - ZLIB: FALSE

-- Qt5 libraries (0): -- - Core: -- - Svg: -- - Gui: -- - Widgets: -- - Qml: -- - Quick: -- - Network: -- - Location: -- - Multimedia: -- - Positioning: -- - LinguistTools:

-- Qt6 libraries (0): -- - Core: -- - Core5Compat: -- - Svg: -- - Gui: -- - Widgets: -- - Qml: -- - Quick: -- - Network: -- - Location: -- - Multimedia: -- - Positioning: -- - LinguistTools:

-- Using Qt in version: -- Qt map dependencies found: -- Qt client dependencies found:

-- core library: ON -- - marisa support: FALSE

-- import library: ON -- - C++17 parallel execution: 0

-- gpx library: ON

-- map drawing interface: ON -- - Agg map drawing backend: OFF -- - Cairo map drawing backend: OFF -- - OpenGL map drawing backend: OFF -- - DirectX map drawing backend: ON -- - Qt map drawing backend: OFF -- - SVG map drawing backend: ON -- - OS X/iOS map drawing backend: OFF -- - GDI+ map drawing backend: ON

-- client libraries: -- - Qt client library: OFF

-- tools: -- - Import/Import: ON -- - Import/BasemapImport: ON -- - DumpData: ON -- - OSMScout2: OFF -- - OSMScoutOpenGL: OFF -- - StyleEditor: OFF

-- tests: OFF

-- demos: OFF -- - heap profiler (Gperftools) OFF

-- bindings: -- - Java binding: -- - C# binding:

-- external interfaces: -- - MATLAB mex function: ON

-- doxygen: NO -- documentation: OFF -- webpage: OFF -- Configuring done (42.8s) -- Generating done (0.2s) -- Build files have been written to: C:/carla/Build/libosmscout-visualstudio Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

1>Checking Build System Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout/CMakeLists.txt Logger.cpp LoggerImpl.cpp File.cpp FileScanner.cpp FileWriter.cpp NumericIndex.cpp AsyncWorker.cpp Breaker.cpp Thread.cpp Worker.cpp WorkQueue.cpp AccessFeature.cpp AccessRestrictedFeature.cpp AddressFeature.cpp AdminLevelFeature.cpp BridgeFeature.cpp BuildingFeature.cpp ClockwiseDirectionFeature.cpp ColorFeature.cpp ConstructionYearFeature.cpp DestinationFeature.cpp EleFeature.cpp EmbankmentFeature.cpp FromToFeature.cpp GradeFeature.cpp IsInFeature.cpp LanesFeature.cpp LayerFeature.cpp LocationFeature.cpp MaxSpeedFeature.cpp NameFeature.cpp NameAltFeature.cpp NameShortFeature.cpp NetworkFeature.cpp OpeningHoursFeature.cpp OperatorFeature.cpp PhoneFeature.cpp PostalCodeFeature.cpp RefFeature.cpp RoundaboutFeature.cpp SidewayFeature.cpp TunnelFeature.cpp WebsiteFeature.cpp WidthFeature.cpp Agents.cpp ArrivalEstimateAgent.cpp BearingAgent.cpp DataAgent.cpp PositionAgent.cpp RouteStateAgent.cpp RouteInstructionAgent.cpp SpeedAgent.cpp Engine.cpp VoiceInstructionAgent.cpp LaneAgent.cpp Parser.cpp Scanner.cpp Earth.cpp MercatorProjection.cpp Projection.cpp TileProjection.cpp RouteData.cpp RouteDescription.cpp RouteNode.cpp RouteNodeDataFile.cpp RoutePostprocessor.cpp RoutingDB.cpp RoutingProfile.cpp RoutingService.cpp AbstractRoutingService.cpp SimpleRoutingService.cpp MultiDBRoutingService.cpp TurnRestriction.cpp MultiDBRoutingState.cpp RouteDescriptionPostprocessor.cpp RouteDataFile.cpp SSEMath.cpp Bearing.cpp Cache.cpp Color.cpp Distance.cpp Exception.cpp HTMLWriter.cpp LaneTurn.cpp Locale.cpp GeoBox.cpp Geometry.cpp Magnification.cpp MemoryMonitor.cpp NodeUseMap.cpp Number.cpp NumberSet.cpp OpeningHours.cpp Parsing.cpp PolygonCenter.cpp Progress.cpp ScreenBox.cpp StopClock.cpp String.cpp StringMatcher.cpp Tiling.cpp TileId.cpp Transformation.cpp utf8helper.cpp utf8helper_charmap.cpp SunriseSunset.cpp TagErrorReporter.cpp AreaDataFile.cpp AreaAreaIndex.cpp AreaIndex.cpp AreaNodeIndex.cpp AreaRouteIndex.cpp AreaWayIndex.cpp CoordDataFile.cpp CoverageIndex.cpp BoundingBoxDataFile.cpp TypeDistributionDataFile.cpp Database.cpp DebugDatabase.cpp BasemapDatabase.cpp LocationIndex.cpp NodeDataFile.cpp OptimizeAreasLowZoom.cpp OptimizeWaysLowZoom.cpp PTRouteDataFile.cpp ObjectVariantDataFile.cpp WaterIndex.cpp WayDataFile.cpp Location.cpp LocationService.cpp LocationDescriptionService.cpp POIService.cpp SRTM.cpp Area.cpp GeoCoord.cpp GroundTile.cpp Intersection.cpp Node.cpp ObjectRef.cpp Path.cpp Pixel.cpp Point.cpp PublicTransport.cpp Route.cpp Tag.cpp TypeConfig.cpp TypeFeature.cpp TypeInfoSet.cpp FeatureReader.cpp OSMScoutTypes.cpp Way.cpp CmdLineParsing.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout/Release/osmscout.lib and object C:/carla/Buil d/libosmscout-visualstudio/libosmscout/Release/osmscout.exp OSMScout.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout\Release\osmscout.dll Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-import/CMakeLists.txt AreaIndexGenerator.cpp GenAreaAreaIndex.cpp GenAreaNodeIndex.cpp GenAreaWayIndex.cpp GenCoordDat.cpp GenCoverageIndex.cpp GenIntersectionIndex.cpp GenLocationIndex.cpp GenMergeAreas.cpp GenNodeDat.cpp GenNumericIndex.cpp GenOptimizeAreasLowZoom.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\numeric(34,1): warning C4267: '=': conversion from 'size_t' to '_Ty', possible loss of data [C:\carla\Build\libosmscout-visualstudio\libosmsco ut-import\OSMScoutImport.vcxproj] with [ _Ty=int ] (compiling source file C:\carla\Build\libosmscout-source\libosmscout-import\src\osmscoutimport\GenMergeArea s.cpp) C:\carla\Build\libosmscout-source\libosmscout-import\src\osmscoutimport\GenMergeAreas.cpp(825): message : see reference to function template instantiation '_Ty std::accumulate<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<osms cout::AreaMergeJob>>>,int,osmscout::MergeAreasGenerator::Import::>(const _InIt ,const _InIt,_Ty,_Fn)' being compiled [C:\carla\Build\libosmscout-visualstudio\libosmscout-import\OSMScoutImport.vcxpro j] with [ _Ty=int, _InIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types>>, _Fn=osmscout::MergeAreasGenerator::Import:: ] GenOptimizeAreaWayIds.cpp GenOptimizeWaysLowZoom.cpp GenRawNodeIndex.cpp GenRawRelIndex.cpp GenAreaRouteIndex.cpp GenRawWayIndex.cpp GenRelAreaDat.cpp GenPTRouteDat.cpp GenRouteDat.cpp GenRoute2Dat.cpp GenTypeDat.cpp GenWaterIndex.cpp GenWayAreaDat.cpp GenWayWayDat.cpp Import.cpp ImportErrorReporter.cpp ImportModule.cpp ImportParameter.cpp ImportProgress.cpp MergeAreaData.cpp Preprocess.cpp Preprocessor.cpp PreprocessPoly.cpp RawCoastline.cpp RawCoord.cpp RawNode.cpp RawRelation.cpp C:\carla\Build\libosmscout-source\libosmscout-import\include\osmscoutimport/PreprocessPBF.h(38,12): fatal error C1083: Cannot open include file: 'osmscoutimport/pbf/fileformat.pb.h': No such file or directory (compiling source file C:\car la\Build\libosmscout-source\libosmscout-import\src\osmscoutimport\Preprocess.cpp) [C:\carla\Build\libosmscout-visualstu dio\libosmscout-import\OSMScoutImport.vcxproj] RawRelIndexedDataFile.cpp RawWay.cpp RawWayIndexedDataFile.cpp ShapeFileScanner.cpp WaterIndexProcessor.cpp SortDat.cpp SortNodeDat.cpp SortWayDat.cpp Building Custom Rule C:/carla/Build/libosmscout-source/DumpData/CMakeLists.txt DumpData.cpp DumpData.vcxproj -> C:\carla\Build\libosmscout-visualstudio\DumpData\Release\DumpData.exe Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-map/CMakeLists.txt Parser.cpp Scanner.cpp LabelLayouter.cpp MapPainter.cpp MapPainterStatistics.cpp MapParameter.cpp MapData.cpp MapService.cpp LabelProvider.cpp LabelPath.cpp Styles.cpp StyleDescription.cpp StyleConfig.cpp StyleProcessor.cpp DataTileCache.cpp MapTileCache.cpp MapPainterNoOp.cpp SymbolRenderer.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout-map/Release/osmscout_map.lib and object C:/ca rla/Build/libosmscout-visualstudio/libosmscout-map/Release/osmscout_map.exp OSMScoutMap.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout-map\Release\osmscout_map.dll Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-client/CMakeLists.txt DBInstance.cpp MapDirectory.cpp MapManager.cpp MapProvider.cpp OnlineTileProvider.cpp Settings.cpp VoiceProvider.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout-client/Release/osmscout_client.lib and object C:/carla/Build/libosmscout-visualstudio/libosmscout-client/Release/osmscout_client.exp OSMScoutClient.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout-client\Release\osmscout_client.dll Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-gpx/CMakeLists.txt GpxFile.cpp Track.cpp TrackSegment.cpp Utils.cpp Extensions.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout-gpx/Release/osmscout_gpx.lib and object C:/ca rla/Build/libosmscout-visualstudio/libosmscout-gpx/Release/osmscout_gpx.exp OSMScoutGPX.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout-gpx\Release\osmscout_gpx.dll Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-map-directx/CMakeLists.txt MapPainterDirectX.cpp PathTextRenderer.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout-map-directx/Release/osmscout_map_directx.lib and object C:/carla/Build/libosmscout-visualstudio/libosmscout-map-directx/Release/osmscout_map_directx.exp OSMScoutMapDirectX.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout-map-directx\Release\osmscout_map_di rectx.dll Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-map-gdi/CMakeLists.txt MapPainterGDI.cpp MapPainterGDIWindow.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout-map-gdi/Release/osmscout_map_gdi.lib and obje ct C:/carla/Build/libosmscout-visualstudio/libosmscout-map-gdi/Release/osmscout_map_gdi.exp OSMScoutMapGDI.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout-map-gdi\Release\osmscout_map_gdi.dll Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-map-svg/CMakeLists.txt MapPainterSVG.cpp Creating library C:/carla/Build/libosmscout-visualstudio/libosmscout-map-svg/Release/osmscout_map_svg.lib and obje ct C:/carla/Build/libosmscout-visualstudio/libosmscout-map-svg/Release/osmscout_map_svg.exp OSMScoutMapSVG.vcxproj -> C:\carla\Build\libosmscout-visualstudio\libosmscout-map-svg\Release\osmscout_map_svg.dll Building Custom Rule C:/carla/Build/libosmscout-source/PublicTransportMap/CMakeLists.txt PublicTransportMap.cpp PublicTransportMap.vcxproj -> C:\carla\Build\libosmscout-visualstudio\PublicTransportMap\Release\PublicTransportMap.e xe Building Custom Rule C:/carla/Build/libosmscout-source/libosmscout-extern/CMakeLists.txt libosmscoutmx.cpp C:\carla\Build\libosmscout-source\libosmscout-extern\src\matlab\libosmscoutmx.cpp(34,10): fatal error C1083: Cannot ope n include file: 'osmscout/database/Database.h': No such file or directory [C:\carla\Build\libosmscout-visualstudio\libo smscout-extern\osmscoutmx.vcxproj] Cloning into 'C:\carla\Build\lunasvg-source'... remote: Enumerating objects: 2441, done. remote: Counting objects: 100% (703/703), done. remote: Compressing objects: 100% (143/143), done. remote: Total 2441 (delta 600), reused 561 (delta 560), pack-reused 1738 Receiving objects: 100% (2441/2441), 1.52 MiB | 1.54 MiB/s, done. Resolving deltas: 100% (1600/1600), done. CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045. -- The CXX compiler identification is MSVC 19.29.30153.0 -- The C compiler identification is MSVC 19.29.30153.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Configuring done (3.9s) -- Generating done (0.1s) -- Build files have been written to: C:/carla/Build/lunasvg-visualstudio Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

1>Checking Build System Building Custom Rule C:/carla/Build/lunasvg-source/CMakeLists.txt lunasvg.cpp element.cpp property.cpp parser.cpp layoutcontext.cpp canvas.cpp clippathelement.cpp defselement.cpp gelement.cpp geometryelement.cpp graphicselement.cpp maskelement.cpp markerelement.cpp paintelement.cpp stopelement.cpp styledelement.cpp styleelement.cpp svgelement.cpp symbolelement.cpp useelement.cpp Generating Code... plutovg.c plutovg-paint.c plutovg-geometry.c plutovg-blend.c plutovg-rle.c plutovg-dash.c plutovg-ft-raster.c C:\carla\Build\lunasvg-source\3rdparty\plutovg\plutovg-ft-raster.c(1620,60): warning C4267: 'function': conversion from 'size_t' to 'long', possible loss of data [C:\carla\Build\lunasvg-visualstudio\lunasvg.vcxproj] C:\carla\Build\lunasvg-source\3rdparty\plutovg\plutovg-ft-raster.c(1627,59): warning C4267: 'function': conversion from 'size_t' to 'long', possible loss of data [C:\carla\Build\lunasvg-visualstudio\lunasvg.vcxproj] plutovg-ft-stroker.c plutovg-ft-math.c Generating Code... lunasvg.vcxproj -> C:\carla\Build\lunasvg-visualstudio\Release\lunasvg.lib Building Custom Rule C:/carla/Build/lunasvg-source/CMakeLists.txt 1> -- Install configuration: "Release" -- Installing: C:/carla/osm-world-renderer/ThirdParties/include/lunasvg.h -- Installing: C:/carla/osm-world-renderer/ThirdParties/lib/lunasvg.lib -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045. -- The C compiler identification is MSVC 19.29.30153.0 -- The CXX compiler identification is MSVC 19.29.30153.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (3.9s) -- Generating done (0.0s) -- Build files have been written to: C:/carla/Build/osm-world-renderer-visualstudio Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

1>Checking Build System Building Custom Rule C:/carla/osm-world-renderer/CMakeLists.txt OsmRenderer.cpp Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:

joppium commented 6 months ago

I'm in the same boat as you. I'm trying to use the Digital Twin Tool on Windows to procedurally generate a 3D environment based on an OSM map.

I'm pretty sure that the make osmrenderer command is only available on Linux. On Windows, we must use the URL of the OpenStreetMap directly. However, I'm unable to open the OSM browser in Windows since I don't have the folder CarlaToolsContent/OnroadMapGenerator in the Content browser of the Carla UE4Editor (only a Content/Carla folder).

Through Carla's Digital Twin Tool documentation, it appears that this functionality is available on both Linux and Windows, or did I misinterpret?

Any insight on this will be appreciated. Thanks!

domajstorovic commented 6 months ago

I'm in the same boat as you. I'm trying to use the Digital Twin Tool on Windows to procedurally generate a 3D environment based on an OSM map.

I'm pretty sure that the make osmrenderer command is only available on Linux. On Windows, we must use the URL of the OpenStreetMap directly. However, I'm unable to open the OSM browser in Windows since I don't have the folder CarlaToolsContent/OnroadMapGenerator in the Content browser of the Carla UE4Editor (only a Content/Carla folder).

Through Carla's Digital Twin Tool documentation, it appears that this functionality is available on both Linux and Windows, or did I misinterpret?

Any insight on this will be appreciated. Thanks!

I am not using Windows, but have you enabled plugins and checked "Show Plugin Content"? Screenshot from 2023-11-21 13-21-44

joppium commented 6 months ago

Thanks @domajstorovic! That was it!

saitejeswar1 commented 6 months ago

Thanks @domajstorovic. @joppium were you able to proceed further with the scene creation? I am getting errors when I load osm file. Somehow I am not able to upload the picture of error as well in this thread :( I have tried using the URL method as well and it says Map load failed and immediately UE also crashes.

joppium commented 6 months ago

@saitejeswar1 same here. I'm getting the following error when using the OSM URL: Assertion failed: Pair != nullptr [File:C:\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers/Map.h] [Line: 621]

saitejeswar1 commented 6 months ago

These are the errors I got.

  1. It pops up when I use URL and then crashes Untitled picture
  2. It comes up when I use osm file and click on config image
unmanned-harry commented 6 months ago

@saitejeswar1 same here. I'm getting the following error when using the OSM URL: Assertion failed: Pair != nullptr [File:C:\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers/Map.h] [Line: 621]

I have the same identical error on windows build, any ideas?

filipthoen2 commented 6 months ago

I filled in the URL (https://www.openstreetmap.org/export#map=16/37.3949/-122.0241) & put 'filip.map' in the 'File Name:' field:

This will cause the following error:

Map load failed. The filename '/Game/CustomMaps/filip.map/filip.map' is not within the game or engine content folders found in 'D:/UnrealEngine/'.

However, I do see a 'filip' folder being written to:

\carla\Unreal\CarlaUE4\Content\CustomMaps The folder is empty however. Browsing through '\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\OpenDriveToMap.cpp' it seems like you can't specify a file extension for the 'File Name' field. I tried just 'filip' for the field (no file extension) and now the plug-in starts to render the map. It crashes with the error below but it does generate the following output tree: \carla\Unreal\CarlaUE4\Content\CustomMaps |-> Filip |-> OpenDrive |- filip.osm |- filip.umap |- filip_Tile_0_0.umap It does seem to download the .osm file from the URL I specified (though it seems pretty short). Hope this helps -- will try some other options, Filip Crash Report: ----------------- KERNELBASE VCRUNTIME140 UE4Editor_CarlaTools!NILoader::load() UE4Editor_CarlaTools!osm2odr::ConvertOSMToOpenDRIVE() UE4Editor_CarlaTools!UCustomFileDownloader::ConvertOSMInOpenDrive() [D:\users\filip\carla_0.9.15\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\Online\CustomFileDownloader.cpp:41] UE4Editor_CarlaTools!UOpenDriveToMap::ConvertOSMInOpenDrive() [D:\users\filip\carla_0.9.15\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\OpenDriveToMap.cpp:142] UE4Editor_CarlaTools!TBaseUObjectMethodDelegateInstance<0,UOpenDriveToMap,void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611] UE4Editor_CarlaTools!FHttpDownloader::RequestComplete() [D:\users\filip\carla_0.9.15\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\Online\CustomFileDownloader.cpp:127] UE4Editor_CarlaTools!TBaseRawMethodDelegateInstance<0,FHttpDownloader,void __cdecl(TSharedPtr,TSharedPtr,bool),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:467] UE4Editor_HTTP!TDelegate,TSharedPtr,bool),FDefaultDelegateUserPolicy>::ExecuteIfBound() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:599] UE4Editor_HTTP!FCurlHttpRequest::FinishedRequest() [D:\UnrealEngine\Engine\Source\Runtime\Online\HTTP\Private\Curl\CurlHttp.cpp:1274] UE4Editor_HTTP!FHttpManager::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Online\HTTP\Private\HttpManager.cpp:255] UE4Editor_Core!FTicker::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Containers\Ticker.cpp:95] UE4Editor_Core!::operator()() [D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Containers\BackgroundableTicker.cpp:24] UE4Editor_Core!TBaseFunctorDelegateInstance >::Execute() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:831] UE4Editor_Core!FTicker::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Containers\Ticker.cpp:95] UE4Editor!FEngineLoop::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5045] UE4Editor!GuardedMain() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\Launch.cpp:169] UE4Editor!GuardedMainWrapper() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137] UE4Editor!WinMain() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268] UE4Editor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] kernel32 ntdll
maumai-Yubeen commented 6 months ago

I have the same problem in Windows 11 build, it seems like a common error with the new feature digital twin @bernatx @Axel1092 image Version 0.9.15 in Windows 11, Assertion failed: Pair != nullptr [File:C:\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers/Map.h] [Line: 621]

josyulavt commented 4 months ago

I filled in the URL (https://www.openstreetmap.org/export#map=16/37.3949/-122.0241) & put 'filip.map' in the 'File Name:' field:

This will cause the following error:

Map load failed. The filename '/Game/CustomMaps/filip.map/filip.map' is not within the game or engine content folders found in 'D:/UnrealEngine/'.

However, I do see a 'filip' folder being written to:

\carla\Unreal\CarlaUE4\Content\CustomMaps The folder is empty however. Browsing through '\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\OpenDriveToMap.cpp' it seems like you can't specify a file extension for the 'File Name' field. I tried just 'filip' for the field (no file extension) and now the plug-in starts to render the map. It crashes with the error below but it does generate the following output tree: \carla\Unreal\CarlaUE4\Content\CustomMaps |-> Filip |-> OpenDrive |- filip.osm |- filip.umap |- filip_Tile_0_0.umap It does seem to download the .osm file from the URL I specified (though it seems pretty short). Hope this helps -- will try some other options, Filip ## Crash Report: KERNELBASE VCRUNTIME140 UE4Editor_CarlaTools!NILoader::load() UE4Editor_CarlaTools!osm2odr::ConvertOSMToOpenDRIVE() UE4Editor_CarlaTools!UCustomFileDownloader::ConvertOSMInOpenDrive() [D:\users\filip\carla_0.9.15\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\Online\CustomFileDownloader.cpp:41] UE4Editor_CarlaTools!UOpenDriveToMap::ConvertOSMInOpenDrive() [D:\users\filip\carla_0.9.15\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\OpenDriveToMap.cpp:142] UE4Editor_CarlaTools!TBaseUObjectMethodDelegateInstance<0,UOpenDriveToMap,void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611] UE4Editor_CarlaTools!FHttpDownloader::RequestComplete() [D:\users\filip\carla_0.9.15\carla\Unreal\CarlaUE4\Plugins\CarlaTools\Source\CarlaTools\Private\Online\CustomFileDownloader.cpp:127] UE4Editor_CarlaTools!TBaseRawMethodDelegateInstance<0,FHttpDownloader,void __cdecl(TSharedPtr,TSharedPtr,bool),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:467] UE4Editor_HTTP!TDelegate,TSharedPtr,bool),FDefaultDelegateUserPolicy>::ExecuteIfBound() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:599] UE4Editor_HTTP!FCurlHttpRequest::FinishedRequest() [D:\UnrealEngine\Engine\Source\Runtime\Online\HTTP\Private\Curl\CurlHttp.cpp:1274] UE4Editor_HTTP!FHttpManager::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Online\HTTP\Private\HttpManager.cpp:255] UE4Editor_Core!FTicker::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Containers\Ticker.cpp:95] UE4Editor_Core!::operator()() [D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Containers\BackgroundableTicker.cpp:24] UE4Editor_Core!TBaseFunctorDelegateInstance >::Execute() [D:\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:831] UE4Editor_Core!FTicker::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Containers\Ticker.cpp:95] UE4Editor!FEngineLoop::Tick() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5045] UE4Editor!GuardedMain() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\Launch.cpp:169] UE4Editor!GuardedMainWrapper() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137] UE4Editor!WinMain() [D:\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268] UE4Editor!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] kernel32 ntdll

Did you resolve this error ?

This is what I get

EpicAccountId:

Caught signal 6 Aborted

libc.so.6!gsignal(+0xcb)
libc.so.6!abort(+0x12a)
libUE4Editor-InputCore.so!abort_message()
libUE4Editor-InputCore.so!demangling_terminate_handler()()
libUE4Editor-InputCore.so!std::__terminate(void (*)())()
libUE4Editor-InputCore.so!__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)()
libUE4Editor-InputCore.so!__cxa_throw(+0x6e)
libUE4Editor-CarlaTools.so!NILoader::load(OptionsCont&)(+0xc78)
libUE4Editor-CarlaTools.so!osm2odr::ConvertOSMToOpenDRIVE(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, osm2odr::OSM2ODRSettings)(+0x1ecc)
libUE4Editor-CarlaTools.so!UCustomFileDownloader::ConvertOSMInOpenDrive(FString, float, float) [/home/jkrishna/carla/Unreal/CarlaUE4/Plugins/CarlaTools/Source/CarlaTools/Private/Online/CustomFileDownloader.cpp:41]
libUE4Editor-CarlaTools.so!UOpenDriveToMap::ConvertOSMInOpenDrive() [/home/jkrishna/carla/Unreal/CarlaUE4/Plugins/CarlaTools/Source/CarlaTools/Private/OpenDriveToMap.cpp:141]
libUE4Editor-CarlaTools.so!TBaseUObjectMethodDelegateInstance<false, UOpenDriveToMap, void (), FDefaultDelegateUserPolicy>::ExecuteIfSafe() const [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:609]
libUE4Editor-CarlaTools.so!FHttpDownloader::RequestComplete(TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool) [/home/jkrishna/carla/Unreal/CarlaUE4/Plugins/CarlaTools/Source/CarlaTools/Private/Online/CustomFileDownloader.cpp:126]
libUE4Editor-CarlaTools.so!decltype(auto) UE4Tuple_Private::TTupleBase<TIntegerSequence<unsigned int> >::ApplyAfter<void (FHttpDownloader::* const&)(TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool), FHttpDownloader*&, TSharedPtr<IHttpRequest, (ESPMode)1>&, TSharedPtr<IHttpResponse, (ESPMode)1>&, bool&>(void (FHttpDownloader::* const&&&)(TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool), FHttpDownloader*&&&, TSharedPtr<IHttpRequest, (ESPMode)1>&&&, TSharedPtr<IHttpResponse, (ESPMode)1>&&&, bool&&&) const [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Public/Templates/Tuple.h:299]
libUE4Editor-CarlaTools.so!TBaseRawMethodDelegateInstance<false, FHttpDownloader, void (TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool), FDefaultDelegateUserPolicy>::ExecuteIfSafe(TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool) const [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:467]
libUE4Editor-HTTP.so!bool TDelegate<void (TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool), FDefaultDelegateUserPolicy>::ExecuteIfBound<void, (void*)0>(TSharedPtr<IHttpRequest, (ESPMode)1>, TSharedPtr<IHttpResponse, (ESPMode)1>, bool) const [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl:599]
libUE4Editor-HTTP.so!FCurlHttpRequest::FinishedRequest() [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Online/HTTP/Private/Curl/CurlHttp.cpp:1274]
libUE4Editor-HTTP.so!FHttpManager::Tick(float) [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Online/HTTP/Private/HttpManager.cpp:254]
libUE4Editor-Core.so!FTicker::Tick(float) [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Private/Containers/Ticker.cpp:92]
libUE4Editor-Core.so!UE4Function_Private::TFunctionRefCaller<FBackgroundableTicker::FBackgroundableTicker()::$_18, bool (float)>::Call(void*, float&) [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Public/Templates/Function.h:539]
libUE4Editor-Core.so!TBaseFunctorDelegateInstance<bool (float), FDefaultDelegateUserPolicy, TFunction<bool (float)> >::Execute(float) const [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:830]
libUE4Editor-Core.so!FTicker::Tick(float) [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Core/Private/Containers/Ticker.cpp:92]
UE4Editor!FEngineLoop::Tick() [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp:5044]
UE4Editor!GuardedMain(char16_t const*) [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Launch/Private/Launch.cpp:171]
libUE4Editor-UnixCommonStartup.so!CommonUnixMain(int, char**, int (*)(char16_t const*), void (*)()) [/home/jkrishna/UnrealEngine_4.26/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:264]
libc.so.6!__libc_start_main(+0xf2)
UE4Editor!_start()
juanrodriguezdekra commented 3 months ago

Hello! I am encountering the same error when using the digital twin tool. Have you managed to find any type of solution?

josyulavt commented 3 months ago

Hello! I am encountering the same error when using the digital twin tool. Have you managed to find any type of solution?

Some people have succeeded to do this by eliminating the buildings from the map more information here https://github.com/carla-simulator/carla/issues/6913

muety commented 3 months ago

@saitejeswar1 same here. I'm getting the following error when using the OSM URL: Assertion failed: Pair != nullptr [File:C:\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers/Map.h] [Line: 621]

Same issue here. Any ideas how to work around that?

Blyron commented 2 weeks ago

We have fixed this in latest dev branch, please try it

samynjonas commented 1 day ago

When I try run the tool with a link it seems to crash for me, the error message I receive is the following: Assertion failed!

Program: ...CarlaTools\Binaries\Win64\UE4Editor-CarlaTools.dll File: ...\carla...\Geomtry.cpp Line: 37

Expression: _length > 0.0

The link I tried to use is the following: https://overpass-api.de/api/map?bbox=3.7074,51.0355,3.7185,51.0413

Blyron commented 1 day ago

It seems like our translator of osm2odr have not created a valid road in that section... We need to improve that but we are not gonna be able to fix this in short term. We need to improve it I apologize