tensorflow-cmake icon indicating copy to clipboard operation
tensorflow-cmake copied to clipboard

how to compile tensorflow static lib with cmake

Open bikong2 opened this issue 8 years ago • 0 comments

i do as this git, and i can compile libtensorflow_all.so successfully, and it runs ok. but when i want to compile a static lib libtensorflow_all.a and i just modified the linkshared = 1 to linkstatic = 1, linkshared = 0. but error occurs error: undefined reference to 'tensorflow::OpDef::~OpDef()' error: undefined reference to 'tensorflow::OpDefBuilder::OpDefBuilder(tensorflow::StringPiece)'

and so on...

any idea to fix this bug?

bikong2 avatar Dec 17 '17 06:12 bikong2