The solutions found here are quite good, but if your model has some different types of layers not supported by these libraries, I would recommend doing the following:
- Converting the Keras model to a tensorflow model.
- Freeze the model and use Tranform graph tool provided by tensorflow (you'll have to build it from source with bazel)
- Compile the C++ API tensorflow library to use it in your project.
- Use the C++ API tensorflow library and link the libraries to your project.
If you want to use a something differentcompiler than bazel (like g++ for example) you can follow this great tuturial:
http://tuatini.me/building-tensorflow-as-a-standalone-project/