arm64-apple-darwin compilation for macos doe snot work
Posted: 12 Sep 2022 14:22
I try to build VLC from source for macos 12.5 on an apple silicon computer in native arm64.
Here are commands I used, following the instructions on the wiki :
It blocks when bulding gettext with this error :
The generated config.sub file for libxml2 does not support arm64-apple machines.
Any clue on how to solve or circumvent this problem ? Or maybe a pointer to a script with proper instructions to achive the full VLC compilation for arm64-apple-darwin ?
Here are commands I used, following the instructions on the wiki :
Code: Select all
export PATH=$PWD/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
git clone https://code.videolan.org/videolan/vlc.git
cd vlc
cd extras/tools
./bootstrap && make
cd ../..
export PATH=$PWD/extras/tools/build/bin:$PATH
export OSX_VERSION=12.3
mkdir -p contrib/contrib-osx && cd contrib/contrib-osx
../bootstrap
make fetch
make -j8 .gettext
(and I stopped there before the compilation of all the contribs)
It blocks when bulding gettext with this error :
Code: Select all
cd libxml2 && CC="gcc" CXX="g++" LD="ld" AR="ar" CCAS="gcc -c" RANLIB="ranlib" STRIP="strip" PATH="/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/bin:/Users/steph/code/vlc/extras/tools/build/bin:/Users/steph/code/vlc/extras/tools/build/bin:/Users/steph/code/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin" PKG_CONFIG="pkg-config" CPPFLAGS=" -fno-stack-check -I/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/include" CFLAGS=" -fno-stack-check -I/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/include -g -O2" CXXFLAGS=" -fno-stack-check -I/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/include -stdlib=libc++ -g -O2" LDFLAGS=" -L/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/lib " ./configure --prefix="/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0" --datarootdir="/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/share" --includedir="/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/include" --libdir="/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/lib" --build="arm64-apple-darwin21.6.0" --host="arm64-apple-darwin21.6.0" --target="arm64-apple-darwin21.6.0" --program-prefix="" --enable-static --disable-shared --disable-dependency-tracking --with-pic CFLAGS=" -fno-stack-check -I/Users/steph/code/vlc/contrib/arm64-apple-darwin21.6.0/include -g -O2 -DLIBXML_STATIC" --with-minimal --with-catalog --with-reader --with-tree --with-push --with-xptr --with-valid --with-xpath --with-xinclude --with-sax1 --without-zlib --without-iconv --without-http --without-ftp --without-docbook --without-regexps --without-python --without-debug
configure: WARNING: unrecognized options: --with-minimal
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... Invalid configuration `arm64-apple-darwin21.6.0': machine `arm64-apple' not recognized
configure: error: /bin/sh ./config.sub arm64-apple-darwin21.6.0 failed
make: *** [.libxml2] Error 1
Any clue on how to solve or circumvent this problem ? Or maybe a pointer to a script with proper instructions to achive the full VLC compilation for arm64-apple-darwin ?