Problem with ExpressifLink.h file on AWS library

Continuing the discussion from Problem to integrate AWS library:

Hi, I have put the library in the right folder but it gave me an error that say that the ExpressLink.h file doesn't exist but it's in the folder src of the library, what I have to do?
Thanks

This is the error
test.ino:6:10: fatal error: ExpressLink.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

And this is where the file are

image

Hi @geb. This is unexpected. I just gave it a try and it worked for me.

I'm going to ask you to post the full verbose output from a compilation.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Open your "test" sketch in Arduino IDE.
  2. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  3. Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
  4. Click the "OK" button.
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.
  6. Wait for the compilation to fail.
  7. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer toolbar:
    Upload icon on toolbar
    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

Hi @ptillisch
This is the code, thanks

Arduino: 1.8.19 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\gabbov\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\gabbov\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\gabbov\AppData\Local\Temp\arduino_build_408684 -warnings=none -build-cache C:\Users\gabbov\AppData\Local\Temp\arduino_cache_997459 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\tests\tests.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\gabbov\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\gabbov\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\gabbov\AppData\Local\Temp\arduino_build_408684 -warnings=none -build-cache C:\Users\gabbov\AppData\Local\Temp\arduino_cache_997459 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\tests\tests.ino

Using board 'mega' from platform in folder: C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Using core 'arduino' from platform in folder: C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...

"C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "C:\Users\gabbov\AppData\Local\Temp\arduino_build_408684\sketch\tests.ino.cpp" -o nul

Alternatives for AUnit.h: [AUnit@1.7.0]

ResolveLibrary(AUnit.h)

-> candidates: [AUnit@1.7.0]

"C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\libraries\AUnit\src" "C:\Users\gabbov\AppData\Local\Temp\arduino_build_408684\sketch\tests.ino.cpp" -o nul

Alternatives for Wire.h: [Wire@1.0]

ResolveLibrary(Wire.h)

-> candidates: [Wire@1.0]

"C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\libraries\AUnit\src" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src" "C:\Users\gabbov\AppData\Local\Temp\arduino_build_408684\sketch\tests.ino.cpp" -o nul

Alternatives for ExpressLink.h: []sLink.h: No such file or directory

ResolveLibrary(ExpressLink.h)compilation terminated.

-> candidates: []

Using library AUnit at version 1.7.0 in folder: C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\aws-iot-expresslink-library-arduino-main\libraries\AUnit

Using library Wire at version 1.0 in folder: C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

I see the problem:

For some reason you changed your "Sketchbook location" preference to the folder where the library is installed. You must not do that. Arduino IDE installs libraries to the libraries subfolder of the sketchbook.

Please try this:

  1. Select File > Preferences...(or Arduino > Preferences... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Replace the text in the "Sketchbook location" field with this:
    C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino
    
  3. Click the "OK" button.

Now try compiling or uploading the sketch again. Hopefully this time it will be successful.


If you get an error about AUnit.h, the reason is that you installed the "AUnit" library during the time when you had the other "Sketchbook location" preference, so the IDE installed that library to a different location from where it expects to find libraries now. You can fix this error by using the Arduino IDE Library Manager to install the "AUnit" library again.

Hi @ptillisch
The problem is the same I don't know why

Arduino: 1.8.19 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

test.ino:6:10: fatal error: ExpressLink.h: No such file or directory

compilation terminated.

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

Invalid library found in C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\libraries: no headers files (.h) found in C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\libraries

Invalid library found in C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\sketch_may19a: no headers files (.h) found in C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\sketch_may19a



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Arduino: 1.8.19 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\gabbov\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\gabbov\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=2341_0042 -ide-version=10819 -build-path C:\Users\gabbov\AppData\Local\Temp\arduino_build_698541 -warnings=none -build-cache C:\Users\gabbov\AppData\Local\Temp\arduino_cache_865590 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\aws-iot-expresslink-library-arduino-main\tests\tests.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\gabbov\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\gabbov\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=2341_0042 -ide-version=10819 -build-path C:\Users\gabbov\AppData\Local\Temp\arduino_build_698541 -warnings=none -build-cache C:\Users\gabbov\AppData\Local\Temp\arduino_cache_865590 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\aws-iot-expresslink-library-arduino-main\tests\tests.ino

Using board 'mega' from platform in folder: C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Using core 'arduino' from platform in folder: C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...

"C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "C:\Users\gabbov\AppData\Local\Temp\arduino_build_698541\sketch\tests.ino.cpp" -o nul

Alternatives for AUnit.h: [AUnit@1.7.0]

ResolveLibrary(AUnit.h)

-> candidates: [AUnit@1.7.0]

"C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\AUnit\src" "C:\Users\gabbov\AppData\Local\Temp\arduino_build_698541\sketch\tests.ino.cpp" -o nul

Alternatives for Wire.h: [Wire@1.0]

ResolveLibrary(Wire.h)

-> candidates: [Wire@1.0]

"C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\AUnit\src" "-IC:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src" "C:\Users\gabbov\AppData\Local\Temp\arduino_build_698541\sketch\tests.ino.cpp" -o nul

Alternatives for ExpressLink.h: []

ResolveLibrary(ExpressLink.h)

-> candidates: []

test.ino:6:10: fatal error: ExpressLink.h: No such file or directory

compilation terminated.

Using library AUnit at version 1.7.0 in folder: C:\Users\gabbov\OneDrive - ASSA ABLOY Group\Documents\Arduino\libraries\AUnit

Using library Wire at version 1.0 in folder: C:\Users\gabbov\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

That is odd. Everything looks fine to me now and I can't reproduce it on my computer. The use of Microsoft "OneDrive" has been identified as the cause of mysterious failures in the past (I don't use it on my computer so that is a difference between our systems), but I see it is able to find the "AUnit" library which is also on OneDrive so I'm not confident this is the problem.

My suggestion is for you to try Arduino IDE 2.x. It is available for download from the links listed on the "Software" page here:

It is possible the problem you are experiencing is specific to the obsolete Arduino IDE version 1.8.19 you are using (though I did try it with 1.8.19 and didn't experience the problem). I can't really allocate any more time toward troubleshooting problems with obsolete versions of Arduino IDE, but am more motivated to investigate problems that occur with the latest version of Arduino IDE, since that work has the added potential benefit for the ongoing development work in addition to benefiting you.

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