zstd missing for 3.0.12 AND 3.0.14

macOS specific usage questions
EP99
Blank Cone
Blank Cone
Posts: 38
Joined: 05 Feb 2020 23:19

zstd missing for 3.0.12 AND 3.0.14

Postby EP99 » 05 Jun 2021 17:57

Compiling source as tweaking vlc for mac. Have followed docs and ALL troubleshooting suggestions for compiling including removing 3rd party packagers and exporting path per https://wiki.videolan.org/MacOSCompile/ ... s_and_PATH

Getting the following error when using "Build VLC with a single command". Error:

Code: Select all

CCLD libmosaic_plugin.la CCLD librss_plugin.la CCLD libdynamicoverlay_plugin.la CCLD libarchive_plugin.la CCLD libcache_read_plugin.la CCLD libcache_block_plugin.la CCLD libdecomp_plugin.la CCLD libinflate_plugin.la CCLD libprefetch_plugin.la CCLD libhds_plugin.la CCLD libtdummy_plugin.la GEN libfreetype_plugin.la ld: library not found for -lzstd clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: *** [libarchive_plugin.la] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 mysystem:build EP$

Can *someone* PLEASE provide guidance or a fix? This happens regardless of macos or platform -- and fails consistently on either Intel or M1.

Other issues exist when trying to build from sources (using prebuilt) where cairo.h is missing.

Please HELP -- this is keeping development from going forward. Thank you very kindly for any help. EP

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: zstd missing for 3.0.12 AND 3.0.14

Postby fkuehne » 07 Jun 2021 12:22

This seems to be a conflict with something installed on your mac, most likely using homebrew, that interferes with the configuration of libarchive. You can choose to disable the compilation and use of libarchive of course to workaround, unless you really need it.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

EP99
Blank Cone
Blank Cone
Posts: 38
Joined: 05 Feb 2020 23:19

Re: zstd missing for 3.0.12 AND 3.0.14

Postby EP99 » 08 Jun 2021 03:30

@ fkuehne thanks for you suggestions. Couple of observations:

This worked previously -- with homebrew installed -- for both .12 and .14 on both Intel and M1 - back as far a March.

There must be something in the contribs that has changed.

STEPS TAKEN TO TRY TO FIX:

checked the .bash_profile and other env settings and per your mac docs there was no PKG_CONFIG_PATH or PKG_CONFIG_LIBDIR set but "unset" anyway. Made NO difference.

rebooted system - several times.

created a new user - pristine environment, no homebrew, followed your macoscompile to the letter.

Same error.

We could use your or someone's help in troubleshooting. Understand that homebrew and macos do not work well:

Code: Select all

Homebrew tries to be a good citizen by not installing dependencies which are already bundled by macOS if possible. If one tries to install homebrew on macos the following is generated: Dependency 'libarchive' is provided by macOS; please replace 'depends_on' with 'uses_from_macos'.
It also reports this:

Code: Select all

libarchive is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have libarchive first in your PATH, run: echo 'export PATH="/usr/local/opt/libarchive/bin:$PATH"' >> /Users/CT15/.bash_profile For compilers to find libarchive you may need to set: export LDFLAGS="-L/usr/local/opt/libarchive/lib" export CPPFLAGS="-I/usr/local/opt/libarchive/include" For pkg-config to find libarchive you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/libarchive/lib/pkgconfig"
Have tried ALL and once setting the PKG_CONFIG_PATH setting did an uset per macosCompile-- to no avail.

Could use your "help each other" input -- have tried to post back what I've found to date -- am willing to become a volunteer tester for the community if I can just get back to a good BASE VLC COMPILE -- as before -- I insert my changes. Thanks.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests