How can I run the `VideoPlyer` demo in a macbook M...
# compose-desktop
m
How can I run the
VideoPlyer
demo in a macbook M1? Even having VLC installed I get this error:
Copy code
dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib, 0x0009): tried: '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
👀 1
s
You’ll probably have to add the library yourself
You’ll need
libvlccore.dylib
compiled in a way thats compatible for M1 and you’ll need to swap it in for the one the library is providing. I’d create a bug on the library repo, and post it here so future compose people can find it. This also seems like something pretty solvable on your own.
m
Thanks Scott. I'll give it a tryand keep you updated.
The only thing that has worked is to install VLC for intel in the M1. It works, but using Rosseta, of course. I think it is a bug in caprica/vlcj
My final idea, was to run it in a arm64 ubuntu system, but I have just seen that vlcj doe snot support linux yet.
And there is no rosseta in Ubuntu 😄
s
I’m a bit out of my league now, but that means that libvlccore.dylib is somewhere on your system, somehow globally referenceable
couldn’t you grab that and ship it with your app?
m
As far as I understand, having VLC installed is a requirement of caprica/vlcj.
s
oh - that is very inconvenient.