WiserUFBA / ArduMideaWrapper

Wrapper for simulate Midea Air Conditioners
GNU General Public License v2.0
30 stars 12 forks source link

Compile error on device UNO #11

Open lqforgithub opened 3 years ago

lqforgithub commented 3 years ago

libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofirparams' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition oftimerConfigForSend(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition oftimerConfigForReceive()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsetLEDFeedback(unsigned char, bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofFeedbackLEDControl' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofenableLEDFeedback()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofdisableLEDFeedback()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsetFeedbackLED(bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofblink13(bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsetBlinkPin(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::setReceivePin(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::IRrecv()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::IRrecv()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIrReceiver' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::IRrecv(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::IRrecv(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::IRrecv(unsigned char, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::IRrecv(unsigned char, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::stop()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::end()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::disableIRIn()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::isIdle()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::resume()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::enableIRIn()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::begin(unsigned char, bool, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::start()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::start(unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::initDecodedIRData()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::available()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::initBiphaselevel(unsigned char, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsBiphaseDecodeRawbuffOffset' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsBiphaseTimeUnit' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsUsedTimingIntervals' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::compare(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::decodeHash()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::decode()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::read()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::decodeHashOld(decode_results)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofmatchTicks(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::getBiphaselevel()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofsCurrentTimingIntervals' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofMATCH(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofmatchMark(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofMATCH_MARK(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofmatchSpace(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::decodePulseWidthData(unsigned char, unsigned char, unsigned int, unsigned int, unsigned int, bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::decodePulseDistanceData(unsigned char, unsigned char, unsigned int, unsigned int, unsigned int, bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofMATCH_SPACE(unsigned int, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofgetMarkExcessMicros()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofCheckForRecordGapsMicros(Print, IRData)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::printIRResultMinimal(Print)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::printIRResultRawFormatted(Print, bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::compensateAndStoreIRResultInArray(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::printIRResultAsCVariables(Print)' "MideaIR.h" 对应多个库 已使用: /Users/linquan/Documents/Arduino/libraries/MideaIRWrapper sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here 未使用:/Users/linquan/Documents/Arduino/libraries/ArduMideaWrapper-master libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofgetProtocolString(decode_type_t)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofprintIRResultShort(Print, IRData, unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::printIRResultShort(Print)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::compensateAndPrintIRResultAsCArray(Print, bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition of__vector_8' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRrecv::decode(decode_results)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::IRsend()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::IRsend()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::IRsend(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::IRsend(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::setSendPin(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::begin(unsigned char, bool, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::begin(bool, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::write(IRData, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::mark(unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::IRLedOff()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::customDelayMicroseconds(unsigned long)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::space(unsigned int)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::sendPulseDistanceWidthData(unsigned int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned char, bool, bool)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::sendBiphaseData(unsigned int, unsigned long, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::enableIROut(unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::sendRaw(unsigned int const, unsigned char, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::sendRaw(unsigned char const, unsigned char, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::sendRaw_P(unsigned int const, unsigned char, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::sendRaw_P(unsigned char const*, unsigned char, unsigned char)' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIRsend::getPulseCorrectionNanos()' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here libraries/MideaIRWrapper/MidearIR.cpp.o (symbol from plugin): In function irparams': (.text+0x0): multiple definition ofIrSender' sketch/basic_commands.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2: error: ld returned 1 exit status exit status 1

md1024 commented 2 years ago

seeing this too. OSX 12.5.

vanshksingh commented 5 months ago

This lib only supports IRremote 2.x.x so you will have to downgrade your IRremote library to 2.5.0 or 2.0.0 for it to work

It fails to work on 2.8.1 on Attiny85 for pin 1 here atleast

Screenshot 2024-04-23 at 3 37 19 AM