Ubuntu 16.04编译Android版VLC失败求助
Hey there, I’ve run into similar path-related hiccups when building VLC for Android before—let’s break down your error and work through fixes step by step:
The Core Issue
Your build is failing because the install command can’t locate ../../share/vlc.appdata.xml. This means either the file wasn’t generated during the build process, or the path reference in the Makefile is misaligned with your source structure.
Potential Solutions
Check if the source file exists (and generate it if missing)
First, navigate to your VLC source root’ssharefolder and see ifvlc.appdata.xmlexists. If it’s missing, look for a template file likevlc.appdata.xml.inin the same directory. Generate the actual XML file by running:cd /home/vlc-android/vlc/share autoreconf -vfiThen restart your build process from the configuration step.
Clean stale build artifacts and rebuild
Cached build files often cause weird path mismatches. Wipe the entire build directory and start fresh:rm -rf /home/vlc-android/vlc/build-android-arm-linux-androideabi # Re-run your configure and build commands hereTemporarily skip the appdata installation step
If you don’t need the metainfo file for your build, you can bypass this error by modifying the Makefile:- Open
/home/vlc-android/vlc/build-android-arm-linux-androideabi/share/Makefile - Find the line starting with
install-appdataDATA:and comment it out (add a#at the start) - Save the file and re-run
make install
- Open
Validate your build configuration flags
Double-check that your configure command didn’t disable metainfo support. If you see--disable-metainfoin your flags, remove it—you can also explicitly enable it with--enable-metainfowhen re-running the configure script.
Your Error Log for Reference
make[2]: Leaving directory `/home/vlc-android/vlc/build-android-arm-linux-androideabi/po' Making install in share make[2]: Entering directory `/home/vlc-android/vlc/build-android-arm-linux-androideabi/share' GEN vlc.appdata.xml make[3]: Entering directory `/home/vlc-android/vlc/build-android-arm-linux-androideabi/share' make[3]: Nothing to be done for `install-exec-am'. GEN vlc.appdata.xml /bin/mkdir -p '/home/vlc-android/vlc/build-android-arm-linux-androideabi/install/share/metainfo' /usr/bin/install -c -m 644 ../../share/vlc.appdata.xml '/home/vlc-android/vlc/build-android-arm-linux-androideabi/install/share/metainfo' /usr/bin/install: cannot stat '../../share/vlc.appdata.xml': No such file or directory make[3]: *** [install-appdataDATA] Error 1 make[3]: Leaving directory `/home/vlc-android/vlc/build-android-arm-linux-androideabi/share' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/vlc-android/vlc/build-android-arm-linux-androideabi/share' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/vlc-android/vlc/build-android-arm-linux-androideabi' make: *** [install] Error 2 vlc: make install failed
内容的提问来源于stack exchange,提问作者郭明浩

