Skip to content

M5GFX.h:298:38: error: conflicting declaration 'using EncodeRange = struct lgfx::v1::EncodeRange #144

Description

@on4ain

I receive this error at compile time. Program used to work, but I now added M5GFX library to be able to draw a circle, and now it won't compile anymore.
error message:
[{
"resource": "/home/jan/PlatformIO/Projects/AubineWerkend/M5stackCore2/.pio/libdeps/m5stack-core2/M5GFX/src/M5GFX.h",
"owner": "cpp",
"severity": 8,
"message": "conflicting declaration 'using EncodeRange = struct lgfx::v1::EncodeRange'",
"startLineNumber": 298,
"startColumn": 38,
"endLineNumber": 298,
"endColumn": 38
}]

my platform.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs =
m5stack-core2

[env]
build_type = debug
framework = arduino
lib_ldf_mode = deep
monitor_speed = 115200
lib_deps =

[espressif32_base]
platform = espressif32
build_unflags =
-Werror=reorder
board_build.partitions = min_spiffs.csv
monitor_filters = esp32_exception_decoder

[env:m5stack-core2]
extends = espressif32_base
board = m5stack-core2
build_flags =
-D M5CORE2
-D HOST="m5core2"
-D M5IIMU
-D A0=26
-D SERIAL_DEBUG_DISABLED
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
upload_port = /dev/ttyACM0
monitor_port = /dev/ttyACM0
lib_deps =
m5stack/M5Core2@^0.1.2
signalk/SensESP@^3.1.1
m5stack/M5GFX@^0.2.9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions