VLC build error at libtool -- why?

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

VLC build error at libtool -- why?

Postby EP99 » 17 Jun 2020 00:06

Making some extensions to VLC running on Mojave current against 3.0.10 code. Based on suggestions from here I'm using the build.sh and env.build.sh from 4.0-dev.

This is the error I'm getting - can anyone please help? This is after at least 6 build.sh -c command where it builds more every time. Intereing to note - 4.0-dev built find but we're using 3.0.10 as a code base and can't move. PLEASE HELP.

Error --

Code: Select all

/bin/sh: libtool-2.4.6-clang-libs.patch: No such file or directory make: *** [libtool] Error 1
Code snip with middle removed....

Code: Select all

$ ../extras/package/macosx/build.sh -c [build] Building VLC for the Mac OS X Setting base environment Using VLC root dir /Users/XYZ/temp/VLC/vlc-3.0.10 and triplet x86_64-apple-darwin18 [build] Checking for python3 ... Python 3.8.1 [build] Building in "/Users/XYZ/temp/VLC/vlc-3.0.10/build" [build] Building building tools libtool not found protoc too old To-be-built packages: libtool protoc rm -f -R libtool && tar xvzfo libtool-2.4.2.tar.gz x libtool-2.4.2/ x libtool-2.4.2/aclocal.m4 x libtool-2.4.2/AUTHORS x libtool-2.4.2/bootstrap x libtool-2.4.2/ChangeLog ....... x libtool-2.4.2/libltdl/m4/argz.m4 x libtool-2.4.2/libltdl/m4/autobuild.m4 x libtool-2.4.2/libltdl/m4/libtool.m4 x libtool-2.4.2/libltdl/m4/ltdl.m4 x libtool-2.4.2/libltdl/m4/ltoptions.m4 x libtool-2.4.2/libltdl/m4/ltsugar.m4 x libtool-2.4.2/libltdl/m4/ltversion.in x libtool-2.4.2/libltdl/m4/ltversion.m4 x libtool-2.4.2/libltdl/m4/lt~obsolete.m4 x libtool-2.4.2/libltdl/loaders/dld_link.c x libtool-2.4.2/libltdl/loaders/dlopen.c x libtool-2.4.2/libltdl/loaders/dyld.c x libtool-2.4.2/libltdl/loaders/load_add_on.c x libtool-2.4.2/libltdl/loaders/loadlibrary.c x libtool-2.4.2/libltdl/loaders/preopen.c x libtool-2.4.2/libltdl/loaders/shl_load.c x libtool-2.4.2/libltdl/libltdl/lt__alloc.h x libtool-2.4.2/libltdl/libltdl/lt__dirent.h x libtool-2.4.2/libltdl/libltdl/lt__glibc.h x libtool-2.4.2/libltdl/libltdl/lt__private.h x libtool-2.4.2/libltdl/libltdl/lt__strl.h x libtool-2.4.2/libltdl/libltdl/lt_dlloader.h x libtool-2.4.2/libltdl/libltdl/lt_error.h x libtool-2.4.2/libltdl/libltdl/lt_system.h x libtool-2.4.2/libltdl/libltdl/slist.h x libtool-2.4.2/libltdl/config/compile x libtool-2.4.2/libltdl/config/config.guess x libtool-2.4.2/libltdl/config/config.sub x libtool-2.4.2/libltdl/config/depcomp x libtool-2.4.2/libltdl/config/edit-readme-alpha x libtool-2.4.2/libltdl/config/general.m4sh x libtool-2.4.2/libltdl/config/getopt.m4sh x libtool-2.4.2/libltdl/config/install-sh x libtool-2.4.2/libltdl/config/ltmain.m4sh x libtool-2.4.2/libltdl/config/ltmain.sh x libtool-2.4.2/libltdl/config/mdate-sh x libtool-2.4.2/libltdl/config/missing x libtool-2.4.2/libltdl/config/mkstamp x libtool-2.4.2/libltdl/config/texinfo.tex x libtool-2.4.2/doc/fdl.texi x libtool-2.4.2/doc/libtool.1 x libtool-2.4.2/doc/libtool.info x libtool-2.4.2/doc/libtool.info-1 x libtool-2.4.2/doc/libtool.info-2 x libtool-2.4.2/doc/libtool.texi x libtool-2.4.2/doc/libtoolize.1 x libtool-2.4.2/doc/notes.texi x libtool-2.4.2/doc/notes.txt x libtool-2.4.2/doc/PLATFORMS x libtool-2.4.2/doc/stamp-vti x libtool-2.4.2/doc/version.texi (cd libtool-2.4.2 && patch -p1) < libtool-2.4.2-bitcode.patch patching file libltdl/config/ltmain.m4sh patching file libltdl/config/ltmain.sh (cd libtool-2.4.2 && patch -p1) < libtool-2.4.2-san.patch patching file libltdl/config/ltmain.m4sh patching file libltdl/config/ltmain.sh (cd libtool-2.4.2 && patch -p1) < libtool-2.4.6-clang-libs.patch [b]/bin/sh: libtool-2.4.6-clang-libs.patch: No such file or directory make: *** [libtool] Error 1[/b]

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

