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

Compile issue on Linux when running 'make' under sherlock265: No such file QtGui and qglobal.h #459

Open
GingaUL opened this issue May 10, 2024 · 1 comment

Comments

@GingaUL
Copy link

GingaUL commented May 10, 2024

Hello! I ran 'make' under the folder sherlock265 and met this problem.

Here is the error outputs.

libde265-master/sherlock265# make g++ -DHAVE_CONFIG_H -I. -I.. -I../libde265 -std=c++0x -fPIC -g -O2 -Werror=return-type -Werror=unused-result -Werror=reorder -DDE265_LOG_ERROR -MT sherlock265-sherlock265.o -MD -MP -MF .deps/sherlock265-sherlock265.Tpo -c -o sherlock265-sherlock265.o test -f 'sherlock265.cc' || echo './'sherlock265.cc In file included from sherlock265.cc:27:0: VideoPlayer.hh:30:10: fatal error: QtGui: No such file or directory #include <QtGui> ^~~~~~~ compilation terminated. Makefile:511: recipe for target 'sherlock265-sherlock265.o' failed make: *** [sherlock265-sherlock265.o] Error 1

/bin/bash: VideoDecoder.hh: command not found /bin/bash: VideoPlayer.hh: command not found Makefile:851: recipe for target 'moc_VideoDecoder.cpp' failed make: *** [moc_VideoDecoder.cpp] Error 127 make: *** Waiting for unfinished jobs.... Makefile:848: recipe for target 'moc_VideoPlayer.cpp' failed make: *** [moc_VideoPlayer.cpp] Error 127 /bin/bash: VideoWidget.hh: command not found Makefile:845: recipe for target 'moc_VideoWidget.cpp' failed make: *** [moc_VideoWidget.cpp] Error 127 In file included from sherlock265.cc:27:0: VideoPlayer.hh:30:10: fatal error: QtGui: No such file or directory #include <QtGui> ^~~~~~~ compilation terminated. In file included from VideoPlayer.cc:27:0: VideoPlayer.hh:30:10: fatal error: QtGui: No such file or directory #include <QtGui> ^~~~~~~ compilation terminated. Makefile:511: recipe for target 'sherlock265-sherlock265.o' failed make: *** [sherlock265-sherlock265.o] Error 1 Makefile:525: recipe for target 'sherlock265-VideoPlayer.o' failed make: *** [sherlock265-VideoPlayer.o] Error 1 In file included from VideoWidget.cc:27:0: VideoWidget.hh:30:10: fatal error: QtCore/qglobal.h: No such file or directory #include <QtCore/qglobal.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. In file included from VideoDecoder.cc:27:0: VideoDecoder.hh:34:10: fatal error: QtGui: No such file or directory #include <QtGui> ^~~~~~~ compilation terminated. Makefile:553: recipe for target 'sherlock265-VideoWidget.o' failed make: *** [sherlock265-VideoWidget.o] Error 1 Makefile:539: recipe for target 'sherlock265-VideoDecoder.o' failed make: *** [sherlock265-VideoDecoder.o] Error 1

Most of the answers on the internet are Qt5 doesn't contain QtGui but I'm using Qt4.

qmake --version

QMake version 2.01a Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu

@KarthikTdk
Copy link

Hi can u tell me how to run this code in Linux please!

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

No branches or pull requests

2 participants