okalachev / flix

Making an ESP32-based quadcopter from scratch
https://t.me/opensourcequadcopter
314 stars 43 forks source link

make simulator. No targets specified and no makefile found. Stop. #4

Closed lejkaxdd closed 7 months ago

lejkaxdd commented 7 months ago

Trying to do make simulator and got error

make -C gazebo/build make[1]: Entering directory '/home/uganda/Desktop/flix/gazebo/build' make[1]: No targets specified and no makefile found. Stop. make[1]: Leaving directory '/home/uganda/Desktop/flix/gazebo/build' make: [Makefile:28: build_simulator] Error 2

okalachev commented 7 months ago

Hi! You should cd into the cloned flix directory and do make simulator. Did you do that or some other commands?

Also, there are instructions on building and running the sim: https://github.com/okalachev/flix/blob/master/docs/build.md#simulation.

lejkaxdd commented 7 months ago

Hi!

I solved the problem, I had to install MAVLink, and correctly connect the library in the mavlink.ino file https://mavlink.io/en/mavgen_c/

okalachev commented 7 months ago

Well, actually MAVLink should be installed when you did make simulator via Arduino library (https://github.com/okalachev/mavlink-arduino), but if it works, then ok.