Re: VLC build error at libtool -- why?

Postby dfuhrmann » 17 Jun 2020 19:08

You seem to build from a source tarball. It seems this is a packaging mistake which I will fix for the next release.

In the meantime, you can download the affected patch file manually from http://git.videolan.org/?p=vlc/vlc-3.0.git;a=tree;f=extras/tools;h=a7765fd66e6d86b188587033e20828748497e3bf;hb=HEAD and copy it into the correct folder of your unpacked source tarball.

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

Re: VLC build error at libtool -- why?

Postby EP99 » 17 Jun 2020 20:51

@dfuhrmann -- still need help but many thanks for the patch. But this caused other issues. Downloaded the file libtool-2.4.6-clang-libs.patch and placed in extras/tools -- reissued build.sh -c -- ran for some time but it caused this series of errors:

NOTE: the MacOSX.sdk file *is* located where your source looks for it -- exactly:

Code: Select all

[100%] Built target chromaprint Install the project... -- Install configuration: "Release" -- Installing: /Users/XY15/temp/VLC/vlc-3.0.10/contrib/x86_64-apple-darwin18/lib/pkgconfig/libchromaprint.pc -- Installing: /Users/XY15/temp/VLC/vlc-3.0.10/contrib/x86_64-apple-darwin18/lib/libchromaprint.a -- Installing: /Users/XY15/temp/VLC/vlc-3.0.10/contrib/x86_64-apple-darwin18/include/chromaprint.h touch .chromaprint install prefix /Users/XY15/temp/VLC/vlc-3.0.10/contrib/x86_64-apple-darwin18 source path . C compiler /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ARCH x86 (core2) big-endian no runtime cpu detection no MMX enabled yes MMXEXT enabled yes 3DNow! enabled yes 3DNow! extended enabled yes SSE enabled yes SSSE3 enabled yes AVX enabled yes CMOV enabled yes CMOV is fast yes EBX available yes EBP available yes debug symbols no optimize for size no optimizations yes static yes shared no postprocessing support yes threading support pthreads License: GPL version 2 or later Creating config.mak and config.h... cd postproc && /Applications/Xcode.app/Contents/Developer/usr/bin/make install-libs install-headers CC libpostproc/postprocess.o INSTALL libpostproc/postprocess.h INSTALL libpostproc/libpostproc.pc libpostproc/postprocess.c:171:20: warning: unused function 'prefetchnta' [-Wunused-function] static inline void prefetchnta(void *p) ^ libpostproc/postprocess.c:178:20: warning: unused function 'prefetcht0' [-Wunused-function] static inline void prefetcht0(void *p) ^ libpostproc/postprocess.c:185:20: warning: unused function 'prefetcht1' [-Wunused-function] static inline void prefetcht1(void *p) ^ libpostproc/postprocess.c:192:20: warning: unused function 'prefetcht2' [-Wunused-function] static inline void prefetcht2(void *p) ^ 4 warnings generated. AR libpostproc/libpostproc.a INSTALL libpostproc/libpostproc.a touch .postproc make: Target `all' not remade because of errors. # Framework cd breakpad/src/client/mac/ && xcodebuild MACOSX_DEPLOYMENT_TARGET=10.11 -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk WARNING_CFLAGS=-Werror=partial-availability OTHER_CFLAGS=-fno-stack-check -arch x86_64 CLANG_CXX_LIBRARY=libc++ xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located. make: *** [.breakpad] Error 64
SDK location:

Code: Select all

pwd /Library/Developer/CommandLineTools/SDKs McKinley:SDKs XY15$ ls -la total 0 drwxr-xr-x 4 XY15 staff 128 Jul 23 2019 . drwxr-xr-x 6 XY15 staff 192 Jan 31 2019 .. drwxr-xr-x 7 XY15 staff 224 Jul 23 2019 MacOSX.sdk lrwxr-xr-x 1 XY15 staff 10 Jul 23 2019 MacOSX10.14.sdk -> MacOSX.sdk McKinley:SDKs XY15$

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

Re: VLC build error at libtool -- why?

Postby dfuhrmann » 17 Jun 2020 21:13

Dont use command line tools, this does not work for some reason only Apple knows.

Makes sure to only use the tools in Xcode.app, and also the SDK delivered in Xcode.app. Maybe you need to move away or delete the commandline tools folder.

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

Re: VLC build error at libtool -- why?

Postby EP99 » 18 Jun 2020 20:23

@dfuhrmann I am not calling commandline tools -- your code base must be calling it. When I compile your 4.0-dev code base this error does not occur. When I try to compile the 3.0.10 code base it does. On this issue I will reachout to the Apple Developer community to try to find an answer and post back - I do not know if I can remove commandline tools as other code I work with uses it -- but maybe will try your suggestion.

Can you please HEPLP with the other errors -- which fail prior to the commanline issue:

Code: Select all

License: GPL version 2 or later Creating config.mak and config.h... cd postproc && /Applications/Xcode.app/Contents/Developer/usr/bin/make install-libs install-headers CC libpostproc/postprocess.o INSTALL libpostproc/postprocess.h INSTALL libpostproc/libpostproc.pc libpostproc/postprocess.c:171:20: warning: unused function 'prefetchnta' [-Wunused-function] static inline void prefetchnta(void *p) ^ libpostproc/postprocess.c:178:20: warning: unused function 'prefetcht0' [-Wunused-function] static inline void prefetcht0(void *p) ^ libpostproc/postprocess.c:185:20: warning: unused function 'prefetcht1' [-Wunused-function] static inline void prefetcht1(void *p) ^ libpostproc/postprocess.c:192:20: warning: unused function 'prefetcht2' [-Wunused-function] static inline void prefetcht2(void *p) ^ 4 warnings generated. AR libpostproc/libpostproc.a INSTALL libpostproc/libpostproc.a touch .postproc make: Target `all' not remade because of errors. # Framework

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

