Partage
  • Partager sur Facebook
  • Partager sur Twitter

Erreur de compilation sous Arduino Uno

A cause des librairies?

Sujet résolu
23 juillet 2017 à 20:29:42

Bonjour!

Dès que j'inclue la bibliothèque <LiquidCrystal.h> dans l'IDE, il y a une erreur de compilation avec le message suivant:

Arduino : 1.8.3 (Windows 7), Carte : "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mercuryS11\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10803 -build-path C:\Users\MERCUR~1\AppData\Local\Temp\arduino_build_807881 -warnings=none -build-cache C:\Users\MERCUR~1\AppData\Local\Temp\arduino_cache_162409 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\mercuryS11\Documents\Arduino\thermo_lcd\thermo_lcd.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mercuryS11\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10803 -build-path C:\Users\MERCUR~1\AppData\Local\Temp\arduino_build_807881 -warnings=none -build-cache C:\Users\MERCUR~1\AppData\Local\Temp\arduino_cache_162409 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\mercuryS11\Documents\Arduino\thermo_lcd\thermo_lcd.ino
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\MERCUR~1\AppData\Local\Temp\arduino_build_807881\sketch\thermo_lcd.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\MERCUR~1\AppData\Local\Temp\arduino_build_807881\sketch\thermo_lcd.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal\FastIO.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal" "C:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp" -o "C:\Users\MERCUR~1\AppData\Local\Temp\arduino_build_807881\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:35:26: fatal error: ../Wire/Wire.h: No such file or directory

 #include <../Wire/Wire.h>

                          ^

compilation terminated.

Plusieurs bibliothèque trouvées pour "LiquidCrystal.h"
Utilisé : C:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal
Non utilisé : C:\Program Files (x86)\Arduino\libraries\LiquidCrystal
Utilisation de la bibliothèque LiquidCrystal prise dans le dossier : C:\Users\mercuryS11\Documents\Arduino\libraries\LiquidCrystal (legacy)
exit status 1
Erreur de compilation pour la carte Arduino/Genuino Uno

Quelqu'un a une solution? Merci d'avance.

  • Partager sur Facebook
  • Partager sur Twitter
1 août 2017 à 18:31:11

As-tu essayé de réinstaller la bibliothèque ?
  • Partager sur Facebook
  • Partager sur Twitter
HAHA !
1 août 2017 à 22:36:26

J'ai désinstallé et réinstallé le logiciel, rien n'y fait.
  • Partager sur Facebook
  • Partager sur Twitter
15 août 2017 à 10:57:43

Quelqu'un a une autre solution ?
  • Partager sur Facebook
  • Partager sur Twitter
15 août 2017 à 13:30:13

Supprime manuellement les librairies,  dans le dossier documents/arduino/library.
  • Partager sur Facebook
  • Partager sur Twitter
30 août 2017 à 20:54:45

Ca y est! J'ai installé une vielle librairie, elle marche. Merci pour votre aide.
  • Partager sur Facebook
  • Partager sur Twitter
10 octobre 2017 à 19:47:22

Dès la vérification du code, j'ai des erreurs avec avec l'exemple 'bareMinimum' ou 'Blink

téléchargé IDE 1.8.4 because j'avais ces problèmes avec l'ancienne (erreur sur avr-g++.exe), j'ai installé à partir du zip windows

Exception 0xc0000090 0x0 0x0 0xf2712
PC=0xf2712

syscall.Syscall12(0x759b103d, 0xa, 0x126121b0, 0x125fa480, 0x0, 0x0, 0x1, 0x400, 0x125df500, 0x0, ...)
    /home/jenkins/go/src/runtime/syscall_windows.go:196 +0x4a
syscall.CreateProcess(0x126121b0, 0x125fa480, 0x0, 0x0, 0x1, 0x400, 0x125df500, 0x0, 0x122c1328, 0x122c12d4, ...)
    /home/jenkins/go/src/syscall/zsyscall_windows.go:583 +0x112
syscall.StartProcess(0x125db2c0, 0x43, 0x12569ea0, 0x1b, 0x1c, 0x122c13e0, 0x0, 0x0, 0x0, 0x0)
    /home/jenkins/go/src/syscall/exec_windows.go:326 +0x722
os.startProcess(0x125db2c0, 0x43, 0x12569ea0, 0x1b, 0x1c, 0x122c1514, 0x1254fd40, 0x0, 0x0)
    /home/jenkins/go/src/os/exec_posix.go:45 +0x293
