I would like to test my firmware on a linux machine before flashing it to a photon. I cloned the firmware code and checked out the branch latest since I want to develop firmware for a photon device. I then tried to compile with PLATFORM=gcc, but I ran into compilation errors (which I patch-hacked myself) and am now running into various link errors. Am I going about this right? Is PLATFORM=gcc supposed to compile the firmware for a linux PC or is it intended for something else? Am I trying this in the wrong branch perhaps?
Here are some of the compilation errors I ran into:
./inc/socket_hal.h:98:33: error: expected identifier before numeric constant src/gcc/socket_hal.cpp:34:19: error: boost_socklen_t does not name a type
And the first link errors:
firmware/system/src/main.cpp:129: undefined reference to `wlan_connect_cancel' firmware/system/src/main.cpp:148: undefined reference to `HAL_Set_Sys_Health'
I have gcc 5.1.0 and BOOST_LIB_VERSION 1_55 on ubuntu 12.04.