macOS Compile

macOS specific usage questions
AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

macOS Compile

Postby AviTs » 21 Oct 2022 12:00

The macOSCompile Wiki article seems quite outdated. It recommends Xcode 9.3 (14.1 is now in RC), and I do not know wether or not my compile-ttime error codes origin from my own mistakes.
Did someone try compiling VLC using up-to-date macOS tools?

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

Re: macOS Compile

Postby fkuehne » 24 Oct 2022 12:28

Yes, it is working correctly here. You are right about the wiki being rather dated. What are your exact errors?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 24 Oct 2022 17:47

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/cdefs.h:215:48: note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
1 error generated.

CompileC /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.o /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/common/dwarf/dwarf2reader.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'dump_syms' from project 'dump_syms')
cd /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.7 -fmessage-length\=128 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -stdlib\=libc++ -Wno-trigraphs -fpascal-strings -Os -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wunknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DHAVE_MACH_O_NLIST_H -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility\=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -iquote /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-generated-files.hmap -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-own-target-headers.hmap -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-all-target-headers.hmap -iquote /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-project-headers.hmap -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/Release/include -I../../.. -I../../../common/mac/include -I../../../third_party/musl/include -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/DerivedSources-normal/x86_64 -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/DerivedSources/x86_64 -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/DerivedSources -Werror\=partial-availability -F/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/Release -fno-stack-check -MMD -MT dependencies -MF /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.d --serialize-diagnostics /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.dia -c /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/common/dwarf/dwarf2reader.cc -o /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.o


** BUILD FAILED **


The following build commands failed:
CompileC /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf_cfi_to_module.o /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/common/dwarf_cfi_to_module.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'dump_syms' from project 'dump_syms')
(1 failure)
make: *** [.breakpad] Error 65
Not sure where to start...

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

Re: macOS Compile

Postby fkuehne » 26 Oct 2022 10:30

How do you reach that point? Are you using the build script in extras/packaging/macOS?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 26 Oct 2022 18:20

Yes

umxprime
Developer
Developer
Posts: 13
Joined: 27 Oct 2022 11:14

Re: macOS Compile

Postby umxprime » 27 Oct 2022 11:35

Hello,
I might be able to help.
Can you share more infos :
- version of macOS and Xcode used to build
- your Mac arch (Intel or Apple Silicon)
- which git commit of vlc are you trying to build

it seems you are using Xcode 14.1 RC as it appears you are compiling against macOS SDK 13.0, can you confirm ?

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 27 Oct 2022 12:33

On MacOS 12.6,
Xcode 14.1
It was 3.0 current from 24 Oct 2022 last time

umxprime
Developer
Developer
Posts: 13
Joined: 27 Oct 2022 11:14

Re: macOS Compile

Postby umxprime » 27 Oct 2022 15:57

Could you give a try with this script and share full output if it fails ?
Just be aware it will only work with 3.0 branch and won't build a full featured VLC app but a version with limited modules support.

Save the script as build.sh then run it from Terminal with this command :

Code: Select all

sh -exo pipefail build.sh /path/to/vlc /path/to/vlc-builds
Once finished VLC.app should be located in /path/to/vlc-builds/macos-x86_64-apple-darwinXX-gitsha/VLC.app

The script :

Code: Select all

