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