-
compile error - nsync_cv.h, nsync_mu.hdev/tensorflow 2018. 1. 10. 19:35
compile error message
/usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h:25:22: fatal error: nsync_cv.h: No such file or directory
/usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h:26:22: fatal error: nsync_mu.h: No such file or directory
solution
: change nsync_cv.h and nsync_mu.h to absolute path.
1. Find absolute path.
find /usr/local -name "nsync_cv.h"
find /usr/local -name "nsync_mu.h"
2. Change the include lines of mutex.h
vi /usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h
EXAMPLE
#include "/usr/local/lib/python2.7/dist-packages/tensorflow/include/external/nsync/public/nsync_cv.h" // <- "nsync_cv.h"
#include "/usr/local/lib/python2.7/dist-packages/tensorflow/include/external/nsync/public/nsync_mu.h" // <- "nsync_mu.h"