Closed toby63 closed 8 months ago
Works just fine for me using the master branch of the plugin, i.e. c119e7b724c0fd68948bbff8e2a1ce3f81d2a95e.
I'm unable to test a Linux build at the moment, I typically rely on Debian-packaged VLC for testing the plugin on Linux and VLC 4 is not yet packaged in Debian. Building VLC 4 from source is a bit involved, so I did a quick test by building the plugin for Windows instead, building it against the 586bf64e commit of VLC 4 from March 27th 2024. It produces two warnings, but otherwise the plugin dll builds successfully.
VLC API is rather cross-platform, so if the plugin compiles on Windows, I would expect it to also compile on Linux without issues.
Could you provide your build logs? You can make the output get printed in English if you do export LC_ALL=C
in the shell environment in which the plugin is being built. You can later unset it with unset LC_ALL
. Not sure how package building works on Arch Linux, if it builds in a clean environment without inheriting anything from the parent shell, then that would have no effect.
E.g.: »set_category«; did you mean »set_subcategory«?
This sounds like you are not using the master branch of the plugin. The plugin does not use set_category
when building against VLC 4, it uses set_category
only for VLC <= 3. You can do CTRL+F for set_category
in https://github.com/nurupo/vlc-pause-click-plugin/blob/c119e7b724c0fd68948bbff8e2a1ce3f81d2a95e/src/pause_click.c.
Thx for the fast answer.
Even though /usr/include/vlc/libvlc_version.h
shows
# define LIBVLC_VERSION_MAJOR (4)
I tried to manually set the following in src/pause_click.c
:
-#include <vlc/libvlc_version.h>
+/** LibVLC major version number */
+# define LIBVLC_VERSION_MAJOR (4)
and now it builds (only a few warnings, like you said) and also works in VLC.
So something seems to be wrong on my system...sry for the fuss, it looked like a typical incompatibility between versions.
Checklist
Environment
Describe the bug
It seems that the plugin does not build with the latest VLC version.
Steps to reproduce
Try to build the plugin with VLC 4. I use the AUR package (modified for using latest commit) for that.
Observed behavior
Errors, mostly about "failed" or unknown declarations. E.g.: »set_category«; did you mean »set_subcategory«?
Expected behavior
Build should be sucessful.
Additional info
I could add a log, but it is mostly in german, so I would need to translate it, or somehow change the language of the build process. But I assume this should be reproducable, if it's an issue with ABI incompatibility.