Code Monkey home page Code Monkey logo

Comments (9)

qyouurcs avatar qyouurcs commented on September 7, 2024 2

I solved the problem by adding the following compiler flags:

  1. Add "--no-as-needed" to the LDFLAGS

  2. My gcc version is 5.4, it also gives the following error:
    "undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringB5cxx11Ev"
    Turns out, I also need to add "-D_GLIBCXX_USE_CXX11_ABI=0" to LDFLAGS

from attentionalpoolingaction.

rohitgirdhar avatar rohitgirdhar commented on September 7, 2024

It seems somehow opencv is not getting linked correctly. Maybe look at this answer

from attentionalpoolingaction.

qyouurcs avatar qyouurcs commented on September 7, 2024

Similar issue here,
when running train.py, I receive the similar issue from tensorflow/python/framework/load_library.py

Opencv libs have been added to the system path.

Any updates?

from attentionalpoolingaction.

rohitgirdhar avatar rohitgirdhar commented on September 7, 2024

Did you try ldd .../pose_to_heatmap.so?

from attentionalpoolingaction.

xiaolata233 avatar xiaolata233 commented on September 7, 2024

ldd pose_to_heatmap.so:
linux-vdso.so.1 => (0x00007fff6f7c3000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f940c783000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f940c56c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f940c1a3000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f940be9d000)
/lib64/ld-linux-x86-64.so.2 (0x000056333169f000)

It did show any "not found" information.
My system is Ubuntu 14.04 LTS with opencv 2.4.8.

from attentionalpoolingaction.

xiaolata233 avatar xiaolata233 commented on September 7, 2024

This worked for me!
It saved me a lot of time, thank you and the owner

from attentionalpoolingaction.

 avatar commented on September 7, 2024

After adding "-D_GLIBCXX_USE_CXX11_ABI=0" to LDFLAGS, again getting the error "undefined symbol: _ZTIN10tensorflow8OpKernelE", though I have added -L$(TF_LIB) -ltensorflow_framework to the Makefile with which the error had disappeared before, but facing the same error again. Can anyone help with this.

Thanks.

from attentionalpoolingaction.

 avatar commented on September 7, 2024

I am using tf1.4 for which I am getting the error. I also tried with tf1.1 but running into multiple cuda issues. Hence, I will prefer if the above error can be somehow solved for tf1.4.

Thanks.

from attentionalpoolingaction.

 avatar commented on September 7, 2024

It got solved for tf1.4 after adding paths in ~/.bashrc file.

from attentionalpoolingaction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.