hello, im newbie of PX4/ros2. i just followed Notion – The all-in-one workspace for your notes, tasks, wikis, and databases., and when i execute make px4_sitl gz_x500, i saw the error like:
CMake Error at src/modules/simulation/gz_bridge/CMakeLists.txt:126 (add_custom_target):
add_custom_target cannot create target “gz_x500_aruco” because another
target with the same name already exists. The existing target is a custom
target created in source directory
“/home/rkdwhddud/PX4-Autopilot/src/modules/simulation/gz_bridge”. See
documentation for policy CMP0002 for more details.
-----------------…repeated CMake error blabla…-----------------
CMake Error at src/modules/simulation/gz_bridge/CMakeLists.txt:126 (add_custom_target):
add_custom_target cannot create target “gz_omnicopter_aruco” because
another target with the same name already exists. The existing target is a
custom target created in source directory
“/home/rkdwhddud/PX4-Autopilot/src/modules/simulation/gz_bridge”. See
documentation for policy CMP0002 for more details.
– Found Java: /usr/bin/java (found version “11.0.24”)
– ROMFS: ROMFS/px4fmu_common
Architecture: amd64
==> CPACK_INSTALL_PREFIX = @DEB_INSTALL_PREFIX@
– Configuring incomplete, errors occurred!
See also “/home/rkdwhddud/PX4-Autopilot/build/px4_sitl_default/CMakeFiles/CMakeOutput.log”.
Error: /home/rkdwhddud/PX4-Autopilot/build/px4_sitl_default is not a directory
make: *** [Makefile:232: px4_sitl] Error 1
i also tried
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
bash ./PX4-Autopilot/Tools/setup/ubuntu.sh
cd PX4-Autopilot/
make px4_sitl
but i saw same error.
i tried to find this error almost 6 hours, but i could’t do anything. please somebody save me.