ubuntu 14.04 build vlc in error

NOTE: autopoint (GNU gettext-tools) appears to be missing or out-of-date.
Please install or update GNU gettext tools.
Otherwise, you will not be able to build a source tarball.
gettext-0.19.8.tar.gz 下载 build install gettext工具

autoreconf: running: aclocal -I m4 –force -I m4
configure.ac:1700: warning: PKG_PROG_PKG_CONFIG is m4_require’d but not m4_defun’d
m4/with_pkg.m4:34: PKG_WITH_MODULES is expanded from…
m4/with_pkg.m4:83: PKG_ENABLE_MODULES_VLC is expanded from…

configure.ac:4150: the top level
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:39: error: possibly undefined macro: AC_DEFINE
configure.ac:58: error: possibly undefined macro: AS_IF

下载build pkg-config-0.29.2.tar.gz install

parallel-tests: installing ‘autotools/test-driver’
bin/Makefile.am:41: error: Libtool library used but ‘LIBTOOL’ is undefined
bin/Makefile.am:41: The usual way to define ‘LIBTOOL’ is to add ‘LT_INIT’
bin/Makefile.am:41: to ‘configure.ac’ and run ‘aclocal’ and ‘autoconf’ again.
bin/Makefile.am:41: If ‘LT_INIT’ is in ‘configure.ac’, make sure
bin/Makefile.am:41: its definition is in aclocal’s search path.
bin/Makefile.am: installing ‘autotools/depcomp’
compat/Makefile.am:1: error: Libtool library used but ‘LIBTOOL’ is undefined

下载 build install libtool-2.4.6

vlc 4.0 build failed QT not find


VLC依赖QT作为UI环境,编译时会有如下提示导致没有UI

checking for QT… no
configure: WARNING: No package ‘Qt5Core’ found
No package ‘Qt5Widgets’ found
No package ‘Qt5Gui’ found
Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Core.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘Qt5Core’, required by ‘Qt5 Svg’, not found.

下载QT源码下载工具
http://mirror.bit.edu.cn/qtproject/archive/online_installers/3.0/qt-unified-linux-x64-3.0.5-online.run
cd
/opt/Qt/5.11.1/Src
./configure
sudo make install -j8  编译安装qt
export PKG_CONFIG_PATH=/usr/local/Qt-5.11.1/lib/pkgconfig/
echo $PKG_CONFIG_PATH
配置搜索路径

编译VLC
cd vlccode/
./configure
sudo make