When you adding the library on PlatformIO, it tries to compile the main.cc, and fails. This file is in the src directory of the library. If you remove this file (main.cc), everything works fine. I think that maybe is a wrong directory project schema.
PMSensor-HPMA115/src/main.cc:4:10: fatal error: SoftwareSerial.h: No such file or directory
When you adding the library on PlatformIO, it tries to compile the
main.cc
, and fails. This file is in thesrc
directory of the library. If you remove this file (main.cc), everything works fine. I think that maybe is a wrong directory project schema.Provisional workaround: remove
main.cc