Closed sosko71 closed 1 year ago
Hello @sosko71
It looks like you don't gave the Mavlink library in your library folder in Arduino. You must go here: https://github.com/mavlink/c_library_v2 and clone or download the entire library, and copy it to your Arduino library folder
Hello @zs6buj
All required libraries are installed. here is complete error mesage
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:39:1: error: 'MAVLINK_HELPER' does not name a type
MAVLINK_HELPER void mavlink_quaternion_to_dcm(const float quaternion[4], float dcm[3][3])
^~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:39:1: note: the macro 'MAVLINK_HELPER' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:7:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/protocol.h:74: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:69:1: error: 'MAVLINK_HELPER' does not name a type
MAVLINK_HELPER void mavlink_dcm_to_euler(const float dcm[3][3], float roll, float pitch, float* yaw)
^~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:69:1: note: the macro 'MAVLINK_HELPER' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:7:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/protocol.h:74: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:103:1: error: 'MAVLINK_HELPER' does not name a type
MAVLINK_HELPER void mavlink_quaternion_to_euler(const float quaternion[4], float roll, float pitch, float* yaw)
^~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:103:1: note: the macro 'MAVLINK_HELPER' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:7:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/protocol.h:74: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:119:1: error: 'MAVLINK_HELPER' does not name a type
MAVLINK_HELPER void mavlink_euler_to_quaternion(float roll, float pitch, float yaw, float quaternion[4])
^~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:119:1: note: the macro 'MAVLINK_HELPER' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:7:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/protocol.h:74: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:147:1: error: 'MAVLINK_HELPER' does not name a type
MAVLINK_HELPER void mavlink_dcm_to_quaternion(const float dcm[3][3], float quaternion[4])
^~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:147:1: note: the macro 'MAVLINK_HELPER' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:7:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/protocol.h:74: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:190:1: error: 'MAVLINK_HELPER' does not name a type
MAVLINK_HELPER void mavlink_euler_to_dcm(float roll, float pitch, float yaw, float dcm[3][3])
^~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_conversions.h:190:1: note: the macro 'MAVLINK_HELPER' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:7:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/protocol.h:74: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:4:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h: In function 'uint16_t mavlink_finalize_message_buffer(mavlink_message_t, uint8_t, uint8_t, mavlink_status_t, uint8_t, uint8_t, uint8_t)':
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:239:16: error: 'MAVLINK_STX' was not declared in this scope
msg->magic = MAVLINK_STX;
^~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:239:16: note: the macro 'MAVLINK_STX' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:135:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/ardupilotmega/mavlink.h:12: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:4:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h: In function 'const mavlink_msg_entry_t* mavlink_get_msg_entry(uint32_t)':
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:520:60: error: 'MAVLINK_MESSAGE_CRCS' was not declared in this scope
static const mavlink_msg_entry_t mavlink_message_crcs[] = MAVLINK_MESSAGE_CRCS;
^~~~~~~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:520:60: note: the macro 'MAVLINK_MESSAGE_CRCS' had not yet been defined
In file included from c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/ardupilotmega/mavlink.h:32,
from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:135:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/ardupilotmega/ardupilotmega.h:26: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:4:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h: In function 'uint8_t mavlink_frame_char_buffer(mavlink_message_t, mavlink_status_t, uint8_t, mavlink_message_t, mavlink_status_t)':
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:603:12: error: 'MAVLINK_STX' was not declared in this scope
if (c == MAVLINK_STX)
^~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:603:12: note: the macro 'MAVLINK_STX' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:135:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/ardupilotmega/mavlink.h:12: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:4:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h: In function 'uint8_t mavlink_parse_char(uint8_t, uint8_t, mavlink_message_t, mavlink_status_t)':
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:1001:15: error: 'MAVLINK_STX' was not declared in this scope
if (c == MAVLINK_STX)
^~~
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/mavlink_helpers.h:1001:15: note: the macro 'MAVLINK_STX' had not yet been defined
In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:135:
c:\Users\Silvo\Desktop\AntTrack\libraries\c_library_v2-master/ardupilotmega/mavlink.h:12: note: it was later defined here
In file included from C:\Users\Silvo\Desktop\AntTrack\config.h:569,
from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:134:
c:\Users\Silvo\Desktop\AntTrack\libraries\Wire\src/Wire.h: At global scope:
c:\Users\Silvo\Desktop\AntTrack\libraries\Wire\src/Wire.h:44:5: error: 'i2c_t' does not name a type; did you mean 'ino_t'?
i2c_t i2c;
^~~~~
ino_t
c:\Users\Silvo\Desktop\AntTrack\libraries\Wire\src/Wire.h:64:5: error: 'i2c_err_t' does not name a type; did you mean 'esp_err_t'?
i2c_err_t last_error; // @stickBreaker from esp32-hal-i2c.h
^~~~~
esp_err_t
c:\Users\Silvo\Desktop\AntTrack\libraries\Wire\src/Wire.h:87:5: error: 'i2c_err_t' does not name a type; did you mean 'esp_err_t'?
i2c_err_t writeTransmission(uint16_t address, uint8_t buff, uint16_t size, bool sendStop=true);
^~~~~
esp_err_t
c:\Users\Silvo\Desktop\AntTrack\libraries\Wire\src/Wire.h:88:5: error: 'i2c_err_t' does not name a type; did you mean 'esp_err_t'?
i2c_err_t readTransmission(uint16_t address, uint8_t buff, uint16_t size, bool sendStop=true, uint32_t readCount=NULL);
^~~~~
esp_err_t
Multiple libraries were found for "EEPROM.h"
Used: C:\Users\Silvo\Desktop\AntTrack\libraries\EEPROM
Not used: C:\Users\Silvo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\EEPROM
Multiple libraries were found for "Wire.h"
Used: C:\Users\Silvo\Desktop\AntTrack\libraries\Wire
Not used: C:\Users\Silvo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\Wire
Multiple libraries were found for "SPI.h"
Used: C:\Users\Silvo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\SPI
Not used: C:\Users\Silvo\Desktop\AntTrack\libraries\SPI
exit status 1
Compilation error: 'MAVLINK_HELPER' does not name a type
@Silvo, this is rather confusing. I wish I could help.
"In file included from C:\Users\Silvo\Desktop\AntTrack\AntTrack.ino:2:"
There is no include in line 2, so I'm assuming line 125 or 128.
Have you changed the code, or removed the comments? Are you library files in the arduino folder, then in the "libraries" folder?
Hi I dont know what is wrong, but I managed to compile on another PC and it is working. Thank you for your help
compile error.txt Hi I have problem with compiling code for my LILYGO T-DISPLAY