Page 1 of 1

3.0.12 source build fails on OSX Mojave

Posted: 21 Apr 2021 15:56
by EP99
Running mac osx 10.14.6 and have previously successfully built 3.0.10 and 3.0.11. Trying to build VLC 3.0.12 from source downloaded from here: http://www.videolan.org/vlc/download-sources.html

and using recommended build from here: https://wiki.videolan.org/MacOSCompile/ AND using the recommended:

Code: Select all

../extras/package/macosx/build.sh -c
build runs for about 20 minutes or so and then stops here (snip of last few lines before it stops):

Code: Select all

CCLD libprefetch_plugin.la CCLD libhds_plugin.la CCLD librecord_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 suggest a solution or next steps? Thanks.

Re: 3.0.12 source build fails on OSX Mojave

Posted: 23 Apr 2021 00:26
by EP99
Update -- actually got this to compile using the "Build Steps" option using prebuilt contribs from this resource:

Code: Select all

https://wiki.videolan.org/MacOSCompile/
Note -- this was not the "one command" build, but it did work.

VLC.app has a few quirks -- like it loads some icon cones, etc. in the left nav -- but dropping media appears to work.

EP

BONUS tip for anyone trying to compile on M1 silicon: *was* able to get a good compile on a mac mini M1 using one command build *after* I loaded java sdk. Contrary to other comments, you *can* download most current 64-bit jdk for macos from Oracle and (guessing) Rosetta installs correctly. Once I cleared that hurdle VLC works on Big Sur on M1. that's all I got.....

Re: 3.0.12 source build fails on OSX Mojave

Posted: 24 Apr 2021 13:37
by fkuehne
May I ask why you went through all that trouble and did not use our M1 build?

Re: 3.0.12 source build fails on OSX Mojave

Posted: 25 Apr 2021 15:53
by EP99
@ fkuehne Experimenting with making some changes / adding some functionality and therefore need to build from source. Doing the same thing on Linux and macos intel. So, a pre-built would not work.

Re: 3.0.12 source build fails on OSX Mojave

Posted: 26 Apr 2021 18:25
by dfuhrmann
I assume you might have homebrew installed? This might interfere with the local contribs mechanism of VLC.

Re: 3.0.12 source build fails on OSX Mojave

Posted: 02 Jun 2021 23:11
by EP99
@dfuhrmann could you please elaborate? Why would homebrew cause and error ld: library not found for -lzstd ?

Is there a suggested fix?

When running the individual "build steps" as outlined in https://wiki.videolan.org/MacOSCompile/ the build runs to completion.

Please advise how I can remedy this error *without* removing homebrew. Thank you.

Re: 3.0.12 source build fails on OSX Mojave

Posted: 15 Jun 2021 20:01
by dfuhrmann
Homebrews standard path /usr/local/lib is sometimes recognized by some build systems, causing problems.

In principles, you can also compile with homebrew libraries (but you might not be able to redistribute the results on other machines). Its just that this might not be supported properly by the build.sh script.