Notifications
Clear all

Error msgs below  

  RSS

Recycled Roadkill
(@recycled-roadkill)
Trusted Member
Joined: 1 year ago
Posts: 76
2020-09-12 7:29 pm  

Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_977126: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_977126

What does it take to make them valid?

Is it arduino or am I just too old and dumb to make better sense of this?

 

This message was approved by Recycled.Roadkill. May it find you in good health and humor.


Quote
DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 1 year ago
Posts: 570
2020-09-12 10:35 pm  

@recycled-roadkill

Cryptic as it may sound it's actually telling you exactly what the problem is:

  • On your computer your libraries are in the "C:\Users\Owner\Documents\Arduino\libraries\" folder.  
  • Within that folder is a library called "arduino_977126", contained in a folder called "arduino_977126".

 

Arduino libraries consist, at minimum, of two files:

  • A Header file, with the extension ".h"
  • A Code file, with the extension ".cpp"

 

Apparently, in this particular library, your header file is either missing or is not named with a ".h" extension.

You either need to (a) fix or add the header file or (b) delete the "arduino_977126" folder.  In most cases (b) is simpler, but of course, any program you've written using this library will no longer compile.

It's an odd name for a library, most library names are pretty self-descriptive but this one isn't.

😎

Bill

 

 

 

 

This post was modified 1 week ago 2 times by DroneBot Workshop

"Never trust a computer you can’t throw out a window." — Steve Wozniak


ReplyQuote
Recycled Roadkill
(@recycled-roadkill)
Trusted Member
Joined: 1 year ago
Posts: 76
2020-09-12 11:00 pm  

The problem is simple IF you know the answer. but I haven't given up.....yet. The h file listed above was Adafruit_neopixel.h or something like that. No matter. I loaded up another program.

This one wants #include <Servo.h>

I went to include library, manage library, installed Servo.h. Servo.h is indeed installed. I'm pretty sure it was already.

I compile the program and it compiles fine.

My upload doesn't go so well and I get the same type of error messages.

Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_269217: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_269217
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_308988: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_308988
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_32070: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_32070
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_379067: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_379067
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_390934: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_390934
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_419867: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_419867
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_429783: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_429783
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_439023: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_439023
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_463855: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_463855
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_468863: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_468863
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_516596: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_516596
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_568292: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_568292
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_568367: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_568367
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_587837: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_587837
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_61919: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_61919
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_627623: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_627623
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_642103: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_642103
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_648829: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_648829
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_687139: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_687139
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_697771: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_697771
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_707458: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_707458
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_719737: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_719737
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_750647: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_750647
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_816846: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_816846
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_885281: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_885281
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_887485: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_887485
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_893950: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_893950
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_898905: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_898905
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_913482: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_913482
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_977126: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_977126
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_981470: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_981470
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_986146: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\arduino_986146
Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\Servo-1.1.7: no headers files (.h) found in C:\Users\Owner\Documents\Arduino\libraries\Servo-1.1.7

Here's the program:

#include <Servo.h>

Servo s1,s2;
int a=0,b=0,a2=0,b2=0;
int val = 0, val2 = 0;
// 0 = poten , 1 = a , 2 = b;
int prevval = 1234;
int prevval2 = 1234;

