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

该库的依赖于 qtbase5-private-dev , 但是依赖关系里面没有对该库进行一个检测。 #2

Closed
supremew opened this issue May 25, 2018 · 2 comments

Comments

@supremew
Copy link

该库的依赖于qtbase5-private-dev, 但是依赖关系里面没有对该库进行一个检测。
希望有空的话加入。

@orivee
Copy link

orivee commented Nov 7, 2019

一直编不过下面这个错误:

[ 83%] Built target fcitx-quickphrase-editor5
Scanning dependencies of target fcitx5-qt5-gui-wrapper

AutoMoc subprocess error
------------------------
moc failed for
  "/home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/qt5/platforminputcontext/main.h"

Command
-------
/usr/lib/qt5/bin/moc -I/home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/build/qt5/platforminputcontext/fcitx5platforminputcontextplugin_autogen/include -I/usr/include/x86_64-linux-gnu/qt5/QtGui/5.9.5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui/5.9.5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore/5.9.5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore/5.9.5/QtCore -I/usr/local/include/Fcitx5/Utils -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/build/qt5/dbusaddons -I/home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/qt5/dbusaddons -I/usr/include "-DFCITX5_QT_VERSION=\"0.0.1\"" "-DFCITX_GETTEXT_DOMAIN=\"fcitx5-qt\"" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB --include /home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/build/qt5/platforminputcontext/fcitx5platforminputcontextplugin_autogen/moc_predefs.h -o /home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/build/qt5/platforminputcontext/fcitx5platforminputcontextplugin_autogen/EWIEGA46WW/moc_main.cpp /home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/qt5/platforminputcontext/main.h

Output
------
/home/vmuser/pkgbuild/fcitx5-git/fcitx5-qt/qt5/platforminputcontext/main.h:34: Parse error at "IID"

qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin_autogen.dir/build.make:57: recipe for target 'qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin_autogen' failed
make[2]: *** [qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin_autogen] Error 1
CMakeFiles/Makefile2:472: recipe for target 'qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin_autogen.dir/all' failed
make[1]: *** [qt5/platforminputcontext/CMakeFiles/fcitx5platforminputcontextplugin_autogen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 85%] Building CXX object qt5/guiwrapper/CMakeFiles/fcitx5-qt5-gui-wrapper.dir/main.cpp.o
[ 88%] Building CXX object qt5/guiwrapper/CMakeFiles/fcitx5-qt5-gui-wrapper.dir/mainwindow.cpp.o
[ 88%] Building CXX object qt5/guiwrapper/CMakeFiles/fcitx5-qt5-gui-wrapper.dir/fcitx5-qt5-gui-wrapper_autogen/mocs_compilation.cpp.o
[ 90%] Building CXX object qt5/guiwrapper/CMakeFiles/fcitx5-qt5-gui-wrapper.dir/wrapperapp.cpp.o
[ 91%] Linking CXX executable fcitx5-qt5-gui-wrapper
[ 91%] Built target fcitx5-qt5-gui-wrapper
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

谢谢,我加了这个包终于编译过去了

环境:Ubuntu 18.04.3 LTS

@wengxt
Copy link
Member

wengxt commented Nov 7, 2019

Qt's cmake detection doesn't provide check against "private" headers. Don't want to invent our own mechanism to check that.

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

3 participants