Re: No such file or directory. Compilation terminated.

Hey there guys
im working on a mindcontrol project with an eeg chip.
so i need to use the raw data popped up on the serial console…
i’ve downloaded the arduino brain library and have opened the brain serial test.
when i click upload… it says

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

C:\Program Files (x86)\Arduino\examples\Brain-master\Brain-master\examples\BrainSerialTest\BrainSerialTest.ino:7:19: fatal error: Brain.h: No such file or directory

#include <Brain.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.

and… this is my code…

#include <Brain.h>
Brain brain(Serial);

void setup() {
   // Start the hardware serial.
   Serial.begin(9600);
}

void loop() {
      if (brain.update()) {
       Serial.println(brain.readErrors());
       Serial.println(brain.readCSV());
   }
}

please help me out…

thanks in advance… :slight_smile:

This looks like a new problem to me. Thread split from previous one.

Please use code tags.

Read this before posting a programming question

Please edit your post, select the code, and put it between [code][/code] tags.

You can do that by hitting the “Code” icon above the posting area. It is the first icon, with the symbol: </>

Brain-master
This looks like you do not have the library installed correctly.
.

@Nick
i have edited my post :slight_smile:

@larry
all the libraries are installed correctly, i have double checked it :slight_smile:

Have you restarted the IDE after installing the library?

Please state the exact path of the library. A screenshot would be useful as proof.

all the libraries are installed correctly,

Not if the Brain library is in a folder named Brain-master

I have that library installed, and it works well when installed correctly.
As both Larry and Bob have hinted, rename the "Brain-master" folder to just "Brain".

Getting the library working is the easy part - getting your brain to actually control the 'Attention' and 'Meditation' values is a whole different ballgame.

C:\Program Files (x86)\Arduino\examples\Brain-master\Brain-master\examples\BrainSerialTest\BrainSerialTest.ino:7:19: fatal error: Brain.h: No such file or directory

and remove one of the folders currently named Brain-master

UKHeliBob:
and remove one of the folders currently named Brain-master

Better eyes than me - I missed that. After unzipping a GitHub library, I usually jump into the outer folder, rename the inner one by removing "-master", then copy that folder into my \Sketchbook\libraries folder.

yeah...
here is the screenshot of the folder

https://drive.google.com/open?id=0B9ccu6ib3GHBWkdDNjVTRDlrUk0

and renaming relocating the folder/files (in any permutation and combination) didnt work guys

renaming relocating the folder/files (in any permutation and combination) didnt work guys

Post the details of where the library is installed now.

Hey guys..
I uninstalled Arduino software and reinstalled it completely...
and then downloaded the library again....
now the code seems to have uploaded...
i dont know what was the problem, but i guess its working for now...
thanks alot guys.. for your valuable time and support