mx-maskrcnn icon indicating copy to clipboard operation
mx-maskrcnn copied to clipboard

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

Open 7oud opened this issue 6 years ago • 5 comments

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.

7oud avatar Feb 27 '18 07:02 7oud

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.

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

nigyiii avatar Mar 02 '18 13:03 nigyiii

Try git clone $(this repo) —recursive

发自我的 iPhone

在 2018年3月2日,21:15,nigyiii <[email protected]mailto:[email protected]> 写道:

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

In file included from src/operator/roi_align_v1.cchttp://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.

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/TuSimple/mx-maskrcnn/issues/123#issuecomment-369917865, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANB22qS_mt2f8jf4sGRDO7GxmzFYcgtTks5taUYAgaJpZM4SUef1.

huangzehao avatar Mar 02 '18 13:03 huangzehao

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

7oud avatar Mar 02 '18 14:03 7oud

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

nigyiii avatar Mar 03 '18 09:03 nigyiii

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

ghost avatar Apr 19 '18 03:04 ghost