Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Qt5 qplatformnativeinterface.h error #151

Closed
lebies opened this issue on Feb 6, 2014 · 7 comments
Closed

Linux Qt5 qplatformnativeinterface.h error #151

lebies opened this issue on Feb 6, 2014 · 7 comments

Comments

@lebies
Copy link

@lebies lebies commented on Feb 6, 2014

I'm trying to compile QtAV but run into problems I can't solve! No solution on Google either. I would really, really appreciate any help/advice you may have for me.

I'm on :
Linux 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux
(aka SolydK - testing).
ffmpeg local build - works, opencv-2.4.7 local build - works

on make: the following error occurs:

g++ -c -m64 -pipe -isystem /home/leon/qt/QtAV/src -isystem /home/leon/qt/QtAV/src/.. -O2 -Wall -W -D_REENTRANT -fPIC -DBUILD_QTAV_LIB -D__STDC_CONSTANT_MACROS -DQTAV_HAVE_SWRESAMPLE=1 -DQTAV_HAVE_PORTAUDIO=1 -DQTAV_HAVE_OPENAL=1 -DQTAV_HAVE_XV=1 -DQTAV_HAVE_GL=1 -DQTAV_HAVE_VAAPI=1 -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I/home/leon/qt/QtAV/src -I/home/leon/qt/QtAV/src -I/home/leon/qt/QtAV -I/home/leon/qt/QtAV/src/QtAV -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtGui/5.1.1 -I/usr/include/qt5/QtGui/5.1.1/QtGui -I/usr/include/qt5/QtCore -I../.moc/5.1.1/QtAV -I. -o ../.obj/QtAV_linux_x86_64/XVRenderer.o /home/leon/qt/QtAV/src/XVRenderer.cpp
In file included from /home/leon/qt/QtAV/src/XVRenderer.cpp:27:0:
/home/leon/qt/QtAV/src/QtAV/private/XVRenderer_p.h:29:42: fatal error: qpa/qplatformnativeinterface.h: No such file or directory
#include <qpa/qplatformnativeinterface.h>
^
compilation terminated.
make[1]: *** [../.obj/QtAV_linux_x86_64/XVRenderer.o] Error 1
make[1]: Leaving directory `/home/leon/qt/QtAV/build/src'
make: *** [sub-src-libQtAV-pro-make_first] Error 2

There is no "qplatformnativeinterface.h" on my Qt5 installation or anywhere else on my system.

Thanks so much in advance, I really appreciate any help.

@sladage
Copy link
Contributor

@sladage sladage commented on Feb 6, 2014

Which version of Qt are you using? I'm using Qt 5.2 on linux and it compiles just fine.

Loading

@lebies
Copy link
Author

@lebies lebies commented on Feb 6, 2014

Hi sladage,

As can be seen from the includes in the make, version 5.1.1. I've seen from google that the platformnativeinterface.h file is present in Qt4 v4.4.8.5 I had on my system a while back.

Should I upgrade my Qt version to 5.2? Will if I have to...

Loading

@lebies lebies closed this on Feb 6, 2014
@lebies lebies reopened this on Feb 6, 2014
@sladage
Copy link
Contributor

@sladage sladage commented on Feb 6, 2014

I would try qt 5.2 for that version should definitely work.

Loading

@lebies
Copy link
Author

@lebies lebies commented on Feb 6, 2014

sladage, thanks man, building it now ...

Loading

@wang-bin
Copy link
Owner

@wang-bin wang-bin commented on Feb 7, 2014

xv is broken now. and i should not use private header

Loading

@wang-bin
Copy link
Owner

@wang-bin wang-bin commented on Feb 7, 2014

I removed qplatformnativeinterface.h

Loading

@lebies
Copy link
Author

@lebies lebies commented on Feb 11, 2014

wang-bin,

Thanks, that did it! :) All working now.
Great work, keep it up.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants