PlatformIO Community

Where I can find these headers: <PString.h> <Streaming.h>?


#1

Could someone please tell me what these headers do and where I can find them:
#include <PString.h>
#include <Streaming.h>

I tried to search the registry but could not find any library that use these headers and sketch won’t compile without them.

PIO: #include errors detected. Please update your includePath. IntelliSense features for this translation unit


#2

Seems like you can get PString from http://arduiniana.org/libraries/pstring/. Extract the ZIP file in the lib/ folder. And Streaming.h from https://github.com/geneReeves/ArduinoStreaming.


#3

Thank you very much for your prompt follow up. Unfortunately, it didn’t work. Here’s what I got:

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LibraryManager: Installing ArduinoStreaming
git version 2.20.1.windows.1
Cloning into 'c:\Users\admin\Documents\PlatformIO\Projects\CaptivePortal\.piolibdeps\_tmp_installing-mzxevh-package'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 9 (delta 0), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (9/9), done.
Error: Traceback (most recent call last):
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\__main__.py", line 120, in main
    cli(None, None, None)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\core.py", line 680, in main
    rv = self.invoke(ctx)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\decorators.py", line 16, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 107, in cli
    result = (envname, ep.process())
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 207, in process
    result = self._run()
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 302, in _run
    self.verbose)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 325, in _autoinstall_libdeps
    ctx.invoke(cmd_lib_install, libraries=[lib], silent=not verbose)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "c:\users\admin\.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\commands\lib.py", line 103, in lib_install
    library, silent=silent, interactive=interactive, force=force)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 352, in install
    force=force)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 721, in install
    name, url, requirements, track=True)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 527, in _install_from_url
    return self._install_from_tmp_dir(_tmp_dir, requirements)
  File "c:\users\admin\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 606, in _install_from_tmp_dir
    shutil.move(tmp_dir, pkg_dir)
  File "C:\Users\admin\.platformio\python27\Lib\shutil.py", line 300, in move
    rmtree(src)
  File "C:\Users\admin\.platformio\python27\Lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Users\admin\.platformio\python27\Lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Users\admin\.platformio\python27\Lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Users\admin\.platformio\python27\Lib\shutil.py", line 252, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Users\admin\.platformio\python27\Lib\shutil.py", line 250, in rmtree
    os.remove(fullname)
WindowsError: [Error 5] Access is denied: 'c:\\Users\\admin\\Documents\\PlatformIO\\Projects\\CaptivePortal\\.piolibdeps\\_tmp_installing-mzxevh-package\\.git\\objects\\35\\11f1183d20979f29cf51e29583c6509caca7a6'

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
  `pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
  https://docs.platformio.org/page/faq.html

* Report this problem to the developers
  https://github.com/platformio/platformio-core/issues

============================================================

The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

PString sources added to lib and Streaming was added using:
lib_deps = https://github.com/geneReeves/ArduinoStreaming


#4

I have updated PIO, but still having the same include issue:


#5

o_O delete your .piolibdeps folder and retry. Did you clone the repository with different rights? Running the IDE as admin?


#6

Wrong filesystem structure, must be lib/Pstring/Pstring.h and lib/Pstring/Pstring.cpp, same with the other lib


#7

OK. Let me try that!


#8

No, I’m not running as admin. “Admin” is only my username.


#9

I did it and now the project compiles successfully!
Thank you again for your awesome support!