2 Replies Latest reply on Jul 3, 2015 6:13 PM by CMata_Intel

    ERROR While Installing Cereal library in order to add Meta-oic layer to Intel Edison image


      I was trying to add meta-oic layer to my edison image in order to add iotivity packages using the following procedure: http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic/tree/README

      However I got some error while building image (bitbake edison-image) and was suggested to apply the following patch:

      $ git clone https://github.com/USCiLab/cereal.git <src_dir>/extlibs/cereal* $ cd <src_dir>/extlibs/cereal * $ git reset --hard 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245 * $ git apply ../../resource/patches/cereal_gcc46.patch * 

      I am getting the following error on applying the above patch:

      error: patch failed: include/cereal/details/helpers.hpp:55 error: include/cereal/details/helpers.hpp: patch does not apply error: patch failed: include/cereal/details/traits.hpp:411 error: include/cereal/details/traits.hpp: patch does not apply error: patch failed: include/cereal/external/rapidjson/reader.h:402 error: include/cereal/external/rapidjson/reader.h: patch does not apply error: patch failed: include/cereal/external/rapidjson/writer.h:177 error: include/cereal/external/rapidjson/writer.h: patch does not apply 

      I think hard reset with paths are not allowed (I read it on some forum)

      I have no idea How to resolve this error. Can anyone suggest me any fix for this. Or any suggestion on how to apply the above patch. I may be applying it entirely wrong.