Closed judepereira closed 3 years ago
Hi, I’m already notified that cJSON is part of ESP32 library 1.0.5, issued recently
This is not a problem for previous version 1.0.4, which I’m using, therefore I need properly adapt, until that you can use 1.0.4
From: Jude Pereira notifications@github.com Sent: Sunday, February 28, 2021 10:41 PM To: Yurik72/ESPHap ESPHap@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Yurik72/ESPHap] ESP32 and cJSON compile/linking errors (#65)
It appears that ESPHap bundles cJSON as well as the ESP32 framework. When I compile my project, I see many errors (included just 2 here, since they're the same):
.pio/build/local_32/libb41/ESPHap/cJSON.c.o:cJSON.c:(.text.cJSON_ReplaceItemInObject+0x0): first defined here
/Users/jude/.platformio/packages/framework-arduinoespressif32/tools/sdk/lib/libjson.a(cJSON.o): In function cJSON_ReplaceItemInObjectCaseSensitive': cJSON.c:(.text.cJSON_ReplaceItemInObjectCaseSensitive+0x0): multiple definition of
cJSON_ReplaceItemInObjectCaseSensitive'
.pio/build/local_32/libb41/ESPHap/cJSON.c.o:cJSON.c:(.text.cJSON_ReplaceItemInObjectCaseSensitive+0x0): first defined here
Is this a well known issue?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Yurik72/ESPHap/issues/65 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDREXNGTQEA6IS5ZN3NSTDTBKS6TANCNFSM4YLNSTGA . https://github.com/notifications/beacon/AKDREXPYUO6YG2XQOTY7NNLTBKS6TA5CNFSM4YLNSTGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MGGK7FA.gif
Oh, I see. Thanks! I'll downgrade the lib for now.
Downgrading works for now. Thanks!
It appears that ESPHap bundles cJSON as well as the ESP32 framework. When I compile my project, I see many errors (included just 2 here, since they're the same):
Is this a well known issue?