Wrong library?

I'm just starting with arduino and so far with success but i've run into a strange issue I can't resolve.
I was experimenting with the adafruit library and got the ws2812b led strip working on a nano. Next I made a led matrix out of the ws2812b led's and tried to get NEOMATRIX library to work.

The strange part is that in create online I get the error shown below but the exact same program copied to the local arduino IDE works fine.

Reading through the error below I think the create version is using the incorrect library but I cannot figure out why and how to make it use the adafruit library.

Please help :slight_smile:

arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/378329601 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/852793002/pinned -libraries /tmp/852793002/custom -fqbn arduino:avr:nano:cpu=atmega328 -verbose=false /tmp/852793002/matrixtest

Multiple libraries were found for "Adafruit_NeoPixel.h"

Used: /home/admin/builder/arduino-builder/latest/pinduino-1.0.0

Not used: /home/admin/builder/arduino-builder/latest/Adafruit NeoPixel-1.0.6

Not used: /home/admin/builder/arduino-builder/latest/Adafruit NeoPixel-1.0.6

Not used: /home/admin/builder/arduino-builder/latest/Adafruit NeoPixel-1.0.6

Not used: /home/admin/builder/arduino-builder/latest/Adafruit NeoPixel-1.0.6

In file included from /tmp/852793002/matrixtest/matrixtest.ino:5:0:

/home/admin/builder/arduino-builder/latest/Adafruit NeoMatrix-1.1.2/Adafruit_NeoMatrix.h:72:5: error: 'neoPixelType' has not been declared

neoPixelType ledType = NEO_GRB + NEO_KHZ800);

^

/home/admin/builder/arduino-builder/latest/Adafruit NeoMatrix-1.1.2/Adafruit_NeoMatrix.h:79:5: error: 'neoPixelType' has not been declared

neoPixelType ledType = NEO_GRB + NEO_KHZ800);

^

exit status 1

Hi @jetlag,
can you share your sketch link please?
Thanks

This is the sketch with the error.

As I said before , this same sketch does compile and load using the IDE and I did manage to compile and upload another sketch using the same library with arduino create like the one below.

Hello, we managed to find the problem. Now it should compile even the old sketch. If it doesn't let us know. Thanks for the report.

Thanks a lot!

Just now, while working on this sketch this same error pops up again. It was working and the next moment the error as stated above is there again using the incorrect library :frowning:

Oh no! We will look into it again, sorry about that

Ok the Desktop IDE team will temporary remove the Pinduino library from the Library Manager and ask the Pinduino developer to remove the Adafruit_NeoPixel.h from there, that is what is causing the issue with your library. We will let you know when that happens.

You can use your library again, a temp fix has been pushed online. Tomorrow we will release the long term one. Thanks for your report!

The long term solution is live now, please let us know if you still encounter this issue!

Working again! Thanks.

It seems I am having the same issue:

Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: /home/admin/builder/opt/libraries/latest/jm_liquidcrystal_i2c-1-0-0
Not used: /tmp/014009562/pinned/liquidcrystal-i2c-1-1-2
Not used: /home/admin/builder/opt/libraries/latest/liquidcrystal-i2c-1-1-2

How can I force it to forget using jm_liquidcrystal_12c-1-0-0, and keep using liquidcrystal-i2c-1-1-2.

My program works when I compile with the local version.
tks.

Hello prangel, usually pinning a certain library should tell the builder to use that specific library. Unfortunately this time it wasn't working, so we just blacklisted the jm_liquidcrystal library, and in the meantime we'll try to find a long term solution

I have the exact same problem

How can I force it to forget using jm_liquidcrystal_12c-1-0-0, and keep using liquidcrystal-i2c-1-1-2.

I have even downloaded liquidcrystal-i2c-1-1-2 and put this in a custom library in the hope it would load it in preference (as per the documentation), but still the jm_liquidcrystal_12c-1-0-0 library loads.

Very frustrating.

Hi does this Problem still exists and how to overcome it!

any resolution to this issue. I am getting the same error and don't want to use - jm_liquidcrystal_12c. However the compiler is complaining about it...

Hi, I've the same problem,
please help

./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:avr:uno -build-cache /tmp -build-path /tmp/551495427/build -verbose -prefs runtime.tools.avr-gcc.path=./opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs runtime.tools.avrdude.path=./opt/tools/avrdude/6.3.0-arduino14 -prefs runtime.tools.arduinoOTA.path=./opt/tools/arduinoOTA/1.2.1 -libraries /tmp/551495427/custom -libraries /tmp/551495427/pinned /tmp/551495427/buttoncycle

Multiple libraries were found for "Adafruit_NeoPixel.h"

Used: /tmp/551495427/custom/Adafruit_NeoPixel-master

Not used: /tmp/551495427/pinned/adafruit_neopixel_1_1_6

Not used: /home/ubuntu/opt/libraries/latest/pinduino_1_2_10

Not used: /home/ubuntu/opt/libraries/latest/adafruit_neopixel_1_1_6

Using library Adafruit_NeoPixel-master at version 1.1.1 in folder: /tmp/551495427/custom/Adafruit_NeoPixel-master

lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of the expected 4.1

compilation terminated.

lto-wrapper: fatal error: ./opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/ubuntu/opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status

exit status 1

@albertaarts there are issues with compilation of avr boards, we are working on that, see other threads in the forum: