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

how to compile tensorflow static lib with cmake #36

Open
bikong2 opened this issue Dec 17, 2017 · 0 comments
Open

how to compile tensorflow static lib with cmake #36

bikong2 opened this issue Dec 17, 2017 · 0 comments

Comments

@bikong2
Copy link

bikong2 commented Dec 17, 2017

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?

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

1 participant