Cannot compile a cpp predictor including the library c_predict_api.h #13248
Replies: 4 comments
-
@mxnet-label-bot add [C++, Question] Hi @CarlosYeverino, have you taken a look at the C++ Tutorial at https://mxnet.incubator.apache.org/tutorials/c%2B%2B/basics.html? |
Beta Was this translation helpful? Give feedback.
-
@mxnet-label-bot update [C API, Question] |
Beta Was this translation helpful? Give feedback.
-
I think it is not a missing library but a missing header file, have you included |
Beta Was this translation helpful? Give feedback.
-
Hi @zachgk and @ThomasDelteil , thanks for your replay. I managed to fix the issue by copying the compiled files from the directories lib and include of my cloned repository to /usr/lib and /usr/include respectively. However, I would like to know how to fix the issue using environment variables in Ubuntu insted of copying the files to /usr. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I successfully installed mxnet on Ubuntu 16.04 LTS by doing the following:
Now I want to create a cpp predictor that includes the library c_predict_api.h, however, when I compile the the program I got the following error:
Then I added the path /incubator-mxnet/lib to LD_LIBRARY_PATH in ~/.bashrc and now I get the follofing output for LD_LIBRARY_PATH:
However, this did not solve the issue.
This is why I have in the CMakeLists.txt related to mxnet:
set(LIBS ${LIBS} mxnet)
I also can see the following in build/dp_mastercomponent/cpp/dp_mastercomponent.cmake:
INTERFACE_LINK_LIBRARIES "/usr/lib/x86_64-linux-gnu/libarmadillo.so;mxnet"
What is the proper way to make MXNet visible to the cpp predictor?
Beta Was this translation helpful? Give feedback.
All reactions