int temp,temp2;
void setup()
{
pinMode(A0,INPUT);
pinMode(10,INPUT_PULLUP);
pinMode(9,INPUT_PULLUP);
pinMode(8,INPUT_PULLUP);
s1.attach(11);
s2.attach(12);
pinMode(A1,INPUT);
pinMode(7,INPUT_PULLUP);
pinMode(6,INPUT_PULLUP);
pinMode(5,INPUT_PULLUP);
Serial.begin(9600);
}
int checkval ()
{
if(val==0)
return temp;
if(val==1)
return a;
if(val==2)
return b;
}
int checkval2 ()
{
if(val2==0)
return temp2;
if(val2==1)
return a2;
if(val2==2)
return b2;
}
void loop()
{
temp = (analogRead(A0)/6);
if(temp != prevval )
val = 0;

s1.write(checkval());

if(!digitalRead(8))
{
while(!digitalRead(8));

val = 1;
s1.write(checkval());
Serial.print("Profile A1 : ");
Serial.print(a);
Serial.println(" Degree");
}

if(!digitalRead(9))
{
while(!digitalRead(9));

val = 2;
s1.write(checkval());
Serial.print("Profile B1 : ");
Serial.print(b);
Serial.println(" Degree");
}

if(!digitalRead(10))
{
while(!digitalRead(10));
Serial.print("1 : Saving..");
bool x=true;
int count = 0;
while(x)
{
count++;
s1.write((analogRead(A0)/6));
if(count==2000)
{
count=0;
Serial.print(".");
}
if(!digitalRead(8))
{
while(!digitalRead(8));

a = (analogRead(A0)/6);
s1.write(a);
x=false;
Serial.println();
Serial.print("1A : ");
Serial.print(a);
Serial.println(" Saved");

}

if(!digitalRead(9))
{
while(!digitalRead(9));

b=(analogRead(A0)/6);
s1.write(b);
x=false;
Serial.println();
Serial.print("1B : ");
Serial.print(b);
Serial.println(" Saved");
}

}

}
prevval = temp;

temp2 = (analogRead(A1)/6);
if(temp2 != prevval2 )
val2 = 0;

s2.write(checkval2());

if(!digitalRead(7))
{
while(!digitalRead(7));

val2 = 1;
s2.write(checkval2());
Serial.print("Profile A2 : ");
Serial.print(a2);
Serial.println(" Degree");
}

if(!digitalRead(6))
{
while(!digitalRead(6));

val2 = 2;
s2.write(checkval2());
Serial.print("Profile B2 : ");
Serial.print(b2);
Serial.println(" Degree");
}

if(!digitalRead(5))
{
while(!digitalRead(5));
Serial.print("2 : Saving..");
bool y=true;
int count = 0;
while(y)
{
count++;
s2.write((analogRead(A1)/6));
if(count==2000)
{
count=0;
Serial.print(".");
}
if(!digitalRead(7))
{
while(!digitalRead(7));

a2 = (analogRead(A1)/6);
s2.write(a2);
y=false;
Serial.println();
Serial.print("2A : ");
Serial.print(a2);
Serial.println(" Saved");

}

if(!digitalRead(6))
{
while(!digitalRead(6));

b2=(analogRead(A1)/6);
s2.write(b2);
y=false;
Serial.println();
Serial.print("2B : ");
Serial.print(b2);
Serial.println(" Saved");
}

}

}
prevval2 = temp2;
delay(100);
}

Something is not pointing to the right area. I'm feeling old and dumb still. Where's a kid when you need one?

Spelling is correct btw. (I think)

This message was approved by Recycled.Roadkill. May it find you in good health and humor.


ReplyQuote
robotBuilder
(@robotbuilder)
Reputable Member
Joined: 1 year ago
Posts: 493
2020-09-13 8:44 am  

@recycled-roadkill

It appears that there are missing files required for the Arduino IDE to upload files? Can you upload other files onto the Arduino?

Did you select the right arduino board from the Tools menu and click the Port shown?

It uploads ok for me.

Perhaps uninstall the Arudino IDE and download and reinstall it again?

To make your code look good with proper indentation:
https://forum.dronebotworkshop.com/question-suggestion/sticky-post-for-editing/#post-4939

 

 

 

#include <Servo.h>

Servo s1,s2;

int a=0,b=0,a2=0,b2=0;
int val = 0, val2 = 0;
// 0 = poten , 1 = a , 2 = b;
int prevval = 1234;
int prevval2 = 1234;
int temp,temp2;

void setup()
{
  pinMode(A0,INPUT);
  pinMode(10,INPUT_PULLUP);
  pinMode(9,INPUT_PULLUP);
  pinMode(8,INPUT_PULLUP);
  s1.attach(11);
  s2.attach(12);
  pinMode(A1,INPUT);
  pinMode(7,INPUT_PULLUP);
  pinMode(6,INPUT_PULLUP);
  pinMode(5,INPUT_PULLUP);
  Serial.begin(9600);
}

int checkval ()
{
  if(val==0)
    return temp;
  if(val==1)
    return a;
  if(val==2)
    return b;
}

int checkval2 ()
{
  if(val2==0)
    return temp2;
  if(val2==1)
    return a2;
  if(val2==2)
    return b2;
}