os.StartProcess(0x125db2c0, 0x43, 0x12569ea0, 0x1b, 0x1c, 0x122c1514, 0x0, 0x0, 0x0)
    /home/jenkins/go/src/os/doc.go:28 +0x53
os/exec.(*Cmd).Start(0x125f8160, 0x0, 0x0)
    /home/jenkins/go/src/os/exec/exec.go:358 +0x6fa
os/exec.(*Cmd).Run(0x125f8160, 0x0, 0x0)
    /home/jenkins/go/src/os/exec/exec.go:276 +0x2b
arduino.cc/builder/builder_utils.ExecRecipeCollectStdErr(0x125dc840, 0x56c313, 0x15, 0x1, 0x5f4880, 0x614ef0, 0x0, 0x0, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder_utils/utils.go:413 +0x118
arduino.cc/builder.(*GCCPreprocRunnerForDiscoveringIncludes).Run(0x125dc820, 0x12308000, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/gcc_preproc_runner.go:93 +0x23c
arduino.cc/builder.runCommand(0x12308000, 0x5f39b0, 0x125dc820, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:183 +0x57
arduino.cc/builder.findIncludesUntilDone(0x12308000, 0x125dc700, 0x538ca0, 0x12587110, 0x125dc740, 0x15, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:331 +0x1810
arduino.cc/builder.(*ContainerFindIncludes).Run(0x614ef0, 0x12308000, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:149 +0xdfd
arduino.cc/builder.runCommands(0x12308000, 0x122c1cc0, 0x22, 0x22, 0x1, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:191 +0xe2
arduino.cc/builder.(*Builder).Run(0x122c1de4, 0x12308000, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:124 +0x89f
arduino.cc/builder.RunBuilder(0x12308000, 0x0, 0x0)
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:222 +0x35
main.main()
    /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/arduino-builder/main.go:338 +0x1360
eax     0x0
ebx     0x330ae008
ecx     0x0
edx     0x33050000
edi     0x1074
esi     0x330ae000
ebp     0xcf67c
esp     0xcf654
eip     0xf2712
eflags  0x10212
cs      0x23
fs      0x53
gs      0x2b
C:\Utils\Arduino18\arduino-1.8.4\arduino-builder a retourné 2
Erreur de compilation pour la carte Arduino/Genuino Uno

des idées ?? merci

(je suis sous Windows7)

-
Edité par jmelan 10 octobre 2017 à 19:48:57

  • Partager sur Facebook
  • Partager sur Twitter
19 mars 2018 à 16:19:53

bonjour j ai un problème  de compilation  avec mon arduino uno 

 

  • Partager sur Facebook
  • Partager sur Twitter
21 mars 2018 à 16:34:40

bonojur jai un gros probleme j ai mis ce code assez long pour faire une alarme

 /*
    * Arduino Security and Alarm System
    *
    * by Dejan Nedelkovski,
    * www.HowToMechatronics.com
    *
    */
    #include <LiquidCrystal.h> // includes the LiquidCrystal Library
    #include <Keypad.h>
    #define buzzer 8
    #define trigPin 9
    #define echoPin 10
    long duration;
    int distance, initialDistance, currentDistance, i;
    int screenOffMsg =0;
    String password="1234";
    String tempPassword;
    boolean activated = false; // State of the alarm
    boolean isActivated;
    boolean activateAlarm = false;
    boolean alarmActivated = false;
    boolean enteredPassword; // State of the entered password to stop the alarm
    boolean passChangeMode = false;
    boolean passChanged = false;
    const byte ROWS = 4; //four rows
    const byte COLS = 4; //four columns
    char keypressed;
    //define the cymbols on the buttons of the keypads
    char keyMap[ROWS][COLS] = {
      {'1','2','3','A'},
      {'4','5','6','B'},
      {'7','8','9','C'},
      {'*','0','#','D'}
    };
    byte rowPins[ROWS] = {14, 15, 16, 17}; //Row pinouts of the keypad
    byte colPins[COLS] = {18, 19, 20, 21}; //Column pinouts of the keypad
    Keypad myKeypad = Keypad( makeKeymap(keyMap), rowPins, colPins, ROWS, COLS);
    LiquidCrystal lcd(1, 2, 4, 5, 6, 7); // Creates an LC object. Parameters: (rs, enable, d4, d5, d6, d7)
    void setup() {
      lcd.begin(16,2);
      pinMode(buzzer, OUTPUT); // Set buzzer as an output
      pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
      pinMode(echoPin, INPUT); // Sets the echoPin as an Input
    }
    void loop() {
      if (activateAlarm) {
        lcd.clear();
        lcd.setCursor(0,0);
        lcd.print("Alarm will be");
        lcd.setCursor(0,1);
        lcd.print("activated in");
      
        int countdown = 9; // 9 seconds count down before activating the alarm
        while (countdown != 0) {
          lcd.setCursor(13,1);
          lcd.print(countdown);
          countdown--;
          tone(buzzer, 700, 100);
          delay(1000);
        }
        lcd.clear();
        lcd.setCursor(0,0);
        lcd.print("Alarm Activated!");
        initialDistance = getDistance();
        activateAlarm = false;
        alarmActivated = true;
      }
      if (alarmActivated == true){
          currentDistance = getDistance() + 10;
          if ( currentDistance < initialDistance) {
            tone(buzzer, 1000); // Send 1KHz sound signal
            lcd.clear();
            enterPassword();
          }
        }
      if (!alarmActivated) {
        if (screenOffMsg == 0 ){
          lcd.clear();
          lcd.setCursor(0,0);
          lcd.print("A - Activate");
          lcd.setCursor(0,1);
          lcd.print("B - Change Pass");
          screenOffMsg = 1;
        }
        keypressed = myKeypad.getKey();
         if (keypressed =='A'){        //If A is pressed, activate the alarm
          tone(buzzer, 1000, 200);
          activateAlarm = true;           
        }
        else if (keypressed =='B') {
          lcd.clear();
          int i=1;
          tone(buzzer, 2000, 100);
          tempPassword = "";
          lcd.setCursor(0,0);
          lcd.print("Current Password");
          lcd.setCursor(0,1);
          lcd.print(">");
          passChangeMode = true;
          passChanged = true;  
          while(passChanged) {     
          keypressed = myKeypad.getKey();
          if (keypressed != NO_KEY){
            if (keypressed == '0' || keypressed == '1' || keypressed == '2' || keypressed == '3' ||
                keypressed == '4' || keypressed == '5' || keypressed == '6' || keypressed == '7' ||
                keypressed == '8' || keypressed == '9' ) {
             tempPassword += keypressed;
             lcd.setCursor(i,1);
             lcd.print("*");
             i++;
             tone(buzzer, 2000, 100);
            }
          }
          if (i > 5 || keypressed == '#') {
            tempPassword = "";
            i=1;
            lcd.clear();
            lcd.setCursor(0,0);
            lcd.print("Current Password");
            lcd.setCursor(0,1);
            lcd.print(">");
          }
          if ( keypressed == '*') {
            i=1;
            tone(buzzer, 2000, 100);
            if (password == tempPassword) {
              tempPassword="";
              lcd.clear();
              lcd.setCursor(0,0);
              lcd.print("Set New Password");
              lcd.setCursor(0,1);
              lcd.print(">");
              while(passChangeMode) {
                keypressed = myKeypad.getKey();
                if (keypressed != NO_KEY){
                  if (keypressed == '0' || keypressed == '1' || keypressed == '2' || keypressed == '3' ||
                      keypressed == '4' || keypressed == '5' || keypressed == '6' || keypressed == '7' ||
                      keypressed == '8' || keypressed == '9' ) {
                    tempPassword += keypressed;
                    lcd.setCursor(i,1);
                    lcd.print("*");
                    i++;
                    tone(buzzer, 2000, 100);
                  }
                }
                if (i > 5 || keypressed == '#') {
                  tempPassword = "";
                  i=1;
                  tone(buzzer, 2000, 100);
                  lcd.clear();
                  lcd.setCursor(0,0);
                  lcd.print("Set New Password");
                  lcd.setCursor(0,1);
                  lcd.print(">");
                }
                if ( keypressed == '*') {
                  i=1;
                  tone(buzzer, 2000, 100);
                  password = tempPassword;
                  passChangeMode = false;
                  passChanged = false;
                  screenOffMsg = 0;
                }           
              }
            }
          }
        }
       }
     }
    }
    void enterPassword() {
      int k=5;
      tempPassword = "";
      activated = true;
      lcd.clear();
      lcd.setCursor(0,0);
      lcd.print(" *** ALARM *** ");
      lcd.setCursor(0,1);
      lcd.print("Pass>");
          while(activated) {
          keypressed = myKeypad.getKey();
          if (keypressed != NO_KEY){
            if (keypressed == '0' || keypressed == '1' || keypressed == '2' || keypressed == '3' ||
                keypressed == '4' || keypressed == '5' || keypressed == '6' || keypressed == '7' ||
                keypressed == '8' || keypressed == '9' ) {
              tempPassword += keypressed;
              lcd.setCursor(k,1);
              lcd.print("*");
              k++;
            }
          }
          if (k > 9 || keypressed == '#') {
            tempPassword = "";
            k=5;
            lcd.clear();
            lcd.setCursor(0,0);
            lcd.print(" *** ALARM *** ");
            lcd.setCursor(0,1);
            lcd.print("Pass>");
          }
          if ( keypressed == '*') {
            if ( tempPassword == password ) {
              activated = false;
              alarmActivated = false;
              noTone(buzzer);
              screenOffMsg = 0;
            }
            else if (tempPassword != password) {
              lcd.setCursor(0,1);
              lcd.print("Wrong! Try Again");
              delay(2000);
              lcd.clear();
              lcd.setCursor(0,0);
              lcd.print(" *** ALARM *** ");
              lcd.setCursor(0,1);
              lcd.print("Pass>");
            }
          }   
        }
    }
    // Custom function for the Ultrasonic sensor
    long getDistance(){
      //int i=10;
     
      //while( i<=10 ) {
      // Clears the trigPin
      digitalWrite(trigPin, LOW);
      delayMicroseconds(2);
      // Sets the trigPin on HIGH state for 10 micro seconds
      digitalWrite(trigPin, HIGH);
      delayMicroseconds(10);
      digitalWrite(trigPin, LOW);
      // Reads the echoPin, returns the sound wave travel time in microseconds
      duration = pulseIn(echoPin, HIGH);
      // Calculating the distance
      distance = duration*0.034/2;
      //sumDistance += distance;
      //}
      //int averageDistance= sumDistance/10;
      return distance;
    }

voila et sa ma afficher sa je vous en suplie aider moi

erreu de compilation pour la carte arduino.. mege

  • Partager sur Facebook
  • Partager sur Twitter
25 décembre 2018 à 18:35:43

//www.elegoo.com
//2016.09.19
#include <IRremote.h>//Infrared Library
int receiverpin = 12;//Infrared signal receiving pin
int LED=13;                //define LED pin
volatile int state = LOW;  //define default input mode
unsigned long RED;
#define L 16738455
IRrecv irrecv(receiverpin);//initialization
decode_results results;//Define structure type
void setup() {
pinMode(LED, OUTPUT);     //initialize LED as an output
Serial.begin(9600);       // debug output at 9600 baud
 irrecv.enableIRIn();// Start receiving
}
void stateChange()      
{
  state = !state;          
  digitalWrite(LED, state);
}
void loop() {
if (irrecv.decode(&results))
    { 
      RED=results.value;
       Serial.println(RED);
       irrecv.resume(); // Receive the next value
    delay(150);
     if(RED==L)
  {  
     stateChange();
   }
  }
     }
exit status 1
Erreur de compilation pour la carte Aduino/Genuino Uno
voila ma page d'erreur lorsque je souhaite mettre la télécommande en route!!! que faire ? merci d'avance....
  • Partager sur Facebook
  • Partager sur Twitter
26 décembre 2018 à 17:46:00

Bonjour,

un petit message d’introduction serait le bienvenu et ouvrir un post séparé est carrément mieux surtout sur un post "résolu".

En tous les cas le programme compile normalement :

Le croquis utilise 7850 octets (24%) de l'espace de stockage de programmes. Le maximum est de 32256 octets.

Les variables globales utilisent 421 octets (20%) de mémoire dynamique, ce qui laisse 1627 octets pour les variables locales. Le maximum est de 2048 octets.


autrement dit il faut chercher ailleurs et vérifier notamment que la librairie IR est bien installée. 

-
Edité par clgbzh 26 décembre 2018 à 17:47:00

  • Partager sur Facebook
  • Partager sur Twitter

Erreur de compilation sous Arduino Uno

× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
  • Editeur
  • Markdown