PX4-Autopilot: Fork of the PX4 repository is not building
Hi everyone,
I have a simple problem. When i clone the px4 repository and run make px4_sitl gazebo-classic
everything is working fine.
However, when I first fork the repository and then clone and run make px4_sitl gazebo-classic
the codebase is no longer building.
The error I am getting is the following:
Error: /src/PX4-Autopilot-Fork/build/px4_sitl_default is not a directory
And in specific, the error begins with:
CMake Error at CMakeLists.txt:129 (list):
list index: 1 out of range (-1, 0)
To reproduce this bug, you can build using the px4io/px4-dev-ros2-foxy:latest docker container.
Thanks in advance for the guidance on this issue.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (15 by maintainers)
Looks like this is present when the fork is of main (without any tags). I was able to get around it by going to my repo and running:
git tag v1.14.0-dev
From there, build went fine.Right, or you need to add upstream and fetch the tags, e.g.