compilation terminated. exit status 1 (music visualizer project)

here is a link to the project: Overview | Tiny Arduino Music Visualizer | Adafruit Learning System

when i try to verify the code an error occurred

Here is the error code and i add the code as a attachment:

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

In file included from C:\Users\jakob\Documents\Arduino\Piccolo\Piccolo.ino:1:0:

C:\Program Files\Arduino\libraries\Adafruit_LED_Backpack-master/Adafruit_LEDBackpack.h:32:26: fatal error: Adafruit_GFX.h: No such file or directory

#include "Adafruit_GFX.h"

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

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

Piccolo.ino (9.23 KB)

Adafruit_GFX.h: No such file or directory

Do you have the file and if so where is it located ?

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

C:\Users\user\Desktop\MakeCall.ino\MakeCall.ino.ino:37:20: fatal error: SIM900.h: No such file or directory

#include "SIM900.h"

^

compilation terminated.

Multiple libraries were found for "GSM.h"
Used: C:\Program Files (x86)\Arduino\libraries\GSM
Not used: C:\Users\user\Documents\Arduino\libraries\arduino_55247
exit status 1
Error compiling for board Arduino/Genuino Uno.

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

SIM900.h: No such file or directory

Do you have this file and if so where is it located ?

Multiple libraries were found for "GSM.h"

How many copies of this file do you have and where are they located ? How is it #included in your program ?

Did you include the libraries mentioned in the error into your sketch.

Add

#include <SIM900.h>

At the top of your sketch

Using double quotes around the 'file to include' will 'force' the compiler to first look in the directory where the sketch is.
//Edit:
It also seems to look in any subdirectory in the sketch directory.
//EndEdit

If it can't be found there, it will look elsewhere (the 'normal' directories).

If you use '<' and '>', the compiler will only look in the directories that it knows.

As you don't have the include file in the current directory, it will look elsewhere. And for the GSM it can find multiples and does not know which one to pick.

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

C:\Users\user\Desktop\MakeCall.ino\MakeCall.ino.ino:3:20: fatal error: SIM900.h: No such file or directory

#include "SIM900.h"

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

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

pYro_65:
Did you include the libraries mentioned in the error into your sketch.

Add

#include <SIM900.h>

At the top of your sketch

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

C:\Users\user\Desktop\MakeCall.ino\MakeCall.ino.ino:3:20: fatal error: SIM900.h: No such file or directory

#include "SIM900.h"

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

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

please give me step by step to solve the problem

So, where exactly is the SIM900.h file on your system ?

Also I notice this

C:\Users\user\Desktop\MakeCall.ino\MakeCall.ino.ino

That is a very odd folder structure and filename

the file sim900 i don't know where it in my system

C:\Program Files (x86)\Arduino\libraries\GSM

Change #include "SIM900.h"to#include <SIM900.h>in the code

#include <SIM900.h>
#include <SoftwareSerial.h>
#include "call.h"

#define ACTIVE LOW

const int ledPin = 13; // the number of the LED pin

//CallGSM call;
boolean started=false;
int buttonState = 1;
const int buttonPin = 7; // the number of the pushbutton pin
boolean calling = false;

void setup()
{

Serial.begin(9600);
pinMode(ledPin,OUTPUT);
pinMode(buttonPin, INPUT);
digitalWrite(buttonPin,HIGH);
if (gsm.begin(9600))
{
Serial.println("\nstatus=READY");
started=true;
}
else
Serial.println("\nstatus=IDLE");
}

