Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

make ERROR : Parse error at "IID" #35

Closed
NewtMa opened this issue Oct 22, 2019 · 3 comments
Closed

make ERROR : Parse error at "IID" #35

NewtMa opened this issue Oct 22, 2019 · 3 comments

Comments

@NewtMa
Copy link

NewtMa commented Oct 22, 2019

I have done the following command

sudo apt install cmake extra-cmake-modules fcitx-libs-dev

I have Qt5.9.5 on my Ubuntu1804, the PATH variable is

PATH=/usr/lib/x86_64-linux-gnu/qt5/bin:$PATH

and make output is

[  0%] Built target fcitx-scan-addons.target
[  0%] Built target fcitx-modules.target
[  1%] Automatic MOC for target FcitxQt5DBusAddons
[  1%] Built target FcitxQt5DBusAddons_autogen
[ 14%] Built target FcitxQt5DBusAddons
[ 16%] Automatic MOC for target FcitxQt5WidgetsAddons
[ 16%] Built target FcitxQt5WidgetsAddons_autogen
[ 26%] Built target FcitxQt5WidgetsAddons
[ 27%] Automatic MOC for target fcitx-qt5-gui-wrapper
[ 27%] Built target fcitx-qt5-gui-wrapper_autogen
[ 36%] Built target fcitx-qt5-gui-wrapper
[ 38%] Automatic MOC for target fcitx-quickphrase-editor5
[ 38%] Built target fcitx-quickphrase-editor5_autogen
[ 54%] Built target fcitx-quickphrase-editor5
[ 69%] Built target fcitx-compile-mo.target
[ 70%] Automatic MOC for target fcitxplatforminputcontextplugin

AutoMoc subprocess error
------------------------
moc failed for
  "/home/newtma/qt_project/fcitx-qt5/platforminputcontext/main.h"

Command
-------
/usr/lib/qt5/bin/moc -I/home/newtma/qt_project/fcitx-qt5/platforminputcontext/fcitxplatforminputcontextplugin_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/home/newtma/qt_project/fcitx-qt5/platforminputcontext -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 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG --include /home/newtma/qt_project/fcitx-qt5/platforminputcontext/fcitxplatforminputcontextplugin_autogen/moc_predefs.h -o /home/newtma/qt_project/fcitx-qt5/platforminputcontext/fcitxplatforminputcontextplugin_autogen/EWIEGA46WW/moc_main.cpp /home/newtma/qt_project/fcitx-qt5/platforminputcontext/main.h

Output
------
/home/newtma/qt_project/fcitx-qt5/platforminputcontext/main.h:32: Parse error at "IID"

platforminputcontext/CMakeFiles/fcitxplatforminputcontextplugin_autogen.dir/build.make:57: recipe for target 'platforminputcontext/CMakeFiles/fcitxplatforminputcontextplugin_autogen' failed
make[2]: *** [platforminputcontext/CMakeFiles/fcitxplatforminputcontextplugin_autogen] Error 1
CMakeFiles/Makefile2:963: recipe for target 'platforminputcontext/CMakeFiles/fcitxplatforminputcontextplugin_autogen.dir/all' failed
make[1]: *** [platforminputcontext/CMakeFiles/fcitxplatforminputcontextplugin_autogen.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
@NewtMa NewtMa closed this as completed Oct 22, 2019
@NewtMa
Copy link
Author

NewtMa commented Oct 22, 2019

make command -I directories are wrong

@NewtMa NewtMa reopened this Oct 22, 2019
@NewtMa
Copy link
Author

NewtMa commented Oct 22, 2019

I installed Qt5.9.0 from .run installer and exported the PATH variable, and still not working

@wengxt
Copy link
Member

wengxt commented Oct 27, 2019

I assume you're missing private qt header or sth? I don't have any problem on building it.

Platform input context requires private qt header.

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

No branches or pull requests

2 participants