Skip to main content

I make my own library for arduino.

The file structure is like below.

AAA - README.md
    - examples - A - A.ino
               - B - B.ino
    - AAA.h
    - BBB.h
    - CCC.h
    - BBB.cpp
    - CCC.cpp

It works well. But I want to grouping a library source files like below.

AAA - same as above
    - src - AAA.h
          - BBB.h
          - CCC.h
          - BBB.cpp
          - CCC.cpp

It doesn't work at all.

Arduino IDE shows the message "Specified folder/zip file does not contain a valid library".

Specified folder/zip file does not contain a valid library.

But, WiFi101 library was made by src folder. Why not meisn't it possible for mine?

I make my own library for arduino.

The file structure is like below.

AAA - README.md
    - examples - A - A.ino
               - B - B.ino
    - AAA.h
    - BBB.h
    - CCC.h
    - BBB.cpp
    - CCC.cpp

It works well. But I want to grouping a library source files like below.

AAA - same as above
    - src - AAA.h
          - BBB.h
          - CCC.h
          - BBB.cpp
          - CCC.cpp

It doesn't work at all.

Arduino IDE shows the message "Specified folder/zip file does not contain a valid library".

But, WiFi101 library was made by src folder. Why not me?

I make my own library for arduino.

The file structure is like below.

AAA - README.md
    - examples - A - A.ino
               - B - B.ino
    - AAA.h
    - BBB.h
    - CCC.h
    - BBB.cpp
    - CCC.cpp

It works well. But I want to grouping a library source files like below.

AAA - same as above
    - src - AAA.h
          - BBB.h
          - CCC.h
          - BBB.cpp
          - CCC.cpp

It doesn't work at all.

Arduino IDE shows the message

Specified folder/zip file does not contain a valid library.

But, WiFi101 library was made by src folder. Why isn't it possible for mine?

Post Migrated Here from stackoverflow.com (revisions)
Source Link
HoYa
  • 133
  • 2

Arduino library making

I make my own library for arduino.

The file structure is like below.

AAA - README.md
    - examples - A - A.ino
               - B - B.ino
    - AAA.h
    - BBB.h
    - CCC.h
    - BBB.cpp
    - CCC.cpp

It works well. But I want to grouping a library source files like below.

AAA - same as above
    - src - AAA.h
          - BBB.h
          - CCC.h
          - BBB.cpp
          - CCC.cpp

It doesn't work at all.

Arduino IDE shows the message "Specified folder/zip file does not contain a valid library".

But, WiFi101 library was made by src folder. Why not me?