Hi All,
I’ve made a fork of px4 Firmware repository and sitl_gazebo repository. I’ve repointed the sitl_gazebo in Firmware respository to my fork. When I try to build after this change I get an error. I’d like to know how to do this correctly to avoid the error.
$make px4_sitl gazebo_xe4t
[5/561] Generating git version header
FAILED: src/lib/version/build_git_version.h
cd /home/albert/gitgkk/Firmware && /usr/bin/python3 /home/albert/gitgkk/Firmware/src/lib/version/px_update_git_header.py /home/albert/gitgkk/Firmware/build/px4_sitl_default/src/lib/version/build_git_version.h --validate
Traceback (most recent call last):
File “/home/albert/gitgkk/Firmware/src/lib/version/px_update_git_header.py”, line 41, in
stderr=subprocess.STDOUT).decode(‘utf-8’).strip()
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘git’, ‘describe’, ‘–always’, ‘–tags’, ‘–dirty’]’ returned non-zero exit status 128.
[7/561] Building C object platforms/common/work_queue/CMakeFiles/work_queue.dir/sq_remfirst.c.o
ninja: build stopped: subcommand failed.
Makefile:205: recipe for target ‘px4_sitl’ failed
Thanks,
Kashyap