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

fatal error: private/qmetaobjectbuilder_p.h: No such file or directory for ubuntu 16.04 #70

Open
danxibao opened this issue Feb 19, 2020 · 3 comments

Comments

@danxibao
Copy link

danxibao commented Feb 19, 2020

xxx@xxx:/home/xxx/Documents/project$ cd PythonQt-build/
xxx@xxx:/home/xxx/Documents/project/PythonQt-build$ cmake /home/xxx/Documents/gitlab/LidarViewX64/build/install/lib/cmake/Qt5 ../pythonqt
-- PythonQt: Required Qt components [Core;Widgets]
-- Configuring done
-- Generating done
-- Build files have been written to: /home/raokaiyuan/Documents/project/PythonQt-build

xxx@xxx:~/Documents/project/PythonQt-build$ make
[ 2%] Generating generated_cpp_56/com_trolltech_qt_gui_builtin/moc_com_trolltech_qt_gui_builtin0.cpp
[ 5%] Generating src/moc_PythonQt.cpp
[ 7%] Generating src/moc_PythonQtStdDecorators.cpp
[ 10%] Generating generated_cpp_56/com_trolltech_qt_core_builtin/moc_com_trolltech_qt_core_builtin0.cpp
Scanning dependencies of target PythonQt
[ 13%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtBoolResult.cpp.o
[ 15%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtClassInfo.cpp.o
[ 18%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtClassWrapper.cpp.o
[ 21%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtConversion.cpp.o
[ 23%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o
/home/raokaiyuan/Documents/project/pythonqt/src/PythonQt.cpp:1991:42: fatal error: private/qmetaobjectbuilder_p.h: No such file or directory
compilation terminated.
CMakeFiles/PythonQt.dir/build.make:182: recipe for target 'CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o' failed
make[2]: *** [CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/PythonQt.dir/all' failed
make[1]: *** [CMakeFiles/PythonQt.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@jmirabel
Copy link

sudo apt install qtbase5-private-dev should solve your issue.

@danxibao
Copy link
Author

danxibao commented Feb 20, 2020

I am using an independent package qt-everywhere-opensource-src-5.9.2.tar.xz rather than USE_SYSTEM, which installed successfully in this directory /home/xxx/Documents/gitlab/LidarViewX64/build/install/ on ubuntu 16.04. I think it has nothing to do with qtbase5-private-dev?

@danxibao
Copy link
Author

danxibao commented Feb 20, 2020

sudo apt install qtbase5-private-dev should solve your issue.

xxx@xxx:/home/xxx/Documents/project/PythonQt-build$ sudo apt install qtbase5-private-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
qtbase5-private-dev is already the newest version (5.5.1+dfsg-16ubuntu7).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
xxx@xxx:/home/xxx/Documents/project/PythonQt-build$ cmake -DQt5_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt5 ../pythonqt
-- PythonQt: Required Qt components [Core;Widgets]
-- Configuring done
-- Generating done
-- Build files have been written to: /home/raokaiyuan/Documents/project/PythonQt-build
xxx@xxx:/home/xxx/Documents/project/PythonQt-build$ make clean
xxx@xxx:/home/xxx/Documents/project/PythonQt-build$ make
[ 2%] Generating generated_cpp_54/com_trolltech_qt_gui_builtin/moc_com_trolltech_qt_gui_builtin0.cpp
[ 5%] Generating src/moc_PythonQt.cpp
[ 7%] Generating src/moc_PythonQtSignalReceiver.cpp
[ 10%] Generating src/moc_PythonQtStdDecorators.cpp
[ 13%] Generating src/gui/moc_PythonQtScriptingConsole.cpp
[ 15%] Generating generated_cpp_54/com_trolltech_qt_core_builtin/moc_com_trolltech_qt_core_builtin0.cpp
Scanning dependencies of target PythonQt
[ 18%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtBoolResult.cpp.o
[ 21%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtClassInfo.cpp.o
[ 23%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtClassWrapper.cpp.o
[ 26%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQtConversion.cpp.o
[ 28%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o
/home/raokaiyuan/Documents/project/pythonqt/src/PythonQt.cpp:1991:42: fatal error: private/qmetaobjectbuilder_p.h: No such file or directory
compilation terminated.
CMakeFiles/PythonQt.dir/build.make:182: recipe for target 'CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o' failed
make[2]: *** [CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/PythonQt.dir/all' failed
make[1]: *** [CMakeFiles/PythonQt.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
xxx@xxx:/home/xxx/Documents/project/PythonQt-build$

@danxibao danxibao changed the title make fail!!! fatal error: private/qmetaobjectbuilder_p.h: No such file or directory for ubuntu 16.04 Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants