I was going to try building vlc to enable upnp, but it faild
How can I fix it?
/sources/vlc-3.0.21/modules/gui/qt/pixmaps/faster2.svg -> faster.svg
/sources/vlc-3.0.21/modules/gui/qt/pixmaps/slower2.svg -> slower.svg
extras/package/npapi.am:34: warning: ':='-style assignments are not portable
Makefile.am:219: 'extras/package/win32/package.mak' included from here
extras/package/win32/package.mak:14: 'extras/package/npapi.am' included from here
runConfigure: Must specify optimization flags when overriding CFLAGS/CXXFLAGS.
(autotools configure will not use the default ones in that case.)
Warning: Command '['bash', '-c', '. /wrapper-script']' returned non-zero exit status 1.
cleaning 'chroot/boot' folder
keeping chroot folder /boot/home/Ports/haikuports/media-video/vlc/work-3.0.21 intact for inspection
Error: Build has failed - stopping.
Looking at the version in your log the version is already available for install as @humdinger mentioned (pointed to the recipe), if you still want to build it localy check the patchset for it, that should help too.
The recipe already has devel:libupnp as a build requirement (BUILD_REQUIRES), and lib:libupnp as a runtime requirement (REQUIRES)…do you get any message related to UPNP during build? Perhaps the version of libupnp in HaikuPorts is just too old, and thus is not usable by VLC?
Edit: @Begasus did some quick checks (thanks!), and seems libupnp IS linked to at least one of the VLC plugins.
So it might be that it is properly linked/loaded, but it either doesn’t works well enough in Haiku, or some setup is needed to make it work like you expect?