Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mxnet compile error "fatal error: ../mshadow_op.h" #123

Open
7oud opened this issue Feb 27, 2018 · 5 comments
Open

mxnet compile error "fatal error: ../mshadow_op.h" #123

7oud opened this issue Feb 27, 2018 · 5 comments

Comments

@7oud
Copy link

7oud commented Feb 27, 2018

I git clone this repo and compile mxnet. then it raise some error like this

In file included from src/operator/roi_align_v1.cc:7:0:
src/operator/./roi_align_v1-inl.h:12:27: fatal error: ../mshadow_op.h: 没有那个文件或目录
#include "../mshadow_op.h"
                           ^
compilation terminated.
Makefile:349: recipe for target 'build/src/operator/roi_align_v1.o' failed
make: *** [build/src/operator/roi_align_v1.o] Error 1

in the header file "roi_align-inl.h", the code is

#include <utility>
#include "./mshadow_op.h"
#include "./operator_common.h"

why the error shows #include "../mshadow_op.h" ?
And when I remove the 6 "roi_align***" file, mxnet is compiled succeed.

@nigyiii
Copy link

nigyiii commented Mar 2, 2018

I also came across the same issue. How to solve it?

In file included from src/operator/roi_align_v1.cc:7:0: src/operator/./roi_align_v1-inl.h:12:27: fatal error: ../: No such file or directory

Where can I find this file: mshadow_op.h ?
Please tell me if you can solve it.

如果解决了的话能说一下你的解决方法吗?

@huangzehao
Copy link
Contributor

huangzehao commented Mar 2, 2018 via email

@7oud
Copy link
Author

7oud commented Mar 2, 2018

@huangzehao it is a bug of including path, change it to #include "./mshadow_op.h" in roi_align_v1-inl.h, that's OK

@nigyiii
Copy link

nigyiii commented Mar 3, 2018

@7oud Thank u! Yes, the path is wrong.

@ghost
Copy link

ghost commented Apr 19, 2018

@7oud The author said, ROIAlign_v1 should lie within operator/contrib/ other than operator/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants