Page 1 of 1

MacOS Compile issues / questions

Posted: 03 Jun 2021 16:05
by EP99
Working on several extensions to vlc so am building vlc source and then making some changes to the code - mostly adding in some of my modules. Note: we are using vlc-3.0.12 as our base source for compatibility and testing reasons. If we have to we can go to .14 however, the questions below *should* cover both.

Note - for some reason I am unable to use the "one command build" for my environment (described below) - so I am following your build steps AND am using prebuilt libraries which is the recommend way.

Several questions:

Q1-- regarding documentation here: https://wiki.videolan.org/MacOSCompile/

I'm running on Mojave (macOS 10.14) on Intel (darwin18). Where the documentation discusses "Prepare 3rd party libraries" -- I change the SDK version for my version of OSX, namely export OSX_VERSION=10.14. This appears to cause no issues.

-- However the doc also directs preparing the 3rd party library folder to:

mkdir -p contrib/contrib-osx && cd contrib/contrib-osx
../bootstrap --build=x86_64-apple-darwin15

When I change this to darwin18 I get one set of errors -- when set to darwin15 I get another set namely cairo.h is not found:

Code: Select all

../../extras/package/macosx/../../../modules/codec/svg.c:40:10: fatal error: 'cairo/cairo.h' file not found #include <cairo/cairo.h> ^~~~~~~~~~~~~~~ 1 error generated. make[4]: *** [codec/libsvgdec_plugin_la-svg.lo] 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

What would cause this?

Q2 - What is the correct darwin version to supply AND should we be updating all darwin references from the MacOSCompile doc to the current version of the OS we are using?

Q3 - Once I have the base vlc source built, your doc says to "making change and compile again" - and suggests to use env.build.sh -- but says it is only available starting with VLC 4.0.

Is it not possible to use this for 3.x?

If not, what is the recommended process to compile again -- if the one command build.sh will not work? Build again using "Build Steps"?

Note we have tried this: built using build steps which at one point went to completion and tested VLC to ensure it works. Then we added our changes and ran build.sh one command -- it appears to work but the *only* VLC code that is updated is the VLC.app -- nothing else is recompiled.

Can you please advise. Thank you.