SCRIPT_FOLDER_PATH=`cd $(dirname $0) && pwd` VLC_ROOT_PATH="$1" BUILDS_PATH="$2" GIT_REV=`cd ${VLC_ROOT_PATH} && git rev-parse --short HEAD` MINIMAL_OSX_VERSION="11.0" export SDKROOT=$(xcrun --show-sdk-path) REBUILD_ALL="yes" REBUILD_TOOLS="${REBUILD_ALL}" REBUILD_CONTRIBS="${REBUILD_ALL}" FORCE_VLC_BOOTSTRAP="${REBUILD_ALL}" FORCE_VLC_RECONFIGURE="${REBUILD_ALL}" REBUILD_LIBVLC="${REBUILD_ALL}" CORE_COUNT=$(sysctl -n hw.ncpu 2>/dev/null) export AR="$(xcrun --find ar)" export CC="$(xcrun --find clang)" export CXX="$(xcrun --find clang++)" export NM="$(xcrun --find nm)" export OBJC="$(xcrun --find clang)" export OBJCXX="$(xcrun --find clang++)" export RANLIB="$(xcrun --find ranlib)" export STRIP="$(xcrun --find strip)" HOST_ARCH="x86_64" COMPILER_HOST_ARCH=$HOST_ARCH if [ "$COMPILER_HOST_ARCH" = "aarch64" ]; then COMPILER_HOST_ARCH="arm64" fi BUILD_ARCH=`uname -m | cut -d. -f1` if [ "$BUILD_ARCH" = "arm64" ]; then BUILD_ARCH="aarch64" fi OSX_KERNELVERSION=$(uname -r | cut -d. -f1) BUILD_TRIPLET="$BUILD_ARCH-apple-darwin$OSX_KERNELVERSION" HOST_TRIPLET="$HOST_ARCH-apple-darwin$OSX_KERNELVERSION" BUILD_PATH="$BUILDS_PATH/macos-${HOST_TRIPLET}-${GIT_REV}" PYTHON_PATH=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}') if [ ! -d "$PYTHON_PATH" ]; then PYTHON_PATH="" fi export PATH="${VLC_ROOT_PATH}/extras/tools/build/bin:${VLC_ROOT_PATH}/contrib/${BUILD_TRIPLET}/bin:$PYTHON_PATH:${VLC_PATH}:/bin:/sbin:/usr/bin:/usr/sbin" # # vlc/extras/tools # pushd "$VLC_ROOT_PATH/extras/tools" ./bootstrap if [ "$REBUILD_TOOLS" = "yes" ]; then make clean ./bootstrap fi make -j1 popd # # vlc/contribs # export CFLAGS="-Werror=partial-availability" export CXXFLAGS="-Werror=partial-availability" export OBJCFLAGS="-Werror=partial-availability" export EXTRA_CFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH" export EXTRA_LDFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH" export XCODE_FLAGS="MACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -sdk $SDKROOT WARNING_CFLAGS=-Werror=partial-availability" pushd "$VLC_ROOT_PATH/contrib" if [ "$REBUILD_CONTRIBS" = "yes" ]; then rm -rf "contrib-$HOST_TRIPLET" rm -rf "$HOST_TRIPLET" fi mkdir -p "contrib-$HOST_TRIPLET" && cd "contrib-$HOST_TRIPLET" ../bootstrap \ --build=$BUILD_TRIPLET \ --host=$HOST_TRIPLET \ --disable-optim \ --disable-all \ --enable-a52 \ --enable-ffmpeg \ --enable-dvbpsi \ --enable-matroska \ --enable-dvdnav \ --enable-dvdcss \ --enable-dvdread \ --enable-ogg \ --enable-opus make list make fetch make -j ${CORE_COUNT} .gettext make -j ${CORE_COUNT} -k || make -j1 popd unset CFLAGS unset CXXFLAGS unset OBJCFLAGS unset EXTRA_CFLAGS unset EXTRA_LDFLAGS unset XCODE_FLAGS # # vlc/bootstrap # export CFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH" export CXXFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH" export OBJCFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH" export LDFLAGS="-arch $COMPILER_HOST_ARCH" pushd "${VLC_ROOT_PATH}" if [ "$FORCE_VLC_BOOTSTRAP" = "yes" ]; then rm -f "${VLC_ROOT_PATH}/configure" fi if ! [ -e "${VLC_ROOT_PATH}/configure" ]; then ${VLC_ROOT_PATH}/bootstrap fi popd # # vlc/configure # mkdir -p "$BUILD_PATH" pushd "$BUILD_PATH" if [ "$FORCE_VLC_RECONFIGURE" = "yes" ]; then rm -f Makefile fi if [ "${VLC_ROOT_PATH}/configure" -nt Makefile ]; then sh ${VLC_ROOT_PATH}/configure \ --build=$BUILD_TRIPLET \ --host=$HOST_TRIPLET \ --with-macosx-version-min=$MINIMAL_OSX_VERSION \ --with-macosx-sdk=$SDKROOT \ --disable-sparkle \ --disable-optimizations \ --enable-lua=no \ --enable-merge-ffmpeg \ --enable-macosx-avfoundation \ --enable-macosx \ --prefix="$BUILD_PATH/install" fi # # make libvlc # if [ "$REBUILD_LIBVLC" = "yes" ]; then make clean fi make -j ${CORE_COUNT} make VLC.app unset CFLAGS unset CXXFLAGS unset OBJCFLAGS unset LDFLAGS popd

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 27 Oct 2022 20:14

