Got myself a photon, and got it working with the web IDE. Flashed the flashing LED firmware, etc.
Now I was trying to build the offline toolchain. I’m using Ubuntu 14.04. But when I do
# ~/Desktop/sources/photon/firmware/modules$ make PLATFORM=photon clean all program-dfu
... In file included from src/spark_protocol.h:29:0, from src/spark_protocol.cpp:25: src/spark_descriptor.h:31:22: fatal error: functional: No such file or directory #include <functional> ^ compilation terminated. make: *** [../build/target/communication/platform-6-m-prod-6/src/spark_protocol.o] Error 1 make: Leaving directory `/home/xopxe/Desktop/sources/photon/firmware/communication' make: *** [communication] Error 2 make: Leaving directory `/home/xopxe/Desktop/sources/photon/firmware/modules/photon/system-part1' make: *** [/home/xopxe/Desktop/sources/photon/firmware/modules/photon/system-part1/makefile] Error 2
I guess the missing library is boost’s functional.hpp, but I have it installed. Perhaps something should be done to point to the boost installation? I’ve looked around and seems nobody gets this error. Any idea would be very helpful.