[mlpack-git] [mlpack/mlpack] mlpack_export.h: No such file or directory (#633)

Marcus Edel notifications at github.com
Sun May 1 09:42:13 EDT 2016


Nice catch, I think we should integrate the tutorials code into the build process to avoid such a situation.

So, I think what happens here is that once mlpack is build, the``` mlpack_export.h``` isn't in the right location. Right now I'm not completely sure this is the right way to solve the issue, however here is a simple fix that should work:

Add the following to the ```src/mlpack/CMakeLists.txt``` after line 33.

```
FILE(COPY
    ${CMAKE_CURRENT_BINARY_DIR}/mlpack_export.h
    DESTINATION
    ${CMAKE_SOURCE_DIR}/src/mlpack/)
```

Change ```#include <mlpack_export.h>``` to ```#include <mlpack/mlpack_export.h>``` in all files that include the header (https://github.com/mlpack/mlpack/search?utf8=%E2%9C%93&q=mlpack_export.h&type=Code).

Maybe someone else has a better solution to solve the issue?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/633#issuecomment-216042786
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160501/aa5c333e/attachment-0001.html>


More information about the mlpack-git mailing list