Go Down

Topic: Invalid library found error (Read 20607 times) previous topic - next topic

Gallen66

I keep receiving an invalid library found error, after compiling sketches. How can I correct that?

pert

There are three common causes of the invalid library warning:
  • You saved a sketch to the libraries folder. Sketches are only allowed in that folder as examples inside the folder of a valid library. Fix: move the sketch anywhere else other than the libraries folder.
  • Incorrect installation of a valid library. The library folder must be directly under the libraries folder, not in a subfolder. This means the library must have either a .h file or a library.properties file in its root folder. Fix: move the library folder to directly under the libraries folder.
  • Something that's neither library nor sketch in the libraries folder. Fix: move it somewhere else, anywhere other than the libraries folder.

pcs1962

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
In file included from Scrolling.ino:12:
C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h:11: error: ISO C++ forbids declaration of 'bitBangedSPI' with no type
C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h:11: error: expected ';' before '*' token
C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h: In constructor 'MAX7219_Dot_Matrix::MAX7219_Dot_Matrix(byte, byte, byte, byte)':
C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h:35: error: class 'MAX7219_Dot_Matrix' does not have any field named 'bbSPI_'

pert

Please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded the MAX7219_Dot_Matrix library from.

Bonnie830

#4
Aug 14, 2019, 12:11 pm Last Edit: Aug 16, 2019, 10:55 am by Bonnie830
There are three common causes of the invalid library warning:
  • You saved a sketch to the libraries folder. Mygiftcardsite sketches are only allowed in that folder as examples inside the folder of a valid library. Fix: move the sketch anywhere else other than the libraries folder.
  • Incorrect installation of a valid library. The library folder must be directly under the libraries folder, not in a subfolder. This means the library must have either a .h file or a library.properties file in its root folder. Fix: move the library folder to directly under the libraries folder.
  • Something that's neither library nor sketch in the libraries folder. Fix: move it somewhere else, anywhere other than the libraries folder.[/u][/u]

Nice, that worked like a charm :)

Thank you very much.

pert

You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per

Go Up