r45635 / HVAC-IR-Control

Ir Send - Updated for HVAC Mitsubishi & Panasonic IR
GNU General Public License v3.0
246 stars 89 forks source link

Probleme avec HVACdemo #6

Open tetiti20 opened 8 years ago

tetiti20 commented 8 years ago

Bonjour,

Je voulais tester le HVACdemo sur ma mitsubishi, malheureusement impossible de compiler. Quelqu'un peut-il m'aider? J'ai arduino IDE à jour 1.6.7. J'ai ces erreurs: `Arduino : 1.6.7 (Windows 10), Carte : "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"

Les options de compilation ont été modifiées, tout sera recompilé libraries\IRLib\IRremote2.cpp.o:(.bss.irparams+0x0): multiple definition of `irparams'

libraries\IRLib\IRLib.cpp.o:(.bss.irparams+0x0): first defined here

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: Warning: size of symbol `irparams' changed from 209 in libraries\IRLib\IRLib.cpp.o to 206 in libraries\IRLib\IRremote2.cpp.o

libraries\IRLib\IRremote2.cpp.o: In function `IRsend::space(int)':

D:\Mes documents\Arduino\libraries\IRLib/IRremote2.cpp:231: multiple definition of `IRrecv::enableIRIn()'

libraries\IRLib\IRLib.cpp.o:D:\Mes documents\Arduino\libraries\IRLib/IRLib.cpp:346: first defined here

libraries\IRLib\IRremote2.cpp.o: In function `IRsend::space(int)':

D:\Mes documents\Arduino\libraries\IRLib/IRremote2.cpp:231: multiple definition of `__vector_7'

libraries\IRLib\IRLib.cpp.o:D:\Mes documents\Arduino\libraries\IRLib/IRLib.cpp:346: first defined here

libraries\IRLib\IRremote2.cpp.o: In function `IRsend::space(int)':

D:\Mes documents\Arduino\libraries\IRLib/IRremote2.cpp:231: multiple definition of `IRrecv::resume()'

libraries\IRLib\IRLib.cpp.o:D:\Mes documents\Arduino\libraries\IRLib/IRLib.cpp:346: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1 Erreur lors de la compilation.

Ce rapport contiendrait plus d'informations si l'option "Montrer les informations de sortie pendant la compilation" était activée dans Fichier > Préférences. `

janvikalra commented 8 years ago

Hello, I am experiencing the exact same problem! For anyone that doesn't speak French and couldn't read the post above, essentially when we try to compile the HVACDemo on an Arduino Uno the following errors come up, not allowing us to use the code. Are we doing something wrong or does the code itself have a bug in it?

Error Message Arduino: 1.6.6 (Mac OS X), Board: "Arduino/Genuino Uno"

In file included from sketch/IRremote2.cpp:24:0: sketch/IRremoteInt2.h:153:0: warning: "HVAC_MISTUBISHI_ZERO_SPACE" redefined [enabled by default]

define HVAC_MISTUBISHI_ZERO_SPACE 472

^ sketch/IRremoteInt2.h:143:0: note: this is the location of the previous definition

define HVAC_MISTUBISHI_ZERO_SPACE 420

^ sketch/IRremote2.cpp:663:28: warning: ISO C99 requires whitespace after the macro name [enabled by default]

define HVAC_TOSHIBA_DEBUG; // Un comment to access DEBUG information through Serial Interface

                        ^

IRremote2.cpp:654: error: expected unqualified-id before 'void' void sendHvacToshiba( ^ IRremote2.cpp:654: error: expected constructor, destructor, or type conversion before 'void' exit status 1 expected unqualified-id before 'void'