void loop()
{
buttonState = digitalRead(buttonPin);
if (buttonState == ACTIVE) {
if(calling)
{
digitalWrite(ledPin,LOW);
calling = false;
call.HangUp();
delay(1000);
}else
{
calling = true;
digitalWrite(ledPin, HIGH);
delay(1000);
call.Call("+300000000000"); //Insert telephone number here

}

afiqzty:
#include <SIM900.h>
#include <SoftwareSerial.h>
#include "call.h"

#define ACTIVE LOW

const int ledPin = 13; // the number of the LED pin

//CallGSM call;
boolean started=false;
int buttonState = 1;
const int buttonPin = 7; // the number of the pushbutton pin
boolean calling = false;

void setup()
{

Serial.begin(9600);
pinMode(ledPin,OUTPUT);
pinMode(buttonPin, INPUT);
digitalWrite(buttonPin,HIGH);
if (gsm.begin(9600))
{
Serial.println("\nstatus=READY");
started=true;
}
else
Serial.println("\nstatus=IDLE");
}

void loop()
{
buttonState = digitalRead(buttonPin);
if (buttonState == ACTIVE) {
if(calling)
{
digitalWrite(ledPin,LOW);
calling = false;
call.HangUp();
delay(1000);
}else
{
calling = true;
digitalWrite(ledPin, HIGH);
delay(1000);
call.Call("+300000000000"); //Insert telephone number here

}

when i change #include "SIM900.h" to #include <SIM900.h> it nothing happen .. it the same problem

Can you please list the files in C:\Program Files (x86)\Arduino\libraries\GSM

afiqzty:

?

Ah, a picture on google drive :wink: Thank god it does not work, might be a few meg big :smiley:

Try the following. Open a command prompt and type what is marked in bold

C:\Users\sterretje>[b]cd "\Program Files (x86)\Arduino\libraries\GSM"[/b]
C:\Program Files (x86)\Arduino\libraries\GSM>[b]tree /f /a[/b]

The result will look like

Folder PATH listing
Volume serial number is 58CB-3E16
C:.
|   keywords.txt
|   library.properties
|   README.adoc
|
+---examples
|   +---GsmWebClient
|   |       GsmWebClient.ino
|   |
|   +---GsmWebServer
|   |       GsmWebServer.ino
|   |
|   +---MakeVoiceCall
|   |       MakeVoiceCall.ino
|   |
|   +---ReceiveSMS
|   |       ReceiveSMS.ino
|   |
|   +---ReceiveVoiceCall
|   |       ReceiveVoiceCall.ino
|   |
|   +---SendSMS
|   |       SendSMS.ino
|   |
|   \---Tools
|       +---BandManagement
|       |       BandManagement.ino
|       |
|       +---GsmScanNetworks
|       |       GsmScanNetworks.ino
|       |
|       +---PinManagement
|       |       PinManagement.ino
|       |
|       +---TestGPRS
|       |       TestGPRS.ino
|       |
|       +---TestModem
|       |       TestModem.ino
|       |
|       \---TestWebServer
|               TestWebServer.ino
|
+---extras
|       License.txt
|
\---src
        GSM.h
        GSM3CircularBuffer.cpp
        GSM3CircularBuffer.h
        GSM3IO.h
        GSM3MobileAccessProvider.cpp
        GSM3MobileAccessProvider.h
        GSM3MobileCellManagement.cpp
        GSM3MobileCellManagement.h
        GSM3MobileClientProvider.cpp
        GSM3MobileClientProvider.h
        GSM3MobileClientService.cpp
        GSM3MobileClientService.h
        GSM3MobileDataNetworkProvider.cpp
        GSM3MobileDataNetworkProvider.h
        GSM3MobileMockupProvider.cpp
        GSM3MobileMockupProvider.h
        GSM3MobileNetworkProvider.cpp
        GSM3MobileNetworkProvider.h
        GSM3MobileNetworkRegistry.cpp
        GSM3MobileNetworkRegistry.h
        GSM3MobileServerProvider.cpp
        GSM3MobileServerProvider.h
        GSM3MobileServerService.cpp
        GSM3MobileServerService.h
        GSM3MobileSMSProvider.cpp
        GSM3MobileSMSProvider.h
        GSM3MobileVoiceProvider.cpp
        GSM3MobileVoiceProvider.h
        GSM3ShieldV1.cpp
        GSM3ShieldV1.h
        GSM3ShieldV1AccessProvider.cpp
        GSM3ShieldV1AccessProvider.h
        GSM3ShieldV1BandManagement.cpp
        GSM3ShieldV1BandManagement.h
        GSM3ShieldV1BaseProvider.cpp
        GSM3ShieldV1BaseProvider.h
        GSM3ShieldV1CellManagement.cpp
        GSM3ShieldV1CellManagement.h
        GSM3ShieldV1ClientProvider.cpp
        GSM3ShieldV1ClientProvider.h
        GSM3ShieldV1DataNetworkProvider.cpp
        GSM3ShieldV1DataNetworkProvider.h
        GSM3ShieldV1DirectModemProvider.cpp
        GSM3ShieldV1DirectModemProvider.h
        GSM3ShieldV1ModemCore.cpp
        GSM3ShieldV1ModemCore.h
        GSM3ShieldV1ModemVerification.cpp
        GSM3ShieldV1ModemVerification.h
        GSM3ShieldV1MultiClientProvider.cpp
        GSM3ShieldV1MultiClientProvider.h
        GSM3ShieldV1MultiServerProvider.cpp
        GSM3ShieldV1MultiServerProvider.h
        GSM3ShieldV1PinManagement.cpp
        GSM3ShieldV1PinManagement.h
        GSM3ShieldV1ScanNetworks.cpp
        GSM3ShieldV1ScanNetworks.h
        GSM3ShieldV1ServerProvider.cpp
        GSM3ShieldV1ServerProvider.h
        GSM3ShieldV1SMSProvider.cpp
        GSM3ShieldV1SMSProvider.h
        GSM3ShieldV1VoiceProvider.cpp
        GSM3ShieldV1VoiceProvider.h
        GSM3SMSService.cpp
        GSM3SMSService.h
        GSM3SoftSerial.cpp
        GSM3SoftSerial.h
        GSM3VoiceCallService.cpp
        GSM3VoiceCallService.h


C:\Program Files (x86)\Arduino\libraries\GSM>

Select all text and press enter to copy it. Next paste it here.

Note that SIM900 is missing on my system.

sterretje:
Ah, a picture on google drive :wink:

That I don't appear to be able to see.

Kids today ! What's wrong with a command prompt, dir then copy/pasting the list of files ?

I also don't see it; I just checked the source in the web page and found an img tag pointing to https://drive.google.com/drive/folders/0B6cDPvXCsXmOV2k0cW5pOEcwMUE

Go there and you still don't get much (login /signup request).

Kids today ! What's wrong with a command prompt, dir then copy/pasting the list of files ?

:smiley: :smiley: