Zeal: Build Debian Sid, Qt5.2.0 error (qpa/qplatformnativeinterface.h - no such file)

Created on 3 Mar 2014  路  8Comments  路  Source: zealdocs/zeal

Trying to install on SolydXK (KDE), based on Debian testing.

Details:
$ uname -a Linux leon 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux

Qt5 prerequisits installed from -t unstable

$ qmake Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version. Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point. Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!

$ make g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -fPIE -DZEAL_VERSION=\"20140215\" -DLINUX -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WEBKIT_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -Iquazip -I/usr/include/qt5 -I/usr/include/qt5/QtWebKitWidgets -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtWebKit -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtGui/5.2.0 -I/usr/include/qt5/QtGui/5.2.0/QtGui -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o mainwindow.o mainwindow.cpp mainwindow.cpp:30:42: fatal error: qpa/qplatformnativeinterface.h: No such file or directory #include <qpa/qplatformnativeinterface.h> ^ compilation terminated. make: *** [mainwindow.o] Error 1

I've had this issue before which was fixed by developer removing the include reference (and some other fixes I would imagine).

Help/advice appreciated.

Thanks in advance.

Most helpful comment

Try installing qtbase5-private-dev.

All 8 comments

Try installing qtbase5-private-dev.

got the exact same error on compilation :(
i am on mageia 4 where i can't find qtbase5-private-dev
Linux mbp_bach_mageia 3.12.20-desktop-1.mga4 #1 SMP Fri May 16 15:47:33 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

g++ -c -pipe -std=gnu++0x -std=c++11 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-strict-aliasing -DPIC -fPIC -Wall -W -D_REENTRANT -fPIE -DZEAL_VERSION=\"20140215\" -DLINUX -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WEBKIT_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I. -Iquazip -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtWebKitWidgets -I/usr/lib64/qt5/include/QtQuick -I/usr/lib64/qt5/include/QtOpenGL -I/usr/lib64/qt5/include/QtPrintSupport -I/usr/lib64/qt5/include/QtWebKit -I/usr/lib64/qt5/include/QtQml -I/usr/lib64/qt5/include/QtGui/5.2.0 -I/usr/lib64/qt5/include/QtGui/5.2.0/QtGui -I/usr/lib64/qt5/include/QtWidgets -I/usr/lib64/qt5/include/QtXml -I/usr/lib64/qt5/include/QtSql -I/usr/lib64/qt5/include/QtNetwork -I/usr/lib64/qt5/include/QtGui -I/usr/lib64/qt5/include/QtCore -I. -I. -o mainwindow.o mainwindow.cpp mainwindow.cpp:30:42: erreur fatale: qpa/qplatformnativeinterface.h : Aucun fichier ou dossier de ce type #include <qpa/qplatformnativeinterface.h> ^ compilation termin茅e. Makefile:3212: recipe for target 'mainwindow.o' failed make: *** [mainwindow.o] Error 1

please help

I have to install these packages to build Zeal on Debian. Some of them can be redundant (or even self-repeatable), but it works for me.

libqt5scripttools5 qt5-qmake qt5-default libqt5script5 libqt5core5a libqt5gui5 libqt5webkit5 libqt5webkit5-dev qtscript5-dev qtquick1-5-dev qtquick1-5-dev-tools qttools5-dev libqt5quickparticles5 libqt5quicktest5 libqt5quick5 libqt5quickparticles5 qtdeclarative5-dev qtdeclarative5-dev-tools libqt5declarative5 qtbase5-private-dev libxcb-keysyms1-dev libxslt1-dev libxml2-dev libsqlite3-dev libgstreamer-plugins-base0.10-dev

And the new one dependency, appindicator:

libappindicator-dev

Add @JIghtuse's answer to the "How to compile" section in README, it's very useful.

That is my steps to install the dependency for compiling:

  1. download Qt5 SDK
  2. install qt5-qmake and then install qt5-default to make sure your qmake version is 5.0+
  3. install libappindicator-dev( for apt-get ) or libappindicator-devel( for rpm )
  4. install libqt5webkit5-dev
  5. install qtbase5-private-dev

Maybe that is all if I do not forget anything. My OS version is Ubuntu 14.04

Zeal's website will be updated with compilation instructions for different distributions.

I am closing this one as a duplicate of #61.

@spacewander million thanks!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for a related request.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gueorgui picture gueorgui  路  8Comments

Hibou57 picture Hibou57  路  7Comments

cweiske picture cweiske  路  5Comments

cccaballero picture cccaballero  路  7Comments

benjaminfrank picture benjaminfrank  路  9Comments