Cannot Resolve Include Paths in PlatformIO for GuruxDLMS Library

This project works on a vscode platformio.
I am facing issues with resolving include paths in PlatformIO while trying to use the GuruxDLMS library for my ESP8266 project. I have encountered errors related to include paths and missing files. Despite following standard procedures for setting up libraries, I am unable to get the correct paths to work in Visual Studio Code.

  • Library Setup:
  • I have downloaded the GuruxDLMS library from GuruxDLMS GitHub.
  • I placed the .h and .cpp files in the lib/GuruxDLMS directory of my PlatformIO project.
    Configuration:**
    In platformio.ini, I added the following configuration:
    Pred-formatirani tekst[env:esp01_1m]
    Pred-formatirani tekstplatform = espressif8266
    Pred-formatirani tekstboard = esp01_1m
    Pred-formatirani tekstframework = arduino
    Pred-formatirani tekstlib_extra_dirs = path/to/GuruxDLMS.c
    Pred-formatirani tekstlib_deps =
    Pred-formatirani tekst${PROJECT_DIR}/lib/GuruxDLMS
    Pred-formatirani tekstbuild_flags =
    Pred-formatirani tekst-I${PROJECT_DIR}/lib/GuruxDLMS/include
    Pred-formatirani tekstupload_speed = 115200
    Pred-formatirani tekstmonitor_speed = 9600
    Pred-formatirani tekstboard_build.flash_mode = dout
    Pred-formatirani tekstboard_build.ldscript = eagle.flash.1m.ld
    Pred-formatirani tekstupload_port = COM5

Error Cannot open source file "../ArduinoIgnore.h" and Cannot open source file "include/gxignore.h"

This is the link : GitHub - Gurux/GuruxDLMS.c: Gurux DLMS library for ANSI C
in this file, everything is connected, so i created folder GuruxDLMS in project lib, and add two folders (include, src). In the include i copied every .h, and in the src i copried .c/.cpp. and it doesn’t work.

I moved your topic to an appropriate forum category @0utis23.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

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