Skip to content

fatal error: QtGui/private/qtguiglobal_p.h: No such file or directory #7

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

Closed
kebugcheckex opened this issue Jun 14, 2020 · 5 comments
Closed

Comments

@kebugcheckex
Copy link

make output

[ 93%] Building CXX object qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin.dir/fcitx5platforminputcontextplugin_autogen/mocs_compilation.cpp.o                           
[ 96%] Building CXX object qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin.dir/main.cpp.o
[ 96%] Building CXX object qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin.dir/qfcitxplatforminputcontext.cpp.o
In file included from /home/xinyuchen/source/fcitx5-qt/build/qt5/platforminputcontext/fcitx5platforminputcontextplugin_autogen/EWIEGA46WW/../../../../../qt5/platforminputcontext/main.h:12,
                 from /home/xinyuchen/source/fcitx5-qt/build/qt5/platforminputcontext/fcitx5platforminputcontextplugin_autogen/EWIEGA46WW/moc_main.cpp:10,
                 from /home/xinyuchen/source/fcitx5-qt/build/qt5/platforminputcontext/fcitx5platforminputcontextplugin_autogen/mocs_compilation.cpp:2:                                        
/usr/include/qt5/QtGui/5.13.2/QtGui/qpa/qplatforminputcontextplugin_p.h:54:10: fatal error: QtGui/private/qtguiglobal_p.h: No such file or directory                                          
   54 | #include <QtGui/private/qtguiglobal_p.h>                                                                                                                                              
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                              
compilation terminated.                                                                                                                                                                       
make[2]: *** [qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin.dir/build.make:83: qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin.dir/fcitx5platformi
nputcontextplugin_autogen/mocs_compilation.cpp.o] Error 1                                  

The problem is from qt5/platforminputcontext/qfcitxplatforminputcontext.h line 20

#include <qpa/qplatforminputcontext.h>

On my system, this file is in /usr/include/qt5/QtGui/5.13.2/QtGui/qpa/qplatforminputcontext.h. However, there is a warning message in this file saying

//
//  W A R N I N G
//  -------------
//
// This file is part of the QPA API and is not meant to be used
// in applications. Usage of this API may make your code
// source and binary incompatible with future versions of Qt.
//

I'm not sure where to go from here.


By the way, I'm using Fedora 32, x86_64

@CoelacanthusHex
Copy link

duplicate #2

@kebugcheckex
Copy link
Author

duplicate #2

I see. For future reference, on Fedora the package name is qt5-qtbase-private-devel.

@typhoonsimon
Copy link

UBUNTU:
sudo apt install qtbase5-private-dev

FEDORA:
qt5-qtbase-private-devel

Adding this to the guide in your home page wouldn't certainly hurt your fingers.

@int-quhong
Copy link

UBUNTU: sudo apt install qtbase5-private-dev

FEDORA: qt5-qtbase-private-devel

Adding this to the guide in your home page wouldn't certainly hurt your fingers.

thank you

@HongShi007
Copy link

UBUNTU: sudo apt install qtbase5-private-dev
FEDORA: qt5-qtbase-private-devel
Adding this to the guide in your home page wouldn't certainly hurt your fingers.

thank you

thanks

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

5 participants