arm64-apple-darwin compilation for macos doe snot work

macOS specific usage questions
stvales
New Cone
New Cone
Posts: 1
Joined: 12 Sep 2022 14:14

arm64-apple-darwin compilation for macos doe snot work

Postby stvales » 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 :

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

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

Re: arm64-apple-darwin compilation for macos doe snot work

Postby fkuehne » 13 Sep 2022 09:57

Consider using the build.sh script in extras/package/macosx with the "aarch64" argument as architecture (or x86_64 if you want that, it can crosscompile).
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 53 guests