I wrote a new application in folder src/examples/my_simple_app. The codes are copied from official website. I add the path into some cmake file, but it cannot be compiled. The problem doesn’t happen when i am using predefined path like px4_simple_app, though.
What’s the correct way to write applications of my own? Anybody has a better tutorial for that?
I have a very similar problem just that i do have the CMakeLists.txt file for my specific module, the error that i have when i try to build it is:
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
ninja: build stopped: subcommand failed.
Makefile:161: recipe for target ‘px4fmu-v2_default’ failed
make: *** [px4fmu-v2_default] Error 1