leleamol commented on issue #12849: [cmake][cpp-package] Building with cmake does not install the cpp-package API URL: https://github.com/apache/incubator-mxnet/issues/12849#issuecomment-430707256 Hi, The cpp-package APIs do not get install after running 'make install'. In order to consume the C++ API please follow the steps below. Ensure that the MXNet shared library is built from source with the USE_CPP_PACKAGE = 1. Include the MxNetCpp.h in the program that is going to consume MXNet C++ API. ```#include <mxnet-cpp/MxNetCpp.h>``` While building the program, ensure that the correct paths to the directories containing header files and MXNet shared library are specified. Typically, paths to the following directories in the MXNet respository would be needed. The 'incubator-mxnet' in following path is a directory where MXNet Github repository is cloned (recursively.) ``` incubator-mxnet\3rdparty\tvm\nnvm\include``` ```incubator-mxnet\dmlc-core\include``` ```incubator-mxnet\include``` The program links the MXNet shared library dynamically. Hence the library needs to be accessible to the program during runtime. This can be achieved by including the path to the shared library in the environment variable LD_LIBRARY_PATH for Linux, Mac. and Ubuntu OS and PATH for Windows OS. Please note that the cpp-package API are not standalone API yet. The MXNet sources are needed to be accessible while building the program that intends to use cpp-package API. Please refer to [Makefile](https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/Makefile) in [cpp-package/example](https://github.com/apache/incubator-mxnet/tree/master/cpp-package/example) directory. I hope this helps. -Amol
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
