A case on github that the program found GitHub - shashikg/PixhawkArduinoMAVLink: Arduino Library to receive Pixhawk sensor's data.
The error keeps getting when compiling, showing Compilation error: PixhawkArduinoMAVLink.h: No such file or directory, but the .h file has been added, but it still reports an error.
Did you install the complete library or did you just copy the .h file? If the latter, where did you place the .h file?
Which error?
I have just downloaded this compressed file and ran it directly,It displays“Compilation error: PixhawkArduinoMAVLink.h: No such file or directory”
How it usually works:
- Download the ZIP.
- In the IDE, use Sketch -> Include Library -> Add .ZIP library to add the downloaded zip.
- Now compile your sketch (or the example sketch).
sorry,I have not find the zip file from the github
Click the green code button on github (the link that you provided) and use the option Download ZIP
yes I have download the zip, and add the zip into arduino, but still have the same error. Can you try it on your computer to see if it can be used,thank you!。
Will try tomorrow.
Which board are you compiling for?
arduino mega 2560 thank you.
It indeed did not compile; @evanmars gave the solution.
yes,I have made the modifications according to your prompt, but still cannot compile. Can you successfully compile it?
Show the file with the changes you made.
Did you do this also?
It seems that
PixhawkArduinoMAVLink.h
, andPixhawkArduinoMAVLink.cpp
need to be inside ofsrc
folder. All other imports need to be changed accordingly.
PixhawkArduinoMAVLink.cpp and src How to modify it
Post the full error message.
Move PixhawkArduinoMAVLink.cpp and PixhawkArduinoMAVLink.h to src and remove /src from the includes in PixhawkArduinoMAVLink.h
It compiles for me. I do get a lot of warnings, though. I don't have the hardware to test.
I have moved these two files to the src document, but they still cannot be compiled. Can you package and send me the modified folder? My email is 233381565@st.usst.edu.cn Thank you
It might be a OneDrive problem:
I have change it to D disk,and still wrong
I want to know if there was an error in my steps. First, I downloaded the entire folder from GitHub, then placed the folder on my D drive, modified the files in the src folder, and finally opened the Arduino file to compile directly. I did not download or add any additional zip library files. Is this correct.