You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/26 07:42:20 UTC

[GitHub] CoinCheung opened a new pull request #9202: make c++ api deployment more clear V1.0.0

CoinCheung opened a new pull request #9202: make c++ api deployment more clear V1.0.0
URL: https://github.com/apache/incubator-mxnet/pull/9202
 
 
   ## Description ##
   After compiling from the source, the c++ header files are spread among various directories. I have to pick them out and copy them to my /usr/local/include one by one.
   
   I pull the repository to my computer with git, then copy make/config.mk to the upper directory and modify some options in the /make/config.mk file. 
   ```
       $ cd mxnet
       $ cp -riv make/config.mk ./
   ```
   Then I compile with make:
   ```
       $ make
   ```
   after a few hours, the compilation is done. I copied the shared and static libs to my default lib directory, and copied the header files to my default include:
   ```
       $ cp lib/* /usr/local/lib
       $ cp include/ /usr/local/include
   ```
   Then I go to the c++ example directory and download the example data:
   ```
       $ cd cpp-package/example
       $ ./get_mnist.sh
   ```
   I typed the example program given in the page https://mxnet.incubator.apache.org/tutorials/c++/basics.html
   
   but my g++ complains that no header files found:
   ```
   fatal error: mxnet-cpp/MxNetCpp.h: No such file or directory
    #include<mxnet-cpp/MxNetCpp.h>
   ```
   I found it in the directory '/home/coin/build/mxnet/cpp-package/include/mxnet-cpp' and I copied it to my /usr/local/include, and then recompile the example, another header file missing error appears:
   ```
    fatal error: nnvm/c_api.h: No such file or directory
    #include "nnvm/c_api.h"
   ```
   After that I spent quite a few minutes to pick the required header files from the directories to my include paths.  
   
   Do you have any measures to generate the c++ api header files in a single folder and allow me to copy it to my include directory with one clean effort? Or did I misunderstand your intention of the c++ api?
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services