Git Product home page Git Product logo

Comments (6)

vonnieda avatar vonnieda commented on July 24, 2024

Okay, doing further research into this and learning some things. This is a problem with the new 3.2.0 binaries just released, too, so it's high priority now.

Static linking libc is not the answer, but making sure we link against an old enough version of libc should work since they remain backwards compatible for a long time.

By doing strings libstdc++.so.6 | grep LIBCXX (in /usr/lib/x86_64-linux-gnu on Ubuntu) it's possible to see what versions are supported by the library.

Ubuntu 12.04.5: 3.4 - 3.4.16
Ubuntu 14.04.5: 3.4 - 3.4.19
Ubuntu 16.04.1: 3.4 - 3.4.21
Wheezy (debian 7.11.0): 3.4 - 3.4.17.

The newly built binaries are looking for 3.4.20. I'm not sure why that, rather than 21 since that is the latest supported where they were built.

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

Note: Travis CI is using Ubuntu 12.04, so the new builds fail there, too.

https://docs.travis-ci.com/user/ci-environment/

https://travis-ci.org/openpnp/openpnp/builds/186893373#L1465

http://stackoverflow.com/questions/10354636/how-do-you-find-what-version-of-libstdc-library-is-installed-on-your-linux-mac

http://unix.stackexchange.com/questions/120380/what-c-library-version-does-my-system-use

https://www.debian.org/releases/wheezy/

http://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html

http://askubuntu.com/questions/163138/how-do-i-find-what-version-of-libc-my-application-links-to

http://stackoverflow.com/questions/4133674/glibcxx-versions

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

A trusted advisor suggests supporting back to Ubuntu 14.04 and calling that good.

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

Summary of learnings so far:

libstdc++ uses symbol versioning. Symbol versions are the 3.4.x stuff and every symbol version will need to be present.
readelf -a libopencv_java320.so | grep GLIBCX gets us the symbol versions in the library. For the 3.2.0-0 release it is showing 11, 15, 9, 20, 21, 4. Since 21 is the highest, I would expect it to fail on any machine where 21 was not available and in our list of versions above that is only Ubuntu 16.04.

So, I don't think there is a way to determine what versions we'll need until we compile OpenCV on a lower version and check it's symbols.

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

Confirmed on 14.04:
libstdc++.so.6 (GLIBCXX_3.4.11) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.15) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.9) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.20) => not found
libstdc++.so.6 (GLIBCXX_3.4.21) => not found
libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6

20 and 21 are not found.

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

3.2.0-1 has been released, which has Linux binaries built on Ubuntu 14.04.5. The resulting binaries require GLIBCXX 3.4.15 which should make it compatible with Ubuntu going back to 12.04 and Debian Wheezy. In particular, the library is now compatible with Ubuntu 14.04 which makes it work on Travis CI builds again.

from opencv.

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.