It looks like the script refuses to accept code downloaded using Web browsers (tat.gz from project's gitlab), and I cannot use git right now due to connectivity problems, so the topic will have to wait.
Thanks for now

umxprime
Developer
Developer
Posts: 13
Joined: 27 Oct 2022 11:14

Re: macOS Compile

Postby umxprime » 03 Nov 2022 17:40

As far as I can tell you won't be able to build vlc from a gitlab generated code archive because we rely on the git revision to generate vlc's version, and the .git folder isn't packaged in such archive.

If you want to rely on buildable source archives, you may check the ones available at https://www.videolan.org/vlc/download-sources.html

BTW there was an error with the contrib binaries path in my previous message. This script should fix that and be also usable on dowloaded archives :

Code: Select all

SCRIPT_FOLDER_PATH=`cd $(dirname $0) && pwd` VLC_ROOT_PATH="$1" BUILDS_PATH="$2" MINIMAL_OSX_VERSION="11.0" export SDKROOT=$(xcrun --show-sdk-path) REBUILD_ALL="yes" REBUILD_TOOLS="${REBUILD_ALL}" REBUILD_CONTRIBS="${REBUILD_ALL}" FORCE_VLC_BOOTSTRAP="${REBUILD_ALL}" FORCE_VLC_RECONFIGURE="${REBUILD_ALL}" REBUILD_LIBVLC="${REBUILD_ALL}" CORE_COUNT=$(sysctl -n hw.ncpu 2>/dev/null) export AR="$(xcrun --find ar)" export CC="$(xcrun --find clang)" export CXX="$(xcrun --find clang++)" export NM="$(xcrun --find nm)" export OBJC="$(xcrun --find clang)" export OBJCXX="$(xcrun --find clang++)" export RANLIB="$(xcrun --find ranlib)" export STRIP="$(xcrun --find strip)" HOST_ARCH="x86_64" COMPILER_HOST_ARCH=$HOST_ARCH if [ "$COMPILER_HOST_ARCH" = "aarch64" ]; then COMPILER_HOST_ARCH="arm64" fi BUILD_ARCH=`uname -m | cut -d. -f1` if [ "$BUILD_ARCH" = "arm64" ]; then BUILD_ARCH="aarch64" fi OSX_KERNELVERSION=$(uname -r | cut -d. -f1) BUILD_TRIPLET="$BUILD_ARCH-apple-darwin$OSX_KERNELVERSION" HOST_TRIPLET="$HOST_ARCH-apple-darwin$OSX_KERNELVERSION" BUILD_PATH="$BUILDS_PATH/macos-${HOST_TRIPLET}" PYTHON_PATH=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}') if [ ! -d "$PYTHON_PATH" ]; then PYTHON_PATH="" fi export PATH="${VLC_ROOT_PATH}/extras/tools/build/bin:${VLC_ROOT_PATH}/contrib/${HOST_TRIPLET}/bin:$PYTHON_PATH:${VLC_PATH}:/bin:/sbin:/usr/bin:/usr/sbin" # # vlc/extras/tools # pushd "$VLC_ROOT_PATH/extras/tools" ./bootstrap if [ "$REBUILD_TOOLS" = "yes" ]; then make clean ./bootstrap fi make -j1 popd # # vlc/contribs # export CFLAGS="-Werror=partial-availability" export CXXFLAGS="-Werror=partial-availability" export OBJCFLAGS="-Werror=partial-availability" export EXTRA_CFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH" export EXTRA_LDFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH" export XCODE_FLAGS="MACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -sdk $SDKROOT WARNING_CFLAGS=-Werror=partial-availability" pushd "$VLC_ROOT_PATH/contrib" if [ "$REBUILD_CONTRIBS" = "yes" ]; then rm -rf "contrib-$HOST_TRIPLET" rm -rf "$HOST_TRIPLET" fi mkdir -p "contrib-$HOST_TRIPLET" && cd "contrib-$HOST_TRIPLET" ../bootstrap \ --build=$BUILD_TRIPLET \ --host=$HOST_TRIPLET \ --disable-optim \ --disable-all \ --enable-a52 \ --enable-ffmpeg \ --enable-dvbpsi \ --enable-matroska \ --enable-dvdnav \ --enable-dvdcss \ --enable-dvdread \ --enable-ogg \ --enable-opus make list make fetch make -j ${CORE_COUNT} .gettext make -j ${CORE_COUNT} -k || make -j1 popd unset CFLAGS unset CXXFLAGS unset OBJCFLAGS unset EXTRA_CFLAGS unset EXTRA_LDFLAGS unset XCODE_FLAGS # # vlc/bootstrap # export CFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH" export CXXFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH" export OBJCFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH" export LDFLAGS="-arch $COMPILER_HOST_ARCH" pushd "${VLC_ROOT_PATH}" if [ "$FORCE_VLC_BOOTSTRAP" = "yes" ]; then rm -f "${VLC_ROOT_PATH}/configure" fi if ! [ -e "${VLC_ROOT_PATH}/configure" ]; then ${VLC_ROOT_PATH}/bootstrap fi popd # # vlc/configure # mkdir -p "$BUILD_PATH" pushd "$BUILD_PATH" if [ "$FORCE_VLC_RECONFIGURE" = "yes" ]; then rm -f Makefile fi if [ "${VLC_ROOT_PATH}/configure" -nt Makefile ]; then sh ${VLC_ROOT_PATH}/configure \ --build=$BUILD_TRIPLET \ --host=$HOST_TRIPLET \ --with-macosx-version-min=$MINIMAL_OSX_VERSION \ --with-macosx-sdk=$SDKROOT \ --disable-sparkle \ --disable-optimizations \ --enable-lua=no \ --enable-merge-ffmpeg \ --enable-macosx-avfoundation \ --enable-macosx \ --prefix="$BUILD_PATH/install" fi # # make libvlc # if [ "$REBUILD_LIBVLC" = "yes" ]; then make clean fi make -j ${CORE_COUNT} make VLC.app unset CFLAGS unset CXXFLAGS unset OBJCFLAGS unset LDFLAGS popd

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 08 Nov 2022 19:51

