I keep getting an error when trying to compile my code

I am very new to arduino, and even newer to the Arduino nano esp32, I am trying to make a Bluetooth gamepad using the ESP32-BLE-Gamepad library. However, every time I upload, I get an error that says :

In file included from /var/run/arduino/directories-user/libraries/NimBLE-Arduino/src/NimBLEDevice.h:21:0,
from /run/arduino/sketches/BluePad_32/BluePad_32.ino:6:
/var/run/arduino/directories-user/libraries/NimBLE-Arduino/src/nimconfig.h:6:10: fatal error: ext_nimble_config.h: No such file or directory
#include "ext_nimble_config.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I don't know what to do :frowning:
It might be important that I am using the cloud editor

Post the complete error in a code block.

Can you try to create a new tab named ext_nimble_config.h in your Arduino Cloud Editor sketch, add the following content, and save it:

#ifndef EXT_NIMBLE_CONFIG_H
#define EXT_NIMBLE_CONFIG_H
#endif

If my memory serves me well, the library expects a user provided configuration file.

The one here would just be empty, meaning you’ll get the default behavior.

Hi @mrrobclownsocks. I'm going to ask you to provide the full output from a compilation.


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


Please do this:

  1. Open your sketch in Arduino Cloud Editor.
  2. Click the button in the Cloud Editor toolbar.
  3. Wait for the compilation to fail.
  4. If the black "Console" panel at the bottom of the Cloud Editor page is minimized, click the ˄ icon at the right side of the "Console" toolbar to expand it.
  5. Click the icon in the top right corner of the black "Console" panel at the bottom of the Cloud Editor page that looks like two pieces of paper ("Copy Console Output"):
  6. Open a reply here on this forum topic by clicking the "Reply" button.
  7. 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 compilation output is correctly formatted.
  8. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  9. Move the cursor outside of the code block markup before you add any additional text to your reply.
  10. Click the "Reply" button to publish the post.

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.

Click here for attachment instructions

  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 reply here on this forum topic by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer 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.

In file included from /var/run/arduino/directories-user/libraries/ESP32-BLE-Gamepad/BleGamepad.h:6:0,
from /run/arduino/sketches/BLE_Test/BLE_Test.ino:29:
/var/run/arduino/directories-user/libraries/NimBLE-Arduino/src/nimconfig.h:6:10: fatal error: ext_nimble_config.h: No such file or directory
#include "ext_nimble_config.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Did you try suggestion from post 3?

Thanks. I was hoping to get some additional information about the problem, but it is not present in that output. So I'm going to ask you to provide the full verbose output from a compilation.


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


Please do this:

  1. Open your sketch in Arduino Cloud Editor.
  2. Click the "Settings" icon at the bottom left corner of the page:

    The "Settings" panel will open.
  3. Select the "Verbose output" radio button under the "Console verbosity" section of the "Settings" panel.
  4. Click the button in the Cloud Editor toolbar.
  5. Wait for the compilation to fail.
  6. If the black "Console" panel at the bottom of the Cloud Editor page is minimized, click the ˄ icon at the right side of the "Console" toolbar to expand it.
  7. Click the icon in the top right corner of the black "Console" panel at the bottom of the Cloud Editor page that looks like two pieces of paper ("Copy Console Output"):
  8. Open a reply here on this forum topic 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.
  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 publish the post.

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.

Click here for attachment instructions

  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 reply here on this forum topic by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer 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.