munkres-tensorflow
munkres-tensorflow copied to clipboard
Some errors after compiling
Hey, I got success on compiling with this command as commented in https://github.com/Russell91/TensorBox/issues/60.
g++ -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -shared hungarian.cc -o hungarian.so -fPIC -I $TF_INC
But, the same error comes out
tensorflow.python.framework.errors_impl.NotFoundError: ./hungarian.so: undefined symbol: _ZTIN10tensorflow8OpKernelE
My spec is same as follows.
Ubuntu 16.04
tensorflow=1.4
python=3.5
gcc=5.4.0
I don't know the way to solve this. Do you have any idea?
It seems a linking problem when executing, so maybe you have some environment variables not properly defined?
using the following commands from https://www.tensorflow.org/extend/adding_an_op
TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
TF_LIB=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')
g++ -std=c++11 -shared hungarian.cc -o hungarian.so -fPIC -I$TF_INC -I$TF_INC/external/nsync/public -L$TF_LIB -ltensorflow_framework -O2