Can not build Arduino project because "fatal error: IPStack.h: No such file or directory"

Operating system: macOS 10.12.3
PlatformIO, version 3.2.1

Description of problem:
Can not build Arduino project because “fatal error: IPStack.h: No such file or directory”. Building with Arduino IDE works. PlatformIO does not seem to find the MQTT-Cleint (Paho) library (https://projects.eclipse.org/projects/technology.paho/downloads) which, like all others, is located in “~ / Documents / Arduino / libraries”.

The example code can be found here: https://github.com/odelot/aws-mqtt-websockets/blob/master/examples/aws-mqtt-websocket-example/aws-mqtt-websocket-example.ino

Here is the log:
[Mon Mar 27 13:02:52 2017] Processing huzzah (platform: espressif8266, board: huzzah, framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via -v, --verbose option
Converting DuftsystemAWS-BMS.ino
Collected 43 compatible libraries
Looking for dependencies…
Library Dependency Graph
|-- v1.0
|--
| |--
| | |-- v1.0
| |-- v2.0.6
| | |-- v1.0
| | |-- v1.0
| | |-- <Ethernet(esp8266)> v1.0.4
| | | |-- v1.0
| | |-- v1.0
|-- v1.0
|--
| |-- v1.0
|-- v1.0
|-- v2.0.6
| |-- v1.0
| |-- v1.0
| |-- <Ethernet(esp8266)> v1.0.4
| | |-- v1.0
| |-- v1.0
Compiling .pioenvs/huzzah/src/DuftsystemAWS-BMS.ino.o
/…/DuftsystemAWS-BMS.ino:18:21: fatal error: IPStack.h: No such file or directory
#include <IPStack.h>
^
compilation terminated.
Compiling .pioenvs/huzzah/FrameworkArduino/Tone.o
Compiling .pioenvs/huzzah/FrameworkArduino/Updater.o
*** [.pioenvs/huzzah/src/DuftsystemAWS-BMS.ino.o] Error 1
Compiling .pioenvs/huzzah/FrameworkArduino/WMath.o
======================================================================================= [ERROR] Took 1.21 seconds =======================================================================================

Someone an idea?
Thank you very much.

http://docs.platformio.org/en/latest/projectconf.html#projectconf-lib-extra-dirs

Hi,

that does not work either:
what else can I try?

[platformio]
src_dir=DuftsystemAWS-BMS
lib_dir=~/Documents/Arduino/libraries
lib_extra_dirs = ~/Documents/Arduino/libraries/MQTTClient

Please be careful with documentation. The only one thing that you need is to specify EXTRA DIRECTORY that contains multiple libraries.

[platformio]
lib_extra_dirs = ~/Documents/Arduino/libraries

Finish.

Hi,

sry it tried it also without “MQTTClient”, only with “lib_dir”, only witch “lib_extra_dir”, with both. But the library is not found, even with these settings.

The error remains:

/.../DuftsystemAWS-BMS.ino:25:21: fatal error: IPStack.h: No such file or directory
#include <IPStack.h>
^
compilation terminated.

Where is located this IPStack.h file?

~/Documents/Arduino/libraries/MQTTClient/IPStack.h

I’ve just added a Paho library for Arduino

Now, remove [platformio] section and use

[env:huzzah]
...
lib_deps = Paho

Thank you very much! Now it works :smiley: