You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To solve a reference to 'JPEG_DIV_NONE' is ambiguous and reference to 'jpeg_div_t' is ambiguous. errors, I changed the following file:
In file: libraries/M5Core2/src/M5Display.h,
from line 13:
typedef enum {
JPEG_DIV_NN, // name changed. Original JPEG_DIV_NONE
JPEG_DIV_2,
JPEG_DIV_4,
JPEG_DIV_8,
JPEG_DIV_MAX
} jpeg_div_disp_t; // name changed. Original jpeg_div_t
I had to change both name definitions 'JPEG_DIV_NONE' and 'jpeg_div_t'.
Then, in file: libraries/M5Core2/src/M5Display.cpp,
a) Line 233:
jpeg_div_disp_t scale; // name changed by @PaulskPt. original jpeg_div_t resulted in an error: reference to 'jpeg_div_t' is ambiguous. I had to change both the names
Using a M5Stack Core2 device.
To solve a
reference to 'JPEG_DIV_NONE' is ambiguous
andreference to 'jpeg_div_t' is ambiguous.
errors, I changed the following file:In file: libraries/M5Core2/src/M5Display.h,
from line 13:
I had to change both name definitions 'JPEG_DIV_NONE' and 'jpeg_div_t'.
Then, in file: libraries/M5Core2/src/M5Display.cpp,
a) Line 233:
b) Lines 370-372:
c) Lines 402-404:
After these changes these errors did not repeat, but a
class Button
redefined error.To solve performed the following change:
// Following if...else...endif block added because of error redefinition of 'class Button' (
a) in class M5Stack Button.h;
b) in Core2 M5Button.h)
Finally I did the following change:
After these changes this example built OK
The text was updated successfully, but these errors were encountered: