Go Down

Topic: Exit status 1, Error compiling for board Arduino/Genuino Uno. [Solved!] (Read 193940 times) previous topic - next topic

azsxdc821019

Arduino:1.6.12 (Windows 10), 板子:"Arduino/Genuino Uno"

C:\Users\user\Desktop\Arduino\colcor_led_ctrl\colcor_led_ctrl.ino:1:28: fatal error: softwareserial.h: No such file or directory

 #include <softwareserial.h>

                            ^

compilation terminated.

exit status 1
板子Arduino/Genuino Uno編譯錯誤

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

HOW DO I DO ?

TELL ME WHAT HAPPEND?

sterretje

If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

amelnychuk

/Users/Amelnychuk/Documents/Arduino/sketch_sep15a/sketch_sep15a.ino:7:31: fatal error: Adafruit_NeoPixel.h: No such file or directory
 #include <Adafruit_NeoPixel.h>
                               ^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.

sterretje

@amelnychuk

Looks like you did not install (or incorrectly installed) the library.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

srisowmya

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

open sketch\sketch_oct25a.ino.cpp: Access is denied.
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

DrAzzy

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

open sketch\sketch_oct25a.ino.cpp: Access is denied.
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Check permissions on the folders in question. Check that no overzealous security/antivirus software is blocking it.

Verbose upload output will show the full path to the file before the error; that may be useful.

Also, in the future, do not hijack threads with unrelated issues (though it seems like you're not the first person doing that in this thread  ::) ); you are getting a totally different error than the other posters here.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Electromecano


AbdElrhman_Assy

i have same error
#include <Servo.h> //call servo library
#include <boarddefs.h> //call ir library
#include <IRremote.h>//call ir library
#include <IRremoteInt.h>//call ir library
#include <ir_Lego_PF_BitStreamEncoder.h>//call ir library
 
Servo myservo; //for declear 1st servo
Servo myservo1; //for declear 2nd servo
int RECV_PIN = 2; // the pin where you connect the output pin of TSOP4838
int itsONled[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int ledPin0 = 13; //bot 1 yellow
int ledPin1 = 12; //bot2 red
int ledPin2 = 11; // bot3 whie
int redLed = 4; // alert for gas environment
int greenLed = 3; // normal environment
int smokeA0 = A5; // gas sensor input
int sensorThres = 400; //gas sensor
int buzzer = 9; // for gas sensor alert
char data = 0;
int state ;
int flag = 0; // for bluetooth to send signals
int pos = 0;
int inputPin = 6;               // choose the input pin (for PIR sensor)
int pirState = LOW;             // we start, assuming no motion detected
int val = 1;                    // variable for reading the pin status
int ledPin00 = 5;                // choose the pin for the LED
#define code1  12495 // code received from button A
#define code2  6375 // code received from button B
#define code3  31365 // code received from button C
#define code7  41565 // code received from button C
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup() {
  irrecv.enableIRIn();  // Start the receiver
  Serial.begin(9600); // Default communication rate of the Bluetooth module
  pinMode(ledPin0, OUTPUT);
  digitalWrite(ledPin0, LOW);
  pinMode(ledPin1, OUTPUT);
  digitalWrite(ledPin1, LOW);
  pinMode(ledPin2, OUTPUT);
  digitalWrite(ledPin2, LOW);
  pinMode(redLed, OUTPUT);
  pinMode(greenLed, OUTPUT);
  pinMode(buzzer, OUTPUT);
  pinMode(smokeA0, INPUT);
  pinMode(redLed, OUTPUT);
  pinMode(greenLed, OUTPUT);
  pinMode(buzzer, OUTPUT);
  pinMode(smokeA0, INPUT);
  myservo.attach(2);
  myservo1.attach(4);
  myservo.write(90);
  myservo1.write(90);
  delay(0);
  pinMode(ledPin00, OUTPUT);      // declare LED as output
}
void loop() {
  {
    val = digitalRead(inputPin);  // read input value
    if (val == HIGH) {            // check if the input is HIGH
      digitalWrite(ledPin00, HIGH);  // turn LED ON
      if (pirState == LOW) {
        // we have just turned on
        tone(buzzer, 1000, 200);
        Serial.println("Motion detected!");
        // We only want to print on the output change, not state
        pirState = HIGH;
      }
    } else {
      digitalWrite(ledPin00, LOW); // turn LED OFF
      if (pirState == HIGH) {
        // we have just turned of
        Serial.println("Motion ended!");
        // We only want to print on the output change, not state
        pirState = LOW;
        noTone(buzzer);
      }
      if (Serial.available() > 0) { // Checks whether data is comming from the serial port
        state = Serial.read(); // Reads the data from the serial port
      }
      if (state == '0') {
        digitalWrite(ledPin0, LOW); // Turn LED OFF
        Serial.println("LED: OFF"); // Send back, to the phone, the String "LED: ON"
        state = 0;
      }
      else if (state == '1') {
        digitalWrite(ledPin0, HIGH);
        Serial.println("LED: ON");;
        state = 0;
      }
      {
        if (Serial.available() > 0) { // Checks whether data is comming from the serial port
          state = Serial.read(); // Reads the data from the serial port
        }
        if (state == '2') {
          digitalWrite(ledPin1, LOW); // Turn LED OFF
          Serial.println("LED: OFF"); // Send back, to the phone, the String "LED: ON"
          state = 0;
        }
        else if (state == '3') {
          digitalWrite(ledPin1, HIGH);
          Serial.println("LED: ON");;
          state = 0;
        }
        {
          if (Serial.available() > 0) { // Checks whether data is comming from the serial port
            state = Serial.read(); // Reads the data from the serial port
          }
          if (state == '4') {
            digitalWrite(ledPin2, LOW); // Turn LED OFF
            Serial.println("LED: OFF"); // Send back, to the phone, the String "LED: ON"
            state = 0;
          }
          else if (state == '5') {
            digitalWrite(ledPin2, HIGH);
            Serial.println("LED: ON");;
            state = 0;
          }
          {
            int analogSensor = analogRead(smokeA0);

            Serial.print("Pin A0: ");
            Serial.println(analogSensor);
            // Checks if it has reached the threshold value
            if (analogSensor > sensorThres)
            {
              digitalWrite(redLed, HIGH);
              digitalWrite(greenLed, LOW);
              tone(buzzer, 1000, 200);
            }
            else
            {
              digitalWrite(redLed, LOW);
              digitalWrite(greenLed, HIGH);
              noTone(buzzer);
            }
            delay(100);
          }
          {
            if (Serial.available() > 0)
            {
              state = Serial.read();
              flag = 0;
            }     // if the state is '0' the DC motor will turn off
            if (state == '6')
            {
              myservo.write(8);
              delay(0);
              Serial.println("Door Locked");
            }
            else if (state == '7')
            {
              myservo.write(360);
              delay(0);
              Serial.println("Door UnLocked");
            }
            {
              if (Serial.available() > 0)
              {
                state = Serial.read();
                flag = 0;
              }     // if the state is '0' the DC motor will turn off
              if (state == '8')
              {
                myservo1.write(8);
                delay(0);
                Serial.println("Door Locked");
              }
              else if (state == '9')
              {
                myservo1.write(360);
                delay(0);
                Serial.println("Door UnLocked");
                {
                  if (irrecv.decode(&results)) {
                    unsigned int value = results.value;
                    switch (value) {
                      case code1:
                        if (itsONled[1] == 1) {       // if first led is on then
                          digitalWrite(ledPin0, LOW);   // turn it off when button is pressed
                          itsONled[1] = 0;           // and set its state as off
                        } else {                      // else if first led is off
                          digitalWrite(ledPin0, HIGH); // turn it on when the button is pressed
                          itsONled[1] = 1;          // and set its state as on
                        }
                        break;

                      case code2:
                        if (itsONled[2] == 1) {
                          digitalWrite(ledPin1, LOW);
                          itsONled[2] = 0;
                        } else {
                          digitalWrite(ledPin1, HIGH);
                          itsONled[2] = 1;
                        }
                        break;

                      case code3:
                        if (itsONled[3] == 1) {
                          digitalWrite(ledPin2, LOW);
                          itsONled[3] = 0;
                        } else {
                          digitalWrite(ledPin2, HIGH);
                          itsONled[3] = 1;
                        }
                        break;

                      case code7:
                        if (itsONled[1, 2, 3, 5, 6] == 1) {   // if first led is on then
                          digitalWrite(ledPin0, LOW);   // turn it off when button is pressed
                          digitalWrite(ledPin1, LOW);
                          digitalWrite(ledPin2, LOW);

                          itsONled[1, 2, 3, 4, 5, 6] = 0;      // and set its state as off
                        } else {                      // else if first led is off
                          digitalWrite(ledPin0, HIGH); // turn it on when the button is pressed
                          digitalWrite(ledPin1, HIGH);
                          digitalWrite(ledPin2, HIGH);

                          itsONled[1, 2, 3, 5, 6] = 1;      // and set its state as on
                        }
                        break;
                    }
                    Serial.println(value); // you can comment this line
                    irrecv.resume(); // Receive the next value
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

ChrisTenone

i have same error
...
Wow! That's a lot of code! Please read the "How to use this forum" thread, follow the directions, and you will likely get some help with yout problem.
What, I need to say something else too?

sterretje

i have same error
I somehow doubt you have the same error. It happily compiles on my system but does not link.
Code: [Select]
Linking everything together...
...
...
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':

(.text+0x0): multiple definition of `__vector_7'

C:\Users\sterretje\AppData\Local\Temp\arduino_build_878941\libraries\IRremote\IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Using library Servo at version 1.1.2 in folder: C:\Program Files (x86)\Arduino\libraries\Servo
Using library IRremote at version 2.2.3 in folder: C:\Users\sterretje\Documents\Arduino\libraries\IRremote
exit status 1
Error compiling for board Arduino/Genuino Uno.


Once you manage to fix that, you get
Code: [Select]
Linking everything together...
...
...
C:\Users\sterretje\AppData\Local\Temp\arduino_build_878941\libraries\IRremote\IRremote.cpp.o (symbol from plugin): In function `MATCH(int, int)':

(.text+0x0): multiple definition of `__vector_11'

C:\Users\sterretje\AppData\Local\Temp\arduino_build_878941\libraries\Servo\avr\Servo.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Using library Servo at version 1.1.2 in folder: C:\Program Files (x86)\Arduino\libraries\Servo
Using library IRremote at version 2.2.3 in folder: C:\Users\sterretje\Documents\Arduino\libraries\IRremote
exit status 1
Error compiling for board Arduino/Genuino Uno.


I'm not sure if there is a way around those two interrupts conflicts. Getting rid of tone functions is one option; using a board with a CPU that has more timers (e.g. Leonardo, Mega) is another one.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

srisowmya

hello! i started doing a project on lcd_game this is how it came out. please help!
Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

Sketch uses 3792 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 163 bytes (7%) of dynamic memory, leaving 1885 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

sterretje

@srisowmya

Correct port selected?

And this is not a programming question.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up