Trying to get an ESP32 working with a simple menu (only) and having compilation errors. I've upgraded to the latest Designer, tcMenu 2.1.0. Familiar with using this under Arduino, first time with ESP32.
I get the following errors at compilation:
sketch/tcMenuLiquidCrystal.cpp: In member function 'virtual void LiquidCrystalRenderer::drawMenuItem(tcgfx::GridPositionRowCacheEntry*, tcgfx::Coord, tcgfx::Coord, bool)':
tcMenuLiquidCrystal.cpp:119:46: error: no matching function for call to 'min(int, uint8_t&
'
buffer[min(areaSize.x + 1, bufferSize)] = 0;
^
In file included from /Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/algorithm:62:0,
from /Users/steve/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32/Arduino.h:142,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/PlatformDetermination.h:33,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/IoAbstraction.h:17,
from /Users/steve/Documents/Arduino/libraries/tcMenu/src/tcMenu.h:9,
from sketch/tcMenuLiquidCrystal.h:20,
from sketch/tcMenuLiquidCrystal.cpp:15:
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: candidate: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: template argument deduction/substitution failed:
sketch/tcMenuLiquidCrystal.cpp:119:46: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
buffer[min(areaSize.x + 1, bufferSize)] = 0;
^
In file included from /Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/algorithm:62:0,
from /Users/steve/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32/Arduino.h:142,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/PlatformDetermination.h:33,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/IoAbstraction.h:17,
from /Users/steve/Documents/Arduino/libraries/tcMenu/src/tcMenu.h:9,
from sketch/tcMenuLiquidCrystal.h:20,
from sketch/tcMenuLiquidCrystal.cpp:15:
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:3445:5: note: candidate: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>
min(initializer_list<_Tp> __l)
^
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:3445:5: note: template argument deduction/substitution failed:
sketch/tcMenuLiquidCrystal.cpp:119:46: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
buffer[min(areaSize.x + 1, bufferSize)] = 0;
^
In file included from /Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/algorithm:61:0,
from /Users/steve/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32/Arduino.h:142,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/PlatformDetermination.h:33,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/IoAbstraction.h:17,
from /Users/steve/Documents/Arduino/libraries/tcMenu/src/tcMenu.h:9,
from sketch/tcMenuLiquidCrystal.h:20,
from sketch/tcMenuLiquidCrystal.cpp:15:
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
sketch/tcMenuLiquidCrystal.cpp:119:46: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'uint8_t {aka unsigned char}')
buffer[min(areaSize.x + 1, bufferSize)] = 0;
^
In file included from /Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/algorithm:61:0,
from /Users/steve/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32/Arduino.h:142,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/PlatformDetermination.h:33,
from /Users/steve/Documents/Arduino/libraries/IoAbstraction/src/IoAbstraction.h:17,
from /Users/steve/Documents/Arduino/libraries/tcMenu/src/tcMenu.h:9,
from sketch/tcMenuLiquidCrystal.h:20,
from sketch/tcMenuLiquidCrystal.cpp:15:
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&
min(const _Tp& __a, const _Tp& __b)
^
/Users/steve/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
sketch/tcMenuLiquidCrystal.cpp:119:46: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'uint8_t {aka unsigned char}')
buffer[min(areaSize.x + 1, bufferSize)] = 0;
^
exit status 1
no matching function for call to 'min(int, uint8_t&
'