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

Manjaro: Missing '/usr/lib/x86_64-linux-gnu/libvlc.so' #2

Closed
Yesterday17 opened this issue Mar 22, 2021 · 13 comments
Closed

Manjaro: Missing '/usr/lib/x86_64-linux-gnu/libvlc.so' #2

Yesterday17 opened this issue Mar 22, 2021 · 13 comments
Labels
bug Something isn't working

Comments

@Yesterday17
Copy link

My libvlc.so is located in /usr/lib directly without the sub direcotory.

image

System info

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.9.16-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15.5 GiB of RAM
Graphics Processor: GeForce GTX 1070 with Max-Q Design/PCIe/SSE2

@alexmercerind
Copy link
Owner

alexmercerind commented Mar 22, 2021

Hi there @Yesterday17 !

I can't really say about this one, since I used this plugin on Ubuntu Linux.
And in my case when I installed libVLC using the apt command, the shared libraries were present under the directory.
This stackexchange forum speaks a little about this.
I cannot say anything about it, as I have never used Manjaro or Arch. It is an issue with shared libraries, so make sure those are discoverable by Flutter engine.

All I can say is, please install equivalent of

sudo apt install libvlc-dev

Thanks.

@alexmercerind
Copy link
Owner

I'm trying to find how that goes for Arch. Let us know, if you find a solution for this category of distro.

@Yesterday17
Copy link
Author

Maybe you can try this.

On my laptop, CMAKE_INSTALL_LIBDIR is lib, so I guess it would be lib/x86_64-linux-gnu on ubuntu?

I tested it with the following CMakeList.txt:

project(test)
include(GNUInstallDirs)
message(STATUS ${CMAKE_INSTALL_LIBDIR})

@alexmercerind
Copy link
Owner

@Yesterday17, were you able to get it working on your Manjaro?

@Yesterday17
Copy link
Author

I made the following patch:

include(GNUInstallDirs)
target_link_libraries(${PLUGIN_NAME} PRIVATE
  flutter
  PkgConfig::GTK
  "/usr/${CMAKE_INSTALL_LIBDIR}/libvlc.so"
)

On my laptop, CMAKE_INSTALL_LIBDIR is lib, so this patch works for me.

@alexmercerind
Copy link
Owner

@Yesterday17 ,
may you please make a pull request with the same. 🙂

@alexmercerind alexmercerind added the bug Something isn't working label Mar 27, 2021
@Yesterday17
Copy link
Author

@Yesterday17 ,
may you please make a pull request with the same.

I've not tested on other distributions because I don't have much free space on my laptop. I can make a pull request, but further tests are needed.

Yesterday17 added a commit to Yesterday17/dart_vlc that referenced this issue Mar 27, 2021
@alexmercerind
Copy link
Owner

@Yesterday17 . Thankyou I'll test it.

@alexmercerind alexmercerind changed the title Missing '/usr/lib/x86_64-linux-gnu/libvlc.so' Manjaro: Missing '/usr/lib/x86_64-linux-gnu/libvlc.so' Apr 19, 2021
@lycstar
Copy link

lycstar commented Apr 29, 2021

Yes, libvlc.so is in usr/lib/ in archlinux

@stonega
Copy link
Contributor

stonega commented May 4, 2021

I have the same issue on Fedora, and the libvlc.so.5 is in /usr/lib64/

@alexmercerind
Copy link
Owner

@stonega you may change the location inside CMakeLists.txt for the time being.

@stonega
Copy link
Contributor

stonega commented May 4, 2021

@stonega you may change the location inside CMakeLists.txt for the time being.

Yes, I have changed it, and everything works as expected 😃

@alexmercerind
Copy link
Owner

Simply having -lvlc as clang flag actually works fine. So, I've completely removed the file path and replaced it with just vlc. Should work fine for all Linux breeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants