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/10/26 03:06:50 UTC

[GitHub] jinfagang opened a new issue #8434: 'nnvm/c_api.h' file not found #include "nnvm/c_api.h"

jinfagang opened a new issue #8434: 'nnvm/c_api.h' file not found #include "nnvm/c_api.h"
URL: https://github.com/apache/incubator-mxnet/issues/8434
 
 
   Dear mxnet develop team and all excellent developers:
    thanks for the wonderful work. I got some issue by using mxnet cpp interface. I built mxnet successful and generated libmxnet_static.a file, I linked it into my project and all right in cmake.
   
   and I copied all the mxnet-cpp/* which is the head file into my include dir.  Most method can be imported from static library but when I try to build it, it says:
   
   ```
   In file included from /Volumes/xs/CodeSpace/ng/ai/frameworks/mxnet_space/mxnet_cpp_test/./include/mxnet-cpp/executor.h:33:
   /Volumes/xs/CodeSpace/ng/ai/frameworks/mxnet_space/mxnet_cpp_test/./include/mxnet-cpp/base.h:31:10: fatal error: 
         'nnvm/c_api.h' file not found
   #include "nnvm/c_api.h"
            ^~~~~~~~~~~~~~
   1 error generated.
   make[2]: *** [CMakeFiles/fuck.dir/fuck.cpp.o] Error 1
   make[1]: *** [CMakeFiles/fuck.dir/all] Error 2
   make: *** [all] Error 2
   ```
   
   it seems mxnet-cpp base.h requires nnvm package which are not included in mxnet-cpp folder, so it doesn't found it.  if it does, then those file should also copied into that folder incase for can not find error.
   
   Well, I just copied nnvm headers, but it again says:
   
   ```
   /Volumes/xs/CodeSpace/ng/ai/frameworks/mxnet_space/mxnet_cpp_test/./include/mxnet-cpp/optimizer.hpp:37:10: fatal error: 
         'mxnet-cpp/op.h' file not found
   #include "mxnet-cpp/op.h"
            ^~~~~~~~~~~~~~~~
   105 warnings and 13 errors generated.
   make[2]: *** [CMakeFiles/fuck.dir/fuck.cpp.o] Error 1
   make[1]: *** [CMakeFiles/fuck.dir/all] Error 2
   make: *** [all] Error 2
   
   ```
   
   this file I don't know how to find it, does anybody helps me? Any suggestions and advise would be very appreciated!
   

----------------------------------------------------------------
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