Closed ritsch closed 6 months ago
Thanks I just pushed a better handling of types
Thank you for the fast response, tested and the error is closed,
... but one more error is opened:
.pio/libdeps/serial-upload/OSC/OSCMessage.h: In instantiation of 'OSCMessage& OSCMessage::add(T) [with T = long int]':
src/pl_main.cpp:98:31: required from here
.pio/libdeps/serial-upload/OSC/OSCMessage.h:136:17: error: call of overloaded 'OSCData(long int&)' is ambiguous
OSCData * d = new OSCData(datum);
^~~~~~~~~~~~~~~~~~
In file included from .pio/libdeps/serial-upload/OSC/OSCMessage.h:29,
from .pio/libdeps/serial-upload/OSC_control/src/osc_control.h:40,
from .pio/libdeps/serial-upload/LEMiotLib/src/lemiot.h:21,
from src/pl_main.cpp:17:
.pio/libdeps/serial-upload/OSC/OSCData.h:113:5: note: candidate: 'OSCData::OSCData(boolean)'
OSCData (boolean);
^~~~~~~
.pio/libdeps/serial-upload/OSC/OSCData.h:109:2: note: candidate: 'OSCData::OSCData(double)'
OSCData (double);
^~~~~~~
.pio/libdeps/serial-upload/OSC/OSCData.h:108:2: note: candidate: 'OSCData::OSCData(float)'
OSCData (float);
^~~~~~~
.pio/libdeps/serial-upload/OSC/OSCData.h:107:5: note: candidate: 'OSCData::OSCData(unsigned int)'
OSCData (unsigned int);
^~~~~~~
.pio/libdeps/serial-upload/OSC/OSCData.h:103:3: note: candidate: 'OSCData::OSCData(intOSC_t)'
OSCData (intOSC_t);
^~~~~~~
.pio/libdeps/serial-upload/OSC/OSCData.h:72:5: note: candidate: 'OSCData::OSCData(char)'
OSCData(char t);
^~~~~~~
.pio/libdeps/serial-upload/OSC/OSCData.h:62:7: note: candidate: 'constexpr OSCData::OSCData(const OSCData&)'
class OSCData
^~~~~~~
Dont know if this is specific to the ESP32-C3 or also for others.
mfG Winfried
thanks. I will take a look at that one too. So many compiler variants now. Some vendors like m5stack - one of my favorites - are behind in bug fixes in esp32 dev environment.
Can you give me the Board name please? I have other esp32-c3 boards working
Use mostly olimex boards, since real open hardware: ESP32-C3-devkit-LiPo Rev.A, since there is no dedicated board in platformio, I use the compatible board in platformio.ini
:
board = esp32-c3-devkitm-1
see compile output:
...
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html
PLATFORM: Espressif 32 (6.4.0) > Espressif ESP32-C3-DevKitM-1
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-builtin) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
...
If it works with you, I can do some further investigations:
a) Switching master to OSC Version 3.5.8 it compiles.
b) it throws the error within adding a typ int32_t
argument, adding a int
argument works.
So some code is not compiling anymore, but has been compiling before change. Would prefer to use the int32_t instead of int, since it should work also for other uCs.
BTW using a uint32_t
worked with 3.5.8, but of course unsigned int
is not a OSC type, this should be corrected in my code.
I changed things recently to address various compiler differences. Now intOSC_t should work for all platforms. Sometimes this is typedefed as int32_t other times it will be int...
Thanks for the hint. There was some sloppy typedefs of int32_t
in my libs [1,2], which I cast now to intOSC_t
and now it compiles, so no error anymore.
So I think the issue is solved.
mfg winfried
[1] https://git.iem.at/uC/LEMiotLib.git [2] https://git.iem.at/uC/OSC_networking.git
Compiling within a platformio project on ESP32-C3, the master branch of CNMAT/OSC:
platformio.ini:
libdeps = https://github.com/CNMAT/OSC
loads
(OSC @ 3.5.8+sha.7912a02)
Trigger an compile error see below:
going back to version:
libdeps = https://github.com/CNMAT/OSC#3.5.8
worksSomething went wrong fixing the previous issue.
PS.: For information: used
https://github.com/CNMAT/OSC
sincelib_deps = CNMAT/OSC
throw the error:since ESP32-C3 has no bluetooth.
mfG Winfried