10楼#
发布于:2022-07-09 20:46
dgod:你自己编译吧回到原帖周大,编译时失败提示: ``` status: 1, signal: null, output: [ null, '', 'Package Qt5 was not found in the pkg-config search path.\n' + "Perhaps you should add the directory containing `Qt5.pc'\n" + 'to the PKG_CONFIG_PATH environment variable\n' + "Package 'Qt5', required by 'virtual:world', not found\n" ], pid: 15258, stdout: '', stderr: 'Package Qt5 was not found in the pkg-config search path.\n' + "Perhaps you should add the directory containing `Qt5.pc'\n" + 'to the PKG_CONFIG_PATH environment variable\n' + "Package 'Qt5', required by 'virtual:world', not found\n" } Node.js v18.5.0 ==> ERROR: A failure occurred in build(). Aborting... ``` qt5-base是装了的。 |
|
11楼#
发布于:2022-07-09 20:51
系统中需要安装好相关的开发环境,比如gtk3-devel,gtk2-devel,ibus-devel,libxkbcommon-devel(debian下是libgtk-3-dev libgtk2.0-dev libxkbcommon-dev libibus-1.0-dev)。
上面列的是fedora和debian下的需求,其他系统下应该有类似的,需要自己研究 |
|
12楼#
发布于:2022-07-09 21:00
看提示是QT5.pc找不到,我/usr/lib/pkgconfig/下有:
``` Qt5Concurrent.pc Qt5OpenGL.pc Qt5Test.pc Qt5Core.pc Qt5OpenGLExtensions.pc Qt5Widgets.pc Qt5DBus.pc Qt5PrintSupport.pc Qt5X11Extras.pc Qt5Gui.pc Qt5Sql.pc Qt5Xml.pc Qt5Network.pc Qt5Svg.pc ``` 会不会是换了个名字? |
|
15楼#
发布于:2022-07-09 22:06
dgod:你重新下载一下源代码,改进了一下编译过程,应该能在你电脑上编译了回到原帖谢谢!这次是能通过了,但是有另一个错误…… ``` /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp: In function ‘gboolean _set_cursor_location_internal(QYongPlatformInputContext*)’: /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp:290:17: error: ‘class QYongPlatformInputContext’ has no member named ‘is_wayland’ 290 | if(ctx->is_wayland) | ^~~~~~~~~~ /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp: In constructor ‘QYongPlatformInputContext::QYongPlatformInputContext()’: /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp:364:9: error: ‘is_wayland’ was not declared in this scope; did you mean ‘in_wayland’? 364 | is_wayland=in_wayland(); | ^~~~~~~~~~ | in_wayland /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp: In member function ‘virtual void QYongPlatformInputContext::setFocusObject(QObject*)’: /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp:550:23: error: ‘class QYongPlatformInputContext’ has no member named ‘is_wayland’ 550 | this->is_wayland=qApp->platformName()=="wayland"; | ^~~~~~~~~~ /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp: In member function ‘void QYongPlatformInputContext::cursorRectChanged()’: /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp:573:12: error: ‘is_wayland’ was not declared in this scope; did you mean ‘in_wayland’? 573 | if(is_wayland) | ^~~~~~~~~~ | in_wayland /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp:586:12: error: ‘is_wayland’ was not declared in this scope; did you mean ‘in_wayland’? 586 | if(is_wayland) | ^~~~~~~~~~ | in_wayland Error: Command failed: g++ -m64 -fPIC -I/mnt/sdc1/llc/abs/yong/src/yong/llib -DL_CALL_GLIB_CLIENT -fvisibility=hidden -I/mnt/sdc1/llc/abs/yong/src/yong/im -Wall -g -O2 -fno-strict-aliasing -pipe -I/mnt/sdc1/llc/abs/yong/src/yong/include -I/mnt/sdc1/llc/abs/yong/src/yong/common `pkg-config --cflags glib-2.0` `pkg-config --cflags Qt5Core Qt5Gui` -I/usr/include/qt/QtCore/5.15.5 -I/usr/include/qt/QtGui/5.15.5 -I/usr/include/qt/QtGui/5.15.5/QtGui -I/mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/l64-qt5 -c /mnt/sdc1/llc/abs/yong/src/yong/im/qt5-im/qyongplatforminputcontext.cpp -o qyongplatforminputcontext.o at checkExecSyncError (node:child_process:820:11) at Object.execSync (node:child_process:891:15) at exec (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:654:18) at cxx (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:375:2) at cxx (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:354:4) at run (eval at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8), <anonymous>:65:2) at eval (eval at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8), <anonymous>:77:2) at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8) at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { status: 1, signal: null, output: [ null, null, null ], pid: 19779, stdout: null, stderr: null } ==> ERROR: A failure occurred in build(). Aborting... ``` |
|
17楼#
发布于:2022-07-09 22:40
周大,我不确定这个错误是否是缺libgtk-2.0-dev包的原因,因为archlinux下gtk相关的包没找到有带dev字样的,我是装了gtk2和gtk3的,提示缺的这个app.c,我感觉也可能是其他原因?:
``` gcc -m64 -I/mnt/sdc1/llc/abs/yong/src/yong/llib -I/mnt/sdc1/llc/abs/yong/src/yong/im -I/mnt/sdc1/llc/abs/yong/src/yong/im/IMdkit -DCFG_XIM_IBUS `pkg-config --cflags ibus-1.0` -DCFG_XIM_FBTERM -I/mnt/sdc1/llc/abs/yong/src/yong/im/fbterm -DL_CALL_GLIB_SERVER -Wall -g -O2 -fno-strict-aliasing -pipe -I/mnt/sdc1/llc/abs/yong/src/yong/include -I/mnt/sdc1/llc/abs/yong/src/yong/common `pkg-config --cflags gtk+-2.0` -c app.c -o app.o cc1: fatal error: app.c: No such file or directory compilation terminated. Error: Command failed: gcc -m64 -I/mnt/sdc1/llc/abs/yong/src/yong/llib -I/mnt/sdc1/llc/abs/yong/src/yong/im -I/mnt/sdc1/llc/abs/yong/src/yong/im/IMdkit -DCFG_XIM_IBUS `pkg-config --cflags ibus-1.0` -DCFG_XIM_FBTERM -I/mnt/sdc1/llc/abs/yong/src/yong/im/fbterm -DL_CALL_GLIB_SERVER -Wall -g -O2 -fno-strict-aliasing -pipe -I/mnt/sdc1/llc/abs/yong/src/yong/include -I/mnt/sdc1/llc/abs/yong/src/yong/common `pkg-config --cflags gtk+-2.0` -c app.c -o app.o at checkExecSyncError (node:child_process:820:11) at Object.execSync (node:child_process:891:15) at exec (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:654:18) at cc (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:348:2) at cc (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:333:4) at run (eval at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8), <anonymous>:46:2) at eval (eval at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8), <anonymous>:85:2) at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8) at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { status: 1, signal: null, output: [ null, null, null ], pid: 25661, stdout: null, stderr: null } ==> ERROR: A failure occurred in build(). Aborting... ``` |
|
19楼#
发布于:2022-07-09 23:42
dgod:缺文件,你继续从git上更新一下回到原帖是不是还是缺什么……? ``` gcc -m64 -I/mnt/sdc1/llc/abs/yong/src/yong/llib -I/mnt/sdc1/llc/abs/yong/src/yong/im -I/mnt/sdc1/llc/abs/yong/src/yong/im/IMdkit -DCFG_XIM_IBUS `pkg-config --cflags ibus-1.0` -DCFG_XIM_FBTERM -I/mnt/sdc1/llc/abs/yong/src/yong/im/fbterm -DL_CALL_GLIB_SERVER -DL_CALL_GLIB_CLIENT -Wall -g -O2 -fno-strict-aliasing -pipe -I/mnt/sdc1/llc/abs/yong/src/yong/include -I/mnt/sdc1/llc/abs/yong/src/yong/common `pkg-config --cflags gtk+-2.0` -c ybus-ibus.c -o ybus-ibus.o cc1: fatal error: ybus-ibus.c: No such file or directory compilation terminated. Error: Command failed: gcc -m64 -I/mnt/sdc1/llc/abs/yong/src/yong/llib -I/mnt/sdc1/llc/abs/yong/src/yong/im -I/mnt/sdc1/llc/abs/yong/src/yong/im/IMdkit -DCFG_XIM_IBUS `pkg-config --cflags ibus-1.0` -DCFG_XIM_FBTERM -I/mnt/sdc1/llc/abs/yong/src/yong/im/fbterm -DL_CALL_GLIB_SERVER -DL_CALL_GLIB_CLIENT -Wall -g -O2 -fno-strict-aliasing -pipe -I/mnt/sdc1/llc/abs/yong/src/yong/include -I/mnt/sdc1/llc/abs/yong/src/yong/common `pkg-config --cflags gtk+-2.0` -c ybus-ibus.c -o ybus-ibus.o at checkExecSyncError (node:child_process:820:11) at Object.execSync (node:child_process:891:15) at exec (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:654:18) at cc (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:348:2) at cc (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:333:4) at run (eval at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8), <anonymous>:45:2) at eval (eval at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8), <anonymous>:84:2) at _build_step (/mnt/sdc1/llc/abs/yong/src/build.js/build.js:525:8) at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { status: 1, signal: null, output: [ null, null, null ], pid: 31712, stdout: null, stderr: null } ==> ERROR: A failure occurred in build(). ``` |
|