Code: Select all

(path)/vlc> mkdir vlc-builds && sh -exo pipefail build.sh ./ ./vlc-builds
build.sh contains your second (fixed) script.
Now used on top of today's git clone -> branch 3.0.x
Have I used your script properly?

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 08 Nov 2022 20:16

Makefile.am:101: warning: variable 'xmllint_DEPENDENCIES' is defined but no program or
Makefile.am:101: library has 'xmllint' as canonical name (possible typo)
autoreconf: Leaving directory `.'
cd libxml2 && CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" LD="ld" AR="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" CCAS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c" RANLIB="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" STRIP="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" PATH="/Users/tsaban/Downloads/vlc/contrib/x86_64-apple-darwin21/bin:/Users/tsaban/Downloads/vlc/extras/tools/build/bin:.//extras/tools/build/bin:.//contrib/x86_64-apple-darwin21/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin::/bin:/sbin:/usr/bin:/usr/sbin" PKG_CONFIG="pkg-config" CPPFLAGS=" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [.libxml2] Error 2
Last output of my terminal

umxprime
Developer
Developer
Posts: 13
Joined: 27 Oct 2022 11:14

Re: macOS Compile

Postby umxprime » 08 Nov 2022 21:24

Code: Select all

(path)/vlc> mkdir vlc-builds && sh -exo pipefail build.sh ./ ./vlc-builds
build.sh contains your second (fixed) script.
Now used on top of today's git clone -> branch 3.0.x
Have I used your script properly?
Please try with absolute paths instead

AviTs
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Oct 2022 11:54

Re: macOS Compile

Postby AviTs » 09 Nov 2022 15:13

Tried this:

Code: Select all

(path)/vlc (3.0.x)> sh -exo pipefail build.sh /Users/tsaban/Downloads/vlc /Users/tsaban/Downloads/vlc/vlc-builds/
Similar problem here:

Makefile.am:101: library has 'xmllint' as canonical name (possible typo)
autoreconf: Leaving directory `.'
cd libxml2 && CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" LD="ld" AR="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" CCAS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c" RANLIB="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" STRIP="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" PATH="/Users/tsaban/Downloads/vlc/contrib/x86_64-apple-darwin21/bin:/Users/tsaban/Downloads/vlc/extras/tools/build/bin:/Users/tsaban/Downloads/vlc/extras/tools/build/bin:/Users/tsaban/Downloads/vlc/contrib/x86_64-apple-darwin21/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin::/bin:/sbin:/usr/bin:/usr/sbin" PKG_CONFIG="pkg-config" CPPFLAGS=" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [.libxml2] Error 2


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests