PX4Flow build broken

I am trying to build the PX4Flow firmware for Arducopter from the following git:

I am using the PX4 toolchain as advised in the (broken) links in the readme, but I am getting the following error:

In file included from src/main.c:49:0:

inc/utils.h: At top level:
inc/utils.h:45:6: error: conflicting types for ‘itoa’
void itoa(char *buf, unsigned int i, int base);
^~~~
In file included from /home/stephan/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/stdlib.h:11:0,
from src/main.c:38:
/home/stephan/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/stdlib.h:224:8: note: previous declaration of ‘itoa’ was here
char * _EXFUN(itoa,(int, char *, int));
^

@priseborough any hints what I am doing wrong here?
Edit: I am running the PX4 toolchain on Ubuntu 16.4. Thanks for any help!

Have you tried the klt_flow tree ?

No, I am using master. Any benefits of using the klt_flow branch?
Btw I found the error. By deleting the itoa method as described in the PR by @muramura everything works fine now.

KLT is the OF method used for ArduPilot

Thanks for the hint.
I created now a klt- based version which seems to work.
A pity that the repository is apparently not maintained anymore and the PRs and issues are not being followed up with.

1 Like