ArduinoCore-samd-master Zip library failed to istall on IDE

If I install ArduinoCore-samd-master Zip library on IDE 2.2.1 I got error message:
Error: 13 INTERNAL: Library install failed: moving extacted archive to destination dir: library not valid

Hi @antal_peter. ArduinoCore-samd is an Arduino boards platform, not a library. So you can not install it using Arduino IDE's "Add .ZIP Library..." feature. So the error you got is correct and expected.

Whenever possible, you should use the Arduino IDE Boards Manager to install the stable release version of Arduino boards platforms.

If you have some specific reason for wanting to use a different method of installing the platform. If so, I can provide some guidance in doing so. But first I would need you to provide a detailed explanation of your reason for doing it so that I can understand the best approach to suggest.

Now is getting more clear. I have a raspberry pi pico board that worked fine with I2S.h earlier. The new version of IDE 2.2.1 only support Ardunio hardware. But you forget to mention. I am right?

No, there is no change in support for hardware in Arduino IDE. If you were able to use I2S.h "earlier" with your Raspberry Pi Pico board, then you should be able to do the same now.

But I don't understand what any of that has to do with your attempt to install ArduinoCore-samd. That is the Arduino boards platform for the official ATSAMD21G18-based boards (e.g., MKR boards, Nano 33 IoT, Zero). You need a different boards platform to add support to Arduino IDE for the Raspberry Pi Pico.

I'm aware of two different platforms for this board:

Hi Mr ptillisch!

Thanks for the help. I try to add the Downloaded arfuino-pico-master zip file to the library, but I got the following error:

Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid

What sould I do?

Peter

You should provide the information I requested in my previous reply:

I can help you, but only if you make the effort to give me the information I need to do that. The decision of how this will go is yours to make.

The original problem was that my user name was Péter in the Windows 10. Arduino was set the libraries to somewhere user/documents/local... Since I install the whole Arduino there it worked partly. After I create log files in Arduino IDE 2 and study it, I found the whole problem with the libraries was my user name. So I create a new user name Peter without accent and clear the old one. The new Peter user create only C:/Documents/Arduino/libraries. Now it has three library:

Adafruit_Zero_DMA_Library
Console
Mulibutton

My working directory is D:

Arduino-IRremote-master
Console-Master
DHR_arduino
libraries
pico
Pico Audio
Pico_dokumentáció

I installed the

The official "Arduino Mbed OS Nano Boards" platform. I try to install the "Raspberry Pi Pico/RP2040" boards platform from Earle F. Philhower, III to download the from github the

arduino-pico-master. After I open the IDE Sketch->Include Library->Add .Zip Library I got the following error message:

Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid.

Pls Help to find out what is the problem

Peter

As I have already explained multiple times, "Raspberry Pi Pico/RP2040" boards platform is not a library. It is essential for you to understand that libraries and platforms are two distinct things. They are installed to different locations via different procedures.

Please try this:

  1. Click the following link to open the "Raspberry Pi Pico/RP2040" platform's official documentation in your web browser:
    Installation — Arduino-Pico 3.5.0 documentation
  2. Copy the package_rp2040_index.json URL you find on that page.
  3. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  4. Enter the URL you copied during the previous step into the "Additional Boards Manager URLs" field in the "Preferences" dialog.
    :exclamation: If there are already Boards Manager URLs in the field, separate them with commas.
  5. Click the "OK" button.
  6. You will now see a "Downloading index: ..." notification at the bottom right corner of the IDE window. Wait for that notification to close.
  7. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  8. Scroll down through the list of boards platforms until you see the "Raspberry Pi Pico/RP2040" entry.
  9. Click the "INSTALL" button at the bottom of the entry.
  10. Wait for the installation to finish.

If you have any problems or questions while following those instructions, provide a detailed description here and I'll provide further assistance.

I follow your explanation. I got the error message:

In file included from c:\Users\Peter\Documents\Arduino\libraries\I2S\src\I2S.cpp:24:0:
C:\Users\Peter\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nano\4.0.6\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/common/pico_stdlib/include/pico/stdlib.h:11:10: fatal error: pico/stdio.h: No such file or directory
#include "pico/stdio.h"
^~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Dear Ptillisch!

Many thank for your help! Now it started to work! It compiles and burn, and work again!

These warnings are left:

Using board 'rpipico' from platform in folder: C:\Users\Peter\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.5.0
Using core 'rp2040' from platform in folder: C:\Users\Peter\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.5.0

loading library from c:\Users\Peter\Documents\Arduino\libraries\arduino-pico-master: invalid library: no header files found

Multiple libraries were found for "I2S.h"
Used: C:\Users\Peter\Documents\Arduino\libraries\I2S
Not used: C:\Users\Peter\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.5.0\libraries\I2S
Multiple libraries were found for "AudioBufferManager.h"
Used: C:\Users\Peter\Documents\Arduino\libraries\AudioBufferManager
Not used: C:\Users\Peter\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.5.0\libraries\AudioBufferManager

Peter

You are welcome. I'm glad it is working now.

This warning is caused by your attempt to install the platform as a library. The incorrectly installed platform won't do any actual harm, but you might find it annoying or distracting to see this warning all the time. If so, you can fix the warning by deleting the folder at the following path:

 c:\Users\Peter\Documents\Arduino\libraries\arduino-pico-master

:warning: Please be careful when deleting things from your computer. When in doubt, back up!

The correct installation of the "Raspberry Pi Pico/RP2040" platform you made following the instructions in my previous reply is in a completely different location, so deleting this superfluous arduino-pico-master folder won't affect the "Raspberry Pi Pico/RP2040" platform installation in any way.

The "I2S" and "AudioBufferManager" libraries are bundled with the "Raspberry Pi Pico/RP2040" platform. They are intended to be managed by Boards Manager, installed and updated along with the platform. It is generally a bad idea to install this type of library separately as you have done because that causes the copy you installed to be used when compiling sketches instead of the copy bundled with the platform. A given version of the platform is expected to be used with the version of the library bundled with the platform and there might be some incompatibilities might occur when you break that association by installing the libraries separately.

There are some advanced use cases where it might make sense to install the libraries separately, but unless you have a specific reason for installing them separately, I recommend deleting those installations of the libraries. You can do that by deleting the folders at the following two paths:

C:\Users\Peter\Documents\Arduino\libraries\I2S
C:\Users\Peter\Documents\Arduino\libraries\AudioBufferManager

After you do that, Arduino IDE will use the copies of the libraries that are bundled with the "Raspberry Pi Pico/RP2040" platform so you shouldn't notice any effects other than the absence of those "Multiple libraries were found for ..." messages in the compilation output.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.