[vlc-devel] [help] how to compile vlc with qt

liyoubdu liyoubdu at qq.com
Fri Dec 30 02:51:33 CET 2016

operating system: centos7 64bit

hi all,
using command below, i have build vlc successfully.

CXXFLAGS="-D__STDC_FORMAT_MACROS" ./configure --enable-debug --enable-run-as-root --with-contrib=/mnt/vlc-latest-git/contrib/x86_64-redhat-linux

but when i run vlc, it say no interface:

[root at localhost vlc-latest-git]# ./vlc 
VLC media player 3.0.0-git Vetinari (revision 2.2.0-git-10503-g345754b)
[00000000009833e8] core interface error: no suitable interface module
[00000000008be4a8] core libvlc error: interface "globalhotkeys,none" initialization failed


then, using 'yum install -y qt-devel', i have installed qt-devel-4.8.5-13.el7.x86_64  successfully.
but when i compile vlc, errors happen:

CXX      libqt_plugin_la-qt.lo
In file included from ../../../include/vlc_fixups.h:31:0,
                 from ../../../config.h:893,
                 from qt.cpp:26:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
In file included from qt.cpp:38:0:
dialogs_provider.hpp:94:60: error: ‘Q_NULLPTR’ was not declared in this scope
     static QStringList getOpenFileNames( QWidget *parent = Q_NULLPTR,
dialogs_provider.hpp:98:68: error: ‘Q_NULLPTR’ was not declared in this scope
                                          QString *selectedFilter = Q_NULLPTR );
dialogs_provider.hpp:99:55: error: ‘Q_NULLPTR’ was not declared in this scope
     static QString getSaveFileName( QWidget *parent = Q_NULLPTR,

... ...

i thought maybe that qt is too old and i should have a  high version qt. so i downloaded package 'qt-opensource-linux-x64-5.5.1.run' from qt website.

then run:
chmod a+x qt-opensource-linux-x64-5.5.1.run
sudo ./qt-opensource-linux-x64-5.5.1.run

install qt to /usr/local/Qt5.5.1

now try again to compile vlc, but the same errors still happened. what can i do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161230/c0222f1c/attachment.html>

More information about the vlc-devel mailing list