3.0.12 source build fails on OSX Mojave

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

3.0.12 source build fails on OSX Mojave

Postby EP99 » 21 Apr 2021 15:56

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.

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

Re: 3.0.12 source build fails on OSX Mojave

Postby EP99 » 23 Apr 2021 00:26

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.....

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

Re: 3.0.12 source build fails on OSX Mojave

Postby fkuehne » 24 Apr 2021 13:37

May I ask why you went through all that trouble and did not use our M1 build?
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: 3.0.12 source build fails on OSX Mojave

Postby EP99 » 25 Apr 2021 15:53

@ 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.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: 3.0.12 source build fails on OSX Mojave

Postby dfuhrmann » 26 Apr 2021 18:25

I assume you might have homebrew installed? This might interfere with the local contribs mechanism of VLC.

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

Re: 3.0.12 source build fails on OSX Mojave

Postby EP99 » 02 Jun 2021 23:11

@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.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: 3.0.12 source build fails on OSX Mojave

Postby dfuhrmann » 15 Jun 2021 20:01

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.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 17 guests