Re: VLC build error at libtool -- why?

Postby dfuhrmann » 18 Jun 2020 20:30

They are no errors in your log snippet you just posted.

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

Re: VLC build error at libtool -- why?

Postby EP99 » 19 Jun 2020 16:31

@dfuhrmann the make fails -- this is a problem, no?:

Code: Select all

touch .postproc make: Target `all' not remade because of errors.

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

Re: VLC build error at libtool -- why?

Postby dfuhrmann » 20 Jun 2020 00:07

Well, then you should post the full log which actually shows the error, otherwise I cannot really help you.

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

Re: VLC build error at libtool -- why?

Postby EP99 » 30 Jun 2020 18:04

@dfuhrmann -- an update: I removed command-line tools by simply dragging it to the trash. I was able to get past that last posted error and made good progress until I got the following -- note: my build directory *does* contain files including the VLC.app directory -- which has Contents, etc. -- but when I look at it in the finder, it has a circle with a slash through it -- I can't launch it -- can you look at the below and kindly let me know why -- thanks.

One other comment -- as suggested in the docs, I'm using the build.sh script and the env script from the 4.0-dev distro. Thanks. I can post the full log if needed.

....[snip from build output]

Code: Select all

make[3]: Nothing to be done for `install-data-am'. rm -Rf VLC.app cp -R /Users/XY15/temp/VLC/vlc-3.0.10/build/vlc_install_dir/share/macosx/ VLC.app cp -R ./modules/gui/macosx/UI VLC.app/Contents/Resources/English.lproj cp -R ./share/macosx/Info.plist VLC.app/Contents/ xcrun plutil -convert binary1 VLC.app/Contents/Info.plist mkdir -p VLC.app/Contents/Frameworks cp -R /Users/XY15/temp/VLC/vlc-3.0.10/contrib/x86_64-apple-darwin18/Frameworks/Growl.framework VLC.app/Contents/Frameworks cp -R /Users/XY15/temp/VLC/vlc-3.0.10/contrib/x86_64-apple-darwin18/Frameworks/Sparkle.framework VLC.app/Contents/Frameworks mkdir -p VLC.app/Contents/MacOS/share/locale/ cp -r "/Users/XY15/temp/VLC/vlc-3.0.10/build/vlc_install_dir/share/vlc/lua" VLC.app/Contents/MacOS/share/ cp -r "/Users/XY15/temp/VLC/vlc-3.0.10/build/vlc_install_dir/lib/vlc/lua" VLC.app/Contents/MacOS/share/ cp -r /Users/XY15/temp/VLC/vlc-3.0.10/extras/package/macosx/../../../share/hrtfs VLC.app/Contents/MacOS/share/ cp: /Users/XY15/temp/VLC/vlc-3.0.10/extras/package/macosx/../../../share/hrtfs: No such file or directory make: *** [VLC.app] Error 1 McKinley:build XY15$


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests