Hello,
We use our own development enviroment build around Eclipse.
Today we cloned the latest SparkCore Firmware from GitHub, the previous SparkCore Firmware version was roughly a month old.
Unfortunately when we do a build we get the following error:
make all
In file included from src/handshake.cpp:25:
In file included from src/handshake.h:25:
In file included from src/../lib/tropicssl/include/tropicssl/rsa.h:38:
src/../lib/tropicssl/include/tropicssl/bignum.h:39:10: fatal error: 'crypto_structures.h' file not found
#include "crypto_structures.h"
        ^
1 error generated.
make: *** [src/handshake.o] Error 1
src/../lib/tropicssl/include/tropicssl/bignum.h:39:10: fatal error: 'crypto_structures.h' file not found
Obvious it is missing the crypto_structues.h file.
Any idea to solve this error?
So the deletions in some of the header files were “moved” to the crypto header but the actual header file was not added to the github? It looks like we can just put the uncommented lines back into the header for now.
Thanks. Question on building locally. Which is the “best / latest” versions to check out. The firmware looks like deep-update but there are many communication lib versions.
@Dave, for cloning we use the procedure as described in the core-firmware readme:
Method 1: Through the git command line interface.
Open up a terminal window, navigate to your destination directory and type the following commands:
(Make sure you have git installed on your machine!)
git clone https://github.com/spark/core-firmware.git
git clone https://github.com/spark/core-common-lib.git
git clone https://github.com/spark/core-communication-lib.git
We asume that in this case we get a clone of the master branch.
Please correct me when i am wrong.
Yup! When you clone like that you do get the master branch. We generally do work in feature branches and merge them in with pull requests. So we’re trying to treat the master branches of these repos as dev / generally stable. When we do an official release, we’ll tag the branch as a release ( https://github.com/spark/core-firmware/releases ). The build IDE uses the `compile-server2’ branch, which is also considered stable, but lags behind master while we’re testing changes.
There was a commit from Mohit here ( https://github.com/spark/core-communication-lib/commits/master ), and it’s gone now. Try doing another pull and reset hard to HEAD in the communications lib. You shouldn’t see Mohit’s commit in your git log.