microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.47k stars 4.59k forks source link

Build errors for Blocks environment on Ubuntu 20.04 #4734

Open cryptik opened 2 years ago

cryptik commented 2 years ago

Bug report

What's the issue you encountered?

I cannot load the Blocks environment into the UE4 Editor. After following the UE4 install steps, I can successfully create a game project using the blueprint feature which I did to validate that UE4 is working

Next, after install of AirSim from the main branch, I can run ./setup.sh and ./build.sh with no issues. At the end of the script, it reports that the plugin has been built and all environments in Unreal/Environments have been updated. I then launch UE4 and attempt to open the Blocks project.

After selecting the Blocks project, UE4 asks if I want to convert the project and I choose "more options" and "Convert in-place".

The system starts the generate/load process and then dumps messages like the following to the console...

[2022.11.03-23.32.28:569][580]Creating makefile for BlocksEditor (no existing makefile)
[2022.11.03-23.32.28:969][580]WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
[2022.11.03-23.32.28:969][580]WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.

The build then eventually fails resulting in the following....

------- Build details --------
Using toolchain located at '/data/tools/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v19_clang-11.0.1-centos7/x86_64-unknown-linux-gnu'.
Using clang (/data/tools/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v19_clang-11.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++) version '11.0.1' (string), 11 (major), 0 (minor), 1 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar : /data/tools/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v19_clang-11.0.1-centos7/x86_64-unknown-linux-gnu/bin/llvm-ar
Using fast way to relink  circularly dependent libraries (no FixDeps).
------------------------------
ERROR: Building would modify the following engine files:

       /data/tools/UnrealEngine/Engine/Binaries/Linux/Android/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Binaries/Linux/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/2D/Paper2D/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/AI/AISupport/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/AI/EnvironmentQueryEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Animation/LiveLink/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Blendables/LightPropagationVolume/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Cameras/CameraShakePreviewer/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Cameras/GameplayCameras/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Compression/OodleData/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Compression/OodleNetwork/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/AnimationSharing/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/CLionSourceCodeAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/CodeLiteSourceCodeAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/GitSourceControl/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/KDevelopSourceCodeAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/NullSourceCodeAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/PerforceSourceControl/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/PlasticSourceControl/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/PluginUtils/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/PropertyAccessNode/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/RiderSourceCodeAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/SubversionSourceControl/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/TextureFormatOodle/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/UObjectPlugin/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Developer/VisualStudioCodeSourceCodeAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/AssetManagerEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/ContentBrowser/ContentBrowserAssetDataSource/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/ContentBrowser/ContentBrowserClassDataSource/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/ContentBrowser/ContentBrowserFileDataSource/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/CryptoKeys/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/CurveEditorTools/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/DataValidation/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/FacialAnimation/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/GameplayTagsEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/GeometryMode/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/MaterialAnalyzer/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/MobileLauncherProfileWizard/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/PluginBrowser/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Editor/SpeedTreeImporter/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Enterprise/DatasmithContent/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Enterprise/VariantManagerContent/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/AlembicImporter/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/AutomationUtils/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/BackChannel/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/ChaosCloth/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/ChaosClothEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/ChaosEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/ChaosNiagara/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/ChaosSolverPlugin/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/CharacterAI/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/GeometryCache/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/GeometryCollectionPlugin/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/GeometryProcessing/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/MotoSynth/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/PlanarCutPlugin/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/PlatformCrypto/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/PythonScriptPlugin/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Experimental/SkeletalReduction/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/FX/Niagara/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Lumin/MagicLeapMedia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Lumin/MagicLeapPassableWorld/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/AndroidMedia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/AvfMedia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/ImgMedia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/MediaCompositing/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/MediaPlayerEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/WebMMedia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Media/WmfMedia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/MeshPainting/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Messaging/TcpMessaging/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Messaging/UdpMessaging/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/MovieScene/ActorSequence/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/MovieScene/LevelSequenceEditor/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/MovieScene/MatineeToLevelSequence/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/MovieScene/TemplateSequence/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Online/OnlineSubsystem/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Online/OnlineSubsystemNull/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Online/OnlineSubsystemUtils/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Portal/LauncherChunkInstaller/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/ActorLayerUtilities/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/AndroidDeviceProfileSelector/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/AndroidPermission/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/AppleImageUtils/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/ArchVisCharacter/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/AssetTags/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/AudioCapture/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/AudioSynesthesia/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/CableComponent/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/ChunkDownloader/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/CustomMeshComponent/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/EditableMesh/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/ExampleDeviceProfileSelector/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/GooglePAD/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/LinuxDeviceProfileSelector/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/LocationServicesBPLibrary/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/MobilePatchingUtils/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/OpenXR/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/OpenXREyeTracker/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/OpenXRHandTracking/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/PhysXVehicles/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/ProceduralMeshComponent/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/PropertyAccess/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/RuntimePhysXCooking/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/SignificanceManager/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/SoundFields/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/Synthesis/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Runtime/WebMMoviePlayer/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/Tests/ScreenshotTools/Binaries/Linux/UE4Editor.modules
       /data/tools/UnrealEngine/Engine/Plugins/VirtualProduction/Takes/Binaries/Linux/UE4Editor.modules

       Please rebuild from an IDE instead.

I have tried some of the steps I found in other issue reports in the AirSim repo to include running ./clean.sh in the Blocks project folder then copying the AirSim/Unreal/Plugins/AirSim folder to AirSim/Unreal/Environments/Blocks folder and then running the following command:

/data/tools/UnrealEngine/GenerateProjectFiles.sh /data/tools/AirSim/Unreal/Environments/Blocks/Blocks.uproject -game

This generates the following output... with similar warnings....

Attempting to set up UE4 pretty printers for gdb (existing UE4Printers.py, if any, will be overwritten)...
    updated UE4Printers.py
    found necessary entries in ~/.gdbinit file, not changing it.

Setting up Unreal Engine 4 project files...

Fixing inconsistent case in filenames.
Setting up Mono
Discovering modules, targets and source code for project...
Generating data for project indexing...   
WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
Generating data for project indexing... 100%
Discovering modules, targets and source code for project...
Generating data for project indexing...   
WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
Generating data for project indexing... 100%
Writing project files... 100%
Discovering modules, targets and source code for project...
Generating data for project indexing...   
WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
Generating data for project indexing... 100%
Discovering modules, targets and source code for project...
Generating data for project indexing...   
WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
Generating data for project indexing... 100%
Discovering modules, targets and source code for project...
Generating data for project indexing...   
WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
Generating data for project indexing... 100%
Discovering modules, targets and source code for project...
Generating data for project indexing...   
WARNING: Library 'stdc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
WARNING: Library 'supc++' was not resolvable to a file when used in Module 'AirSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
Generating data for project indexing... 100%
Writing project files... 100%

I can then run make BlocksEditor which also generates similar warnings to stdc++ and supc++ as indicated above... but the process does complete and I can open Blocks as an editor project. I am new to UE and AirSim, so I am wondering why I get the above errors and why I can't compile Blocks into a regular releasable rather than just an editor project.

Settings

How can the issue be reproduced?

1. 2.

Include full error message in text form

What's better than filing an issue? Filing a pull request :).

zhjc2014 commented 2 years ago

the same problem

HT-hlf commented 1 year ago

same problem

sandyUni commented 1 year ago

same problem

pragatwagle commented 1 year ago

I am also having this same problem and I am following the exact steps, mentioned on Build for Linux on the AirSim website.

pragatwagle commented 1 year ago

Try this: https://github.com/microsoft/AirSim/issues/4535