void loop()
  {
    temp = (analogRead(A0)/6);
    if(temp != prevval )
      val = 0;

    s1.write(checkval());

    if(!digitalRead(8))
    {
      while(!digitalRead(8));

      val = 1;
      s1.write(checkval());
      Serial.print("Profile A1 : ");
      Serial.print(a);
      Serial.println(" Degree");
    }

    if(!digitalRead(9))
    {
      while(!digitalRead(9));

      val = 2;
      s1.write(checkval());
      Serial.print("Profile B1 : ");
      Serial.print(b);
      Serial.println(" Degree");
    }

    if(!digitalRead(10))
    {
      while(!digitalRead(10));
    
      Serial.print("1 : Saving..");
      bool x=true;
      int count = 0;
      while(x)
      {
    
      count++;
      s1.write((analogRead(A0)/6));
      if(count==2000)
      {
        count=0;
        Serial.print(".");
      }
  
      if(!digitalRead(8))
      {
        while(!digitalRead(8));

        a = (analogRead(A0)/6);
        s1.write(a);
        x=false;
        Serial.println();
        Serial.print("1A : ");
        Serial.print(a);
        Serial.println(" Saved");

      }

      if(!digitalRead(9))
      {
        while(!digitalRead(9));

        b=(analogRead(A0)/6);
        s1.write(b);
        x=false;
        Serial.println();
        Serial.print("1B : ");
        Serial.print(b);
        Serial.println(" Saved");
      }

    }

  }
  prevval = temp;

  temp2 = (analogRead(A1)/6);
  if(temp2 != prevval2 )
    val2 = 0;

  s2.write(checkval2());

  if(!digitalRead(7))
  {
    while(!digitalRead(7));

    val2 = 1;
    s2.write(checkval2());
    Serial.print("Profile A2 : ");
    Serial.print(a2);
    Serial.println(" Degree");
  }

  if(!digitalRead(6))
  {
  while(!digitalRead(6));

  val2 = 2;
  s2.write(checkval2());
  Serial.print("Profile B2 : ");
  Serial.print(b2);
  Serial.println(" Degree");
  }

  if(!digitalRead(5))
  {
    while(!digitalRead(5));
  Serial.print("2 : Saving..");
  bool y=true;
  int count = 0;
  while(y)
  {
  count++;
  s2.write((analogRead(A1)/6));
  if(count==2000)
  {
  count=0;
  Serial.print(".");
  }
  if(!digitalRead(7))
    {
    while(!digitalRead(7));

    a2 = (analogRead(A1)/6);
    s2.write(a2);
    y=false;
    Serial.println();
    Serial.print("2A : ");
    Serial.print(a2);
    Serial.println(" Saved");

    }

    if(!digitalRead(6))
    {
    while(!digitalRead(6));

      b2=(analogRead(A1)/6);
      s2.write(b2);
      y=false;
      Serial.println();
      Serial.print("2B : ");
      Serial.print(b2);
      Serial.println(" Saved");
      }

    }

  }
  prevval2 = temp2;
  delay(100);
}

 

 


ReplyQuote
Recycled Roadkill
(@recycled-roadkill)
Trusted Member
Joined: 1 year ago
Posts: 76
2020-09-15 1:26 am  

I've tried all suggestions to the best of my ability. I've not had any success though. I'm getting frustrated.

Seems to me if it would compile (check mark) it would work. Tried to load on used and new uno's with the same result.

This should be easy?

Anyone else care to add their thoughts?

Thanks in advance.

 

This post was modified 5 days ago by Recycled Roadkill

This message was approved by Recycled.Roadkill. May it find you in good health and humor.


ReplyQuote
frogandtoad
(@frogandtoad)
Reputable Member
Joined: 1 year ago
Posts: 478
2020-09-15 8:32 am  

@recycled-roadkill

Posted by: @recycled-roadkill

I've tried all suggestions to the best of my ability. I've not had any success though. I'm getting frustrated.

Let's take it step by step... try the following for starters, and we'll go from there:

1) Open up the IDE, and start a new project and save it, then close the IDE

2) Reopen the IDE, ensure you have the right "board" and "programmer" selected, and then try to compile a blank sketch... if successful with a blank sketch, save and close the IDE, else report the error messages back here

3) Reopen the IDE, and include just the servo header, and then try to compile the empty sketch, just with that single header, and report the resulting error messages (if any), back here

Note: - You can also increase the level of detail in the error messages the compiler produces from within the IDE File -> Preferences.

Cheers.

This post was modified 5 days ago 2 times by frogandtoad

ReplyQuote
Recycled Roadkill
(@recycled-roadkill)
Trusted Member
Joined: 1 year ago
Posts: 76
2020-09-16 3:23 am  

@frogandtoad, thanks, I'll give it all a try and return here with the outcome.

This message was approved by Recycled.Roadkill. May it find you in good health and humor.


ReplyQuote
Recycled Roadkill
(@recycled-roadkill)
Trusted Member
Joined: 1 year ago
Posts: 76
2020-09-17 3:29 am  

Step 1 tried and failed. Seems I can't save to the default arduino directory because I need admin permission. (Thought I was admin.) I authorized admin all the way up the directories and I still don't have permission.) Then I changed the directory I saved to and maybe since my sketch compiled and apparently programmed a UNO board properly, I'll assemble and wire the hardware. (All is on hand) I'll come back here and let y'all know if/how it worked using this method.

This message was approved by Recycled.Roadkill. May it find you in good health and humor.


ReplyQuote