Closed xukangmin closed 1 year ago
I verified that everything works fine on Ubuntu 20.04.5 LTS (Focal Fossa), but not on Ubuntu 22.04.1 LTS due to GLIBC version mismatch.
I can't say anything in regard to this one unfortunately. Could it be an issue within that specific Ubuntu's version?
Does VLC launch & play media perfectly?
I can't say anything in regard to this one unfortunately. Could it be an issue within that specific Ubuntu's version?
Does VLC launch & play media perfectly?
VLC plays perfectly, I even compile a demo c code playing video using libvlc, it works fine on Ubuntu 22.04.
As far as I can tell, the issue is likely due to snap. You are using the snap install of Flutter, which I have highly discouraged in the past (on several other issues). It seems to cause the miss-match. The linking errors seem to be present because of that.
Installing the Flutter manually is the best option.
Flutter snap seems to have it's own ld
(internally, see your logs above). Where Flutter Snap uses it's own toolchain, the VLC is installed globally on the other hand through distribution's package manager. In development, this should not be done. When deploying / shipping your software, you have to take handle bundling of dependencies yourself (e.g. FlatHub, Snap or AppImage) or ask your customers to install the required package themselves to run the app.
Thanks so much, it worked.
Solution is to use Flutter manually not using snap version.
It builds everything from scratch, while snap version used some of pre-built so files which may cause mismatch.
Describe the bug Cannot run Example code on Ubuntu 22.04.1 LTS
It seems ubuntu is using Glibc 2.35 but VLC needs 2.34 / 2.33 for compiling, any solutions?
libvlc-dev and vlc installed.
ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
Minimal reproducible code example code
Flutter logs
Operating system: Ubuntu 22.04.1 LTS
Other details:
dart_vlc
.dart_vlc
.