o3de / ROSConDemo

A robotic fruit picking demo project for O3DE with ROS 2 Gem
Other
63 stars 21 forks source link

SceneImportSettings.h is missing in o3de/o3de main branch and 23.10.0 Release .deb installer causing ROSConDemo project build to fail #265

Closed LB-ArturZieba closed 8 months ago

LB-ArturZieba commented 9 months ago

Describe the bug If ROSConDemo project is built on the 23.10.0 Release .deb installer (https://o3debinaries.org/download/linux.html), or using o3de/o3de main branch engine (as listed in https://github.com/o3de/ROSConDemo/blob/development/README.md#o3de), then the project build will fail due to SceneAPI/SceneCore/Import/SceneImportSettings.h file missing.

[1237/1398] Building CXX object External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o
FAILED: External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o 
/usr/bin/clang++-14 -DAZ_BUILD_CONFIGURATION_TYPE=\"profile\" -DAZ_ENABLE_DEBUG_TOOLS -DAZ_ENABLE_TRACING -DAZ_PHYSICS_DEBUG_ENABLED -DAZ_PROFILE_BUILD -DDEFAULT_LY_PYTHONHOME=\"/home/gpc-800/build/o3de/python/runtime/python-3.10.5-rev4-linux/python\" -DDEFAULT_RMW_IMPLEMENTATION=rmw_fastrtps_cpp -DEDITOR_COMMON_IMPORTS -DENABLE_NON_COMPILED_CGF -DGRAPH_CANVAS_ENABLE_DETAILED_PROFILING=0 -DIMGUI_API_IMPORT -DIMGUI_ENABLED -DIMGUI_INCLUDE_IMGUI_USER_H -DLINUX -DLINUX64 -DNDEBUG -DPAL_TRAIT_LINUX_WINDOW_MANAGER_XCB -DPHYSX_EDITOR -DPHYSX_ENABLE_MULTI_THREADING -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DRCUTILS_ENABLE_FAULT_INJECTION -DROS2_EDITOR -D_FORTIFY_SOURCE=2 -D_HAS_EXCEPTIONS=0 -D_PROFILE -D__linux__ -DCMAKE_INTDIR=\"profile\" -I/home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/External/ROS2-5d5a250d/Code/ROS2.Editor.Static_autogen/include_profile -I/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Source -I/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Source/RobotImporter -I/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Include -I/home/gpc-800/build/o3de/Code/Tools/AssetProcessor/AssetBuilderSDK/. -I/home/gpc-800/build/o3de/Code/Framework/AzFramework/. -I/home/gpc-800/build/o3de/Code/Framework/AzFramework/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzFramework/Platform/Common/Xcb -I/home/gpc-800/build/o3de/Code/Framework/AzNetworking/. -I/home/gpc-800/build/o3de/Code/Framework/AzNetworking/Platform/Common -I/home/gpc-800/build/o3de/Code/Framework/AzNetworking/Platform/Linux -I/home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/o3de/Code/Framework/AzNetworking/Azcg/Generated/AzNetworking -I/home/gpc-800/build/o3de/Code/Framework/AzToolsFramework/. -I/home/gpc-800/build/o3de/Code/Framework/AzToolsFramework/AzToolsFramework -I/home/gpc-800/build/o3de/Code/Framework/AzToolsFramework/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzQtComponents/. -I/home/gpc-800/build/o3de/Code/Framework/AzQtComponents/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzCore/. -I/home/gpc-800/build/o3de/Code/Framework/AzCore/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzCore/Platform/Common -I/home/gpc-800/build/o3de/Gems/AtomLyIntegration/CommonFeatures/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Tools/AtomToolsFramework/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Feature/Common/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Feature/Common/Code/3rdParty/ACES -I/home/gpc-800/build/o3de/Gems/Atom/RPI/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/RPI/Code/External -I/home/gpc-800/build/o3de/Code/Framework/AtomCore/. -I/home/gpc-800/build/o3de/Gems/Atom/RHI/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Utils/Code/Include -I/home/gpc-800/build/o3de/Gems/Profiler/Code/Include -I/home/gpc-800/build/o3de/Gems/ImGui/Code/../External/ImGui/v1.82 -I/home/gpc-800/build/o3de/Gems/ImGui/Code/Include -I/home/gpc-800/build/o3de/Gems/AtomLyIntegration/AtomImGuiTools/Code/Include -I/home/gpc-800/build/o3de/Gems/LmbrCentral/Code/include -I/home/gpc-800/build/o3de/Gems/AudioSystem/Code/Include/Engine -I/home/gpc-800/build/o3de/Gems/GradientSignal/Code/Include -I/home/gpc-800/build/o3de/Gems/SurfaceData/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Feature/Common/Code/Source -I/home/gpc-800/build/o3de/Gems/Atom/Asset/ImageProcessingAtom/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Bootstrap/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Component/DebugCamera/Code/Include -I/home/gpc-800/build/o3de/Gems/GraphCanvas/Code/. -I/home/gpc-800/build/o3de/Gems/GraphCanvas/Code/Source -I/home/gpc-800/build/o3de/Gems/GraphCanvas/Code/StaticLib -I/home/gpc-800/build/o3de/Gems/GraphModel/Code/Include -I/home/gpc-800/build/o3de/Code/Tools/SceneAPI/SceneCore/../.. -I/home/gpc-800/build/o3de/Code/Tools/SceneAPI/SceneData/../.. -I/home/gpc-800/build/o3de/Code/Editor/Include -I/home/gpc-800/build/o3de/Code/Editor/. -I/home/gpc-800/build/o3de/Code/Editor/.. -I/home/gpc-800/build/o3de/Code/Editor/Plugins/EditorCommon/. -I/home/gpc-800/build/o3de/Code/Legacy/CryCommon/. -I/home/gpc-800/build/o3de/Code/Legacy/CryCommon/.. -I/home/gpc-800/build/o3de/Code/Legacy/CryCommon/Platform/Linux -I/home/gpc-800/build/o3de/Gems/PhysX/Code/Include -I/home/gpc-800/build/o3de/Gems/PhysX/Code/NumericalMethods/Include -I/home/gpc-800/build/o3de/Gems/PhysX/Code/. -I/home/gpc-800/build/o3de/Gems/PhysX/Code/Source -I/home/gpc-800/build/o3de/Gems/PhysX/Code/Source/Platform/Linux -I/home/gpc-800/build/o3de/Gems/StartingPointInput/Code/Include -isystem /home/gpc-800/.o3de/3rdParty/packages/RapidJSON-1.1.0-rev1-multiplatform/RapidJSON/include -isystem /home/gpc-800/.o3de/3rdParty/packages/RapidXML-1.13-rev1-multiplatform/RapidXML/include -isystem /home/gpc-800/.o3de/3rdParty/packages/lz4-1.9.4-rev2-linux/lz4/include -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtCore -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/./mkspecs/linux-g++ -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtGui -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtGui/5.15.1 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtGui/5.15.1/QtGui -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtCore/5.15.1 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtCore/5.15.1/QtCore -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtWidgets -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtWidgets/5.15.1 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtWidgets/5.15.1/QtWidgets -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtSvg -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtXml -isystem /home/gpc-800/.o3de/3rdParty/packages/Lua-5.4.4-rev1-linux/Lua/include -isystem /home/gpc-800/.o3de/3rdParty/packages/zlib-1.2.11-rev5-linux/zlib/include -isystem /home/gpc-800/.o3de/3rdParty/packages/cityhash-1.1-multiplatform/cityhash/src -isystem /home/gpc-800/.o3de/3rdParty/packages/xxhash-0.7.4-rev1-multiplatform/xxhash/include -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include/gz/sdformat13 -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include/gz/utils2 -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include/gz/math7 -isystem /home/gpc-800/.o3de/3rdParty/packages/png-1.6.37-rev2-linux/png/include -isystem /home/gpc-800/.o3de/3rdParty/packages/tiff-4.2.0.15-rev3-linux/tiff/include -isystem /home/gpc-800/build/o3de/python/runtime/python-3.10.5-rev4-linux/python/include/python3.10 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtNetwork -isystem /home/gpc-800/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev6-linux/PhysX/shared/include -isystem /home/gpc-800/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev6-linux/PhysX/shared/include/foundation -isystem /home/gpc-800/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev6-linux/PhysX/shared/include/geometry -isystem /home/gpc-800/.o3de/3rdParty/packages/poly2tri-7f0487a-rev1-linux/poly2tri/poly2tri/include/poly2tri -isystem /home/gpc-800/.o3de/3rdParty/packages/v-hacd-2.3-1a49edf-rev1-linux/v-hacd/v-hacd/include -isystem /opt/ros/humble/include/rclcpp -isystem /opt/ros/humble/include/ament_index_cpp -isystem /opt/ros/humble/include/libstatistics_collector -isystem /opt/ros/humble/include/builtin_interfaces -isystem /opt/ros/humble/include/rosidl_runtime_c -isystem /opt/ros/humble/include/rcutils -isystem /opt/ros/humble/include/rosidl_typesupport_interface -isystem /opt/ros/humble/include/fastcdr -isystem /opt/ros/humble/include/rosidl_runtime_cpp -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_cpp -isystem /opt/ros/humble/include/rmw -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_cpp -isystem /opt/ros/humble/include/rcl -isystem /opt/ros/humble/include/rcl_interfaces -isystem /opt/ros/humble/include/rcl_logging_interface -isystem /opt/ros/humble/include/rcl_yaml_param_parser -isystem /opt/ros/humble/include/libyaml_vendor -isystem /opt/ros/humble/include/tracetools -isystem /opt/ros/humble/include/rcpputils -isystem /opt/ros/humble/include/statistics_msgs -isystem /opt/ros/humble/include/rosgraph_msgs -isystem /opt/ros/humble/include/rosidl_typesupport_cpp -isystem /opt/ros/humble/include/rosidl_typesupport_c -isystem /opt/ros/humble/include/std_msgs -isystem /opt/ros/humble/include/sensor_msgs -isystem /opt/ros/humble/include/geometry_msgs -isystem /opt/ros/humble/include/nav_msgs -isystem /opt/ros/humble/include/tf2_ros -isystem /opt/ros/humble/include/message_filters -isystem /opt/ros/humble/include/rclcpp_action -isystem /opt/ros/humble/include/action_msgs -isystem /opt/ros/humble/include/unique_identifier_msgs -isystem /opt/ros/humble/include/rcl_action -isystem /opt/ros/humble/include/tf2 -isystem /opt/ros/humble/include/tf2_msgs -isystem /opt/ros/humble/include/ackermann_msgs -isystem /opt/ros/humble/include/gazebo_msgs -isystem /opt/ros/humble/include/trajectory_msgs -isystem /opt/ros/humble/include/control_toolbox -isystem /opt/ros/humble/include/control_msgs -isystem /opt/ros/humble/include/realtime_tools -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Wno-inconsistent-missing-override -Wrange-loop-analysis -Wno-unknown-warning-option -Wno-parentheses -Wno-reorder -Wno-switch -Wno-undefined-var-template -msse4.1  -O2 -g -fstack-protector-all -fstack-check -fPIC -fexceptions -fPIC -std=c++17 -MD -MT External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o -MF External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o.d -o External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o -c /home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/Unity/unity_3_cxx.cxx
In file included from /home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/Unity/unity_3_cxx.cxx:15:
/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Source/RobotImporter/Utils/SourceAssetsStorage.cpp:28:10: fatal error: 'SceneAPI/SceneCore/Import/SceneImportSettings.h' file not found
#include <SceneAPI/SceneCore/Import/SceneImportSettings.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1249/1398] Building CXX object External/Vegetation-86dabeea/Code/CMakeFiles/Vegetation.Editor.dir/profile/Unity/unity_0_cxx.cxx.o
ninja: build stopped: subcommand failed.

It should be noted that the missing file can be found on the o3de/o3de development branch: https://github.com/o3de/o3de/tree/development/Code/Tools/SceneAPI/SceneCore/Import.

This issue should be treated as a priority/blocker, as it prevents the project from being set up on 23.10.0 Release installer, or using o3de/o3de main branch as listed in https://github.com/o3de/ROSConDemo/blob/development/README.md#o3de.

Steps to reproduce

  1. Perform ROSConDemo setup from the https://github.com/o3de/ROSConDemo/blob/development/README.md instruction.

Expected behavior ROSConDemo setup is successfully completed.

Actual behavior Build fails due to SceneAPI/SceneCore/Import/SceneImportSettings.h file missing

Full setup Terminal log

O3DEROSConDemoSetupTerminalLog.txt

Found in Branch .deb 23.10.0 Release installer (https://o3debinaries.org/download/linux.html) o3de/o3de main (0d490a2b4b5e04fd17edf4850c91f94361d4b836) o3de/o3de-extras development (9a692fd9fd4982283f0480244a42a26bf2f5993f) o3de/ROSConDemo development (cdf1fe61d01ef301cb242c31f52ec4f5ed8ce0ef)

Desktop

LB-ArturZieba commented 9 months ago

After reverifying this using the Development (fc7f51a) for the ROSConDemo project setup, the build fails with error that seems to be related to the SceneImportSettings.h:

gpc-800@GPC-800:~/O3DE/Projects/ROSConDemo/Project$ cmake --build build/linux --config profile --target ROSConDemo Editor AssetProcessor ROSConDemo.Assets
[11/159] Building CXX object External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o
FAILED: External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o 
/usr/bin/clang++-14 -DAZ_BUILD_CONFIGURATION_TYPE=\"profile\" -DAZ_ENABLE_DEBUG_TOOLS -DAZ_ENABLE_TRACING -DAZ_PHYSICS_DEBUG_ENABLED -DAZ_PROFILE_BUILD -DDEFAULT_LY_PYTHONHOME=\"/home/gpc-800/build/o3de/python/runtime/python-3.10.5-rev4-linux/python\" -DDEFAULT_RMW_IMPLEMENTATION=rmw_fastrtps_cpp -DEDITOR_COMMON_IMPORTS -DENABLE_NON_COMPILED_CGF -DGRAPH_CANVAS_ENABLE_DETAILED_PROFILING=0 -DIMGUI_API_IMPORT -DIMGUI_ENABLED -DIMGUI_INCLUDE_IMGUI_USER_H -DLINUX -DLINUX64 -DNDEBUG -DPAL_TRAIT_LINUX_WINDOW_MANAGER_XCB -DPHYSX_EDITOR -DPHYSX_ENABLE_MULTI_THREADING -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DRCUTILS_ENABLE_FAULT_INJECTION -DROS2_EDITOR -D_FORTIFY_SOURCE=2 -D_HAS_EXCEPTIONS=0 -D_PROFILE -D__linux__ -DCMAKE_INTDIR=\"profile\" -I/home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/External/ROS2-5d5a250d/Code/ROS2.Editor.Static_autogen/include_profile -I/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Source -I/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Source/RobotImporter -I/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Include -I/home/gpc-800/build/o3de/Code/Tools/AssetProcessor/AssetBuilderSDK/. -I/home/gpc-800/build/o3de/Code/Framework/AzFramework/. -I/home/gpc-800/build/o3de/Code/Framework/AzFramework/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzNetworking/. -I/home/gpc-800/build/o3de/Code/Framework/AzNetworking/Platform/Common -I/home/gpc-800/build/o3de/Code/Framework/AzNetworking/Platform/Linux -I/home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/o3de/Code/Framework/AzNetworking/Azcg/Generated/AzNetworking -I/home/gpc-800/build/o3de/Code/Framework/AzToolsFramework/. -I/home/gpc-800/build/o3de/Code/Framework/AzToolsFramework/AzToolsFramework -I/home/gpc-800/build/o3de/Code/Framework/AzToolsFramework/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzFramework/Platform/Common/Xcb -I/home/gpc-800/build/o3de/Code/Framework/AzQtComponents/. -I/home/gpc-800/build/o3de/Code/Framework/AzQtComponents/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzCore/. -I/home/gpc-800/build/o3de/Code/Framework/AzCore/Platform/Linux -I/home/gpc-800/build/o3de/Code/Framework/AzCore/Platform/Common -I/home/gpc-800/build/o3de/Gems/AtomLyIntegration/CommonFeatures/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Tools/AtomToolsFramework/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Feature/Common/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Feature/Common/Code/3rdParty/ACES -I/home/gpc-800/build/o3de/Gems/Atom/RPI/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/RPI/Code/External -I/home/gpc-800/build/o3de/Code/Framework/AtomCore/. -I/home/gpc-800/build/o3de/Gems/Atom/RHI/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Utils/Code/Include -I/home/gpc-800/build/o3de/Gems/Profiler/Code/Include -I/home/gpc-800/build/o3de/Gems/ImGui/Code/../External/ImGui/v1.82 -I/home/gpc-800/build/o3de/Gems/ImGui/Code/Include -I/home/gpc-800/build/o3de/Gems/AtomLyIntegration/AtomImGuiTools/Code/Include -I/home/gpc-800/build/o3de/Gems/LmbrCentral/Code/include -I/home/gpc-800/build/o3de/Gems/AudioSystem/Code/Include/Engine -I/home/gpc-800/build/o3de/Gems/GradientSignal/Code/Include -I/home/gpc-800/build/o3de/Gems/SurfaceData/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Feature/Common/Code/Source -I/home/gpc-800/build/o3de/Gems/Atom/Asset/ImageProcessingAtom/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Bootstrap/Code/Include -I/home/gpc-800/build/o3de/Gems/Atom/Component/DebugCamera/Code/Include -I/home/gpc-800/build/o3de/Gems/GraphCanvas/Code/. -I/home/gpc-800/build/o3de/Gems/GraphCanvas/Code/Source -I/home/gpc-800/build/o3de/Gems/GraphCanvas/Code/StaticLib -I/home/gpc-800/build/o3de/Gems/GraphModel/Code/Include -I/home/gpc-800/build/o3de/Code/Tools/SceneAPI/SceneCore/../.. -I/home/gpc-800/build/o3de/Code/Tools/SceneAPI/SceneData/../.. -I/home/gpc-800/build/o3de/Code/Editor/Include -I/home/gpc-800/build/o3de/Code/Editor/. -I/home/gpc-800/build/o3de/Code/Editor/.. -I/home/gpc-800/build/o3de/Code/Editor/Plugins/EditorCommon/. -I/home/gpc-800/build/o3de/Code/Legacy/CryCommon/. -I/home/gpc-800/build/o3de/Code/Legacy/CryCommon/.. -I/home/gpc-800/build/o3de/Code/Legacy/CryCommon/Platform/Linux -I/home/gpc-800/build/o3de/Gems/PhysX/Code/Include -I/home/gpc-800/build/o3de/Gems/PhysX/Code/NumericalMethods/Include -I/home/gpc-800/build/o3de/Gems/PhysX/Code/. -I/home/gpc-800/build/o3de/Gems/PhysX/Code/Source -I/home/gpc-800/build/o3de/Gems/PhysX/Code/Source/Platform/Linux -I/home/gpc-800/build/o3de/Gems/StartingPointInput/Code/Include -isystem /home/gpc-800/.o3de/3rdParty/packages/RapidJSON-1.1.0-rev1-multiplatform/RapidJSON/include -isystem /home/gpc-800/.o3de/3rdParty/packages/RapidXML-1.13-rev1-multiplatform/RapidXML/include -isystem /home/gpc-800/.o3de/3rdParty/packages/lz4-1.9.4-rev2-linux/lz4/include -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtCore -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/./mkspecs/linux-g++ -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtGui -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtGui/5.15.1 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtGui/5.15.1/QtGui -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtCore/5.15.1 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtCore/5.15.1/QtCore -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtWidgets -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtWidgets/5.15.1 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtWidgets/5.15.1/QtWidgets -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtSvg -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtXml -isystem /home/gpc-800/.o3de/3rdParty/packages/Lua-5.4.4-rev1-linux/Lua/include -isystem /home/gpc-800/.o3de/3rdParty/packages/zlib-1.2.11-rev5-linux/zlib/include -isystem /home/gpc-800/.o3de/3rdParty/packages/cityhash-1.1-multiplatform/cityhash/src -isystem /home/gpc-800/.o3de/3rdParty/packages/xxhash-0.7.4-rev1-multiplatform/xxhash/include -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include/gz/sdformat13 -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include/gz/utils2 -isystem /home/gpc-800/.o3de/3rdParty/packages/sdformat-13.5.0-rev2-linux/sdformat/include/gz/math7 -isystem /home/gpc-800/.o3de/3rdParty/packages/png-1.6.37-rev2-linux/png/include -isystem /home/gpc-800/.o3de/3rdParty/packages/tiff-4.2.0.15-rev3-linux/tiff/include -isystem /home/gpc-800/build/o3de/python/runtime/python-3.10.5-rev4-linux/python/include/python3.10 -isystem /home/gpc-800/.o3de/3rdParty/packages/qt-5.15.2-rev9-linux/qt/include/QtNetwork -isystem /home/gpc-800/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev6-linux/PhysX/shared/include -isystem /home/gpc-800/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev6-linux/PhysX/shared/include/foundation -isystem /home/gpc-800/.o3de/3rdParty/packages/PhysX-4.1.2.29882248-rev6-linux/PhysX/shared/include/geometry -isystem /home/gpc-800/.o3de/3rdParty/packages/poly2tri-7f0487a-rev1-linux/poly2tri/poly2tri/include/poly2tri -isystem /home/gpc-800/.o3de/3rdParty/packages/v-hacd-2.3-1a49edf-rev1-linux/v-hacd/v-hacd/include -isystem /opt/ros/humble/include/rclcpp -isystem /opt/ros/humble/include/ament_index_cpp -isystem /opt/ros/humble/include/libstatistics_collector -isystem /opt/ros/humble/include/builtin_interfaces -isystem /opt/ros/humble/include/rosidl_runtime_c -isystem /opt/ros/humble/include/rcutils -isystem /opt/ros/humble/include/rosidl_typesupport_interface -isystem /opt/ros/humble/include/fastcdr -isystem /opt/ros/humble/include/rosidl_runtime_cpp -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_cpp -isystem /opt/ros/humble/include/rmw -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_cpp -isystem /opt/ros/humble/include/rcl -isystem /opt/ros/humble/include/rcl_interfaces -isystem /opt/ros/humble/include/rcl_logging_interface -isystem /opt/ros/humble/include/rcl_yaml_param_parser -isystem /opt/ros/humble/include/libyaml_vendor -isystem /opt/ros/humble/include/tracetools -isystem /opt/ros/humble/include/rcpputils -isystem /opt/ros/humble/include/statistics_msgs -isystem /opt/ros/humble/include/rosgraph_msgs -isystem /opt/ros/humble/include/rosidl_typesupport_cpp -isystem /opt/ros/humble/include/rosidl_typesupport_c -isystem /opt/ros/humble/include/std_msgs -isystem /opt/ros/humble/include/sensor_msgs -isystem /opt/ros/humble/include/geometry_msgs -isystem /opt/ros/humble/include/nav_msgs -isystem /opt/ros/humble/include/tf2_ros -isystem /opt/ros/humble/include/message_filters -isystem /opt/ros/humble/include/rclcpp_action -isystem /opt/ros/humble/include/action_msgs -isystem /opt/ros/humble/include/unique_identifier_msgs -isystem /opt/ros/humble/include/rcl_action -isystem /opt/ros/humble/include/tf2 -isystem /opt/ros/humble/include/tf2_msgs -isystem /opt/ros/humble/include/ackermann_msgs -isystem /opt/ros/humble/include/gazebo_msgs -isystem /opt/ros/humble/include/trajectory_msgs -isystem /opt/ros/humble/include/control_toolbox -isystem /opt/ros/humble/include/control_msgs -isystem /opt/ros/humble/include/realtime_tools -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Wno-inconsistent-missing-override -Wrange-loop-analysis -Wno-unknown-warning-option -Wno-parentheses -Wno-reorder -Wno-switch -Wno-undefined-var-template -msse4.1  -O2 -g -fstack-protector-all -fstack-check -fPIC -fexceptions -fPIC -std=c++17 -MD -MT External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o -MF External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o.d -o External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/profile/Unity/unity_3_cxx.cxx.o -c /home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/Unity/unity_3_cxx.cxx
In file included from /home/gpc-800/O3DE/Projects/ROSConDemo/Project/build/linux/External/ROS2-5d5a250d/Code/CMakeFiles/ROS2.Editor.Static.dir/Unity/unity_3_cxx.cxx:15:
/home/gpc-800/O3DE/o3de-extras/Gems/ROS2/Code/Source/RobotImporter/Utils/SourceAssetsStorage.cpp:548:49: error: use of undeclared identifier 'importSettings'
        sceneDataImportGroup->SetImportSettings(importSettings);
                                                ^
1 error generated.
[15/159] Building CXX object External/ScriptCanvas-6bd70b39/Code/CMakeFiles/ScriptCanvas.Static.dir/profile/Unity/unity_14_cxx.cxx.o
ninja: build stopped: subcommand failed.
jhanca-robotecai commented 9 months ago

The problem is generated by the misalignment in your configuration. File #include <SceneAPI/SceneCore/Import/SceneImportSettings.h> was added in development of o3de and did not make it to the last release. It is already used by the code in the development branch of o3de-extras. It should built correctly with the main branches selected for both.

LB-ArturZieba commented 8 months ago

I was able to successfully build and launch the ROSConDemo project on a Main (0d490a2) build Source engine. It should be noted that I did not download o3de-extras in this setup, as all of the ROS2-related Gems were downloaded via Project Manager beforehand. If this is sufficient, this issue can be closed, if not, please let me know if I should set it up completely from the ground up.

jhanca-robotecai commented 8 months ago

I am happy you successfully built and launched the demo. Thanks for checking!

I believe the issue can be closed now, as it describes the error related to SceneImportSettings.h, which is explained by the difference in your source code branches. We might reopen it or open another one if needed.

LB-ArturZieba commented 8 months ago

Closing the issue as per the above comment.