You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fatal error: private/qmetaobjectbuilder_p.h: No such file or directory for ubuntu 16.04 #70
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?
Activity
jmirabel commentedon Feb 19, 2020
sudo apt install qtbase5-private-devshould solve your issue.danxibao commentedon 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 commentedon Feb 20, 2020
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$
[-]make fail!!![/-][+]fatal error: private/qmetaobjectbuilder_p.h: No such file or directory for ubuntu 16.04[/+]