07-25-2014 12:19 PM
After some more tests I can confirm it does work, serializing and deserializing without problems.
I did build boost but I am not sure if it is needed as the unordered library is only headers.
To build it I just followed the github instructions:
After that the "stage" folder is created with the compiled libraries and headers, and that's the folder to point in CPPFLAGS
I also forgot to mention that to to enable boost in protobuf you must modify "config.h" in protobuf folder after calling configure (every configure call will regenerate this file) to include:
#define HASH_MAP_H <boost/unordered_map.hpp> #define HASH_NAMESPACE boost #define HASH_SET_H <boost/unordered_set.hpp> #define HASH_MAP_CLASS unordered_map #define HASH_SET_CLASS unordered_set
and to comment the lines with the previous values of those defines.
07-25-2014 12:48 PM
Great thanks, that's very helpful.
I can confirm that you don't need to compile boost, you just need to specify the boost root directory in CPPFLAGS. For me this was:
It's a shame that the config.h file needs rewriting each time you do a build, I tried using config.h.in to hold the modifications but for some reason that didn't work - more investigation required...
07-28-2014 04:28 AM