Comments (6)
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.
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://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.
A trusted advisor suggests supporting back to Ubuntu 14.04 and calling that good.
from opencv.
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.
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.
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)
- Should the License be Changed to Apache v2 for OpenCV version 4.7?
- videoCapture.isOpened() always is false! HOT 4
- Opencv 4.8.1 and BarcodeDetection
- libwebp cve-2023-4863 HOT 1
- Memory Leak with some functions HOT 2
- Java 11 requirement HOT 1
- OpenCV.loadLocally() init error HOT 2
- Caused by: java.lang.UnsatisfiedLinkError: /tmp/opencv_openpnp5364447482759473585/nu/pattern/opencv/linux/x86_64/libopencv_java460.so: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/opencv_openpnp5364447482759473585/nu/pattern/opencv/linux/x86_64/libopencv_java460.so) HOT 2
- platform specific binaries/artifacts HOT 1
- Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java490 in java.library.path HOT 3
- Long delay when opening camera 0
- Open CV distributed with openpnp can't load image from a IP camera HOT 1
- Impossible to load library on Mac OS X HOT 1
- 4.7.0 Version HOT 1
- BarcodeDetector HOT 4
- Extra modules HOT 1
- Class CaptureDelegate is implemented in both HOT 2
- version 4.8.0
- Project runs on M2 Mac but fails on x86 Linux HOT 1
- Setting VideoCapture to certain square resolutions results in garbled output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv.