20楼#
发布于:2022-07-13 21:02
用了几天,感觉小小即使在ibus嵌合模式下,兼容性也还是有些问题,比如在一些应用会丢字,要来回切換窗口一次就正常了;然后在一些应用,比如doublecmd下,即使小小在英文模式下,按键后double并不能以按的键的郣母快速定位。这些我在设为ibus-rime时就没有这些问题。
不知这块能否做一些改进呢?
21楼#
发布于:2022-07-13 22:37
dgod:没碰到过你说的问题。doublecmd在我电脑上正常显示都有困难。你觉得有问题的话,最好说明在哪个位置按什么按键。回到原帖
我用的doublecmd-gtk2,默认应该是按键直接快速定位到相同键的文件上,比如按a,则快速定位到a开头的文件。但如果使用小小,即使是英文状态,这个功能也不能正常工作。

至于丢字不上屏,这个我还没找到有什么规律,在wechat-uos、libreoffice等都有遇到,就是输入一个字,会不上屏,这时再换输入另一个不同的字,是可能正常上屏的,但想输入不能上屏的字,得来回換一下窗口然后就又能正常输入了。
22楼#
发布于:2022-07-13 23:13
dgod:更新一下吧,修复了doublecmd中的filter功能
libreoffice中测试打了几段文字,没有重现
回到原帖
赞!不过编译时遇到了问题……
```
gcc -m64 -fPIC -I/mnt/abs/yong/src/yong/llib -DL_CALL_GLIB_CLIENT -fvisibility=hidden -I/mnt/abs/yong/src/yong/im -Wall -g -O2 -fno-strict-aliasing -pipe -I/mnt/abs/yong/src/yong/include -I/mnt/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/abs/yong/src/yong/im/qt5-im/l64-qt5 -shared -Wl,--hash-style=sysv -m64 -Wl,--no-undefined -Wl,-O1 -Wl,-z,relro qyongplatforminputcontext.o main.o lcall.o moc_main.o moc_qyongplatforminputcontext.o  -o ./libyongplatforminputcontextplugin.so `pkg-config --libs Qt5Core Qt5Gui glib-2.0` -ldl -lstdc++
Failed change to directory '/mnt/abs/yong/src/yong/im/qt5-im/l32-qt6'
```
23楼#
发布于:2022-07-13 23:46
似乎不行:
gcc -m64 -fPIC -I/mnt/abs/yong/src/yong/llib -DL_CALL_GLIB_CLIENT -f
visibility=hidden -I/mnt/abs/yong/src/yong/im -Wall -g -O2 -fno-stri
ct-aliasing -pipe -I/mnt/abs/yong/src/yong/include -I/mnt/abs/yong/src/yong/common `pkg-config --cflags glib-2.0` `pkg-config --cflags Q
t5Core 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/abs/yong/src/yong/im/qt5-i
m/l64-qt5 -shared -Wl,--hash-style=sysv -m64 -Wl,--no-undefined -Wl,-O1 -Wl,-z,r
elro qyongplatforminputcontext.o main.o lcall.o moc_main.o moc_qyongplatforminpu
tcontext.o  -o ./libyongplatforminputcontextplugin.so `pkg-config --libs Qt5Core
 Qt5Gui glib-2.0` -ldl -lstdc++
Package Qt6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt6.pc'
to the PKG_CONFIG_PATH environment variable
Package 'Qt6', required by 'virtual:world', not found
node:child_process:894
    throw err;
    ^

Error: Command failed: pkg-config --modversion Qt6
Package Qt6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt6.pc'
to the PKG_CONFIG_PATH environment variable
Package 'Qt6', required by 'virtual:world', not found
node:child_process:894
    throw err;
    ^

Error: Command failed: pkg-config --modversion Qt6
Package Qt6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt6.pc'
to the PKG_CONFIG_PATH environment variable
Package 'Qt6', required by 'virtual:world', not found

    at checkExecSyncError (node:child_process:820:11)
    at Object.execSync (node:child_process:891:15)
    at shell (/mnt/abs/yong/src/build.js/build.js:586:23)
    at run (eval at _build_step (/mnt/abs/yong/src/build.js/build.js:525:8), <anonymous>:33:14)
    at eval (eval at _build_step (/mnt/abs/yong/src/build.js/build.js:525:8), <anonymous>:81:2)
    at _build_step (/mnt/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,
    '',
    'Package Qt6 was not found in the pkg-config search path.\n' +
      "Perhaps you should add the directory containing `Qt6.pc'\n" +
      'to the PKG_CONFIG_PATH environment variable\n' +
      "Package 'Qt6', required by 'virtual:world', not found\n"
  ],
  pid: 37312,
  stdout: '',
  stderr: 'Package Qt6 was not found in the pkg-config search path.\n' +
    "Perhaps you should add the directory containing `Qt6.pc'\n" +
    'to the PKG_CONFIG_PATH environment variable\n' +
    "Package 'Qt6', required by 'virtual:world', not found\n"
}

Node.js v18.5.0
24楼#
发布于:2022-07-13 23:54
dgod:Package Qt6 was not found in the pkg-config search path.

没有qt6,你修改build.txt,把qt6相关的删掉吧
回到原帖
我是把qt5-im/build.txt里的相关字段都删了,还是有这个错误提示。然后我把qt6也安装了再次尝试,还是一样的问题……似乎arch的qt6-base没有qt6.pc。
25楼#
发布于:2022-07-14 00:09
dgod:那应该是你删错东西了回到原帖
我检查了这个文件,qt6的字段都没了的,不清楚为何还会提示QT6的
26楼#
发布于:2022-07-14 00:20
vi abs/yong/src/yong/im/qt5-im/build.txt
-----
var SRCS_CXX=['qyongplatforminputcontext.cpp','main.cpp'];
var SRCS_C=['lcall.c'];
var OBJS=[
'qyongplatforminputcontext.o',
'main.o',
'lcall.o',
'moc_main.o',
'moc_qyongplatforminputcontext.o'];


env("VPATH+=$(TOPDIR)/im/qt5-im $(TOPDIR)/im");
env("CFLAGS+=$(PICFLAGS) $(LLIB_CFLAGS)");
env("CFLAGS+=-DL_CALL_GLIB_CLIENT -fvisibility=hidden -I$(TOPDIR)/im");
env("LDFLAGS+=-shared");

function run(target){
cd(target);
include("../../../rules.txt");
var ARCH=target.split('-')[0];
var QT=target.split('-')[1];
var VER=QT.substring(2);
env("CFLAGS+=`pkg-config --cflags glib-2.0`");
if(VER==5){
env("CFLAGS+=`pkg-config --cflags Qt5Core Qt5Gui`");
}else{

}

if(VER==5){
var QT_VER=shell(`pkg-config --modversion Qt${VER}Core`);
env("LIBS+=`pkg-config --libs Qt5Core Qt5Gui glib-2.0`");
}else{
var QT_VER=shell(`pkg-config --modversion Qt${VER}`);
env(`LIBS+=-lQt${VER}Gui -lQt${VER}Core -lglib-2.0`);
}
env("QT_VER+="+QT_VER);
env("LIBS+=-ldl -lstdc++");
if(VER==5){
//var MOC="/usr/bin/moc"
var LIBDIR=shell(`pkg-config --variable=libdir Qt${VER}Core`);
var MOC="/usr/bin/moc"
}else{
var MOC="/usr/bin/moc"
var LIBDIR=shell(`pkg-config --variable=libdir Qt${VER}`);
}
if(VER==5)
var INCDIR=shell("pkg-config --variable=includedir Qt5Core");
else
var INCDIR=`/usr/include/qt${VER}`;
env("CFLAGS","+=",`-I${INCDIR}/QtCore/${QT_VER}`);
env("CFLAGS","+=",`-I${INCDIR}/QtGui/${QT_VER}`);
env("CFLAGS","+=",`-I${INCDIR}/QtGui/${QT_VER}/QtGui`);
env(`MOCFLAGS=-DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I${LIBDIR}/qt${VER}/mkspecs/linux-g++ -I${INCDIR}/QtGui/$(QT_VER) -I${INCDIR}/QtGui/$(QT_VER)/QtGui -I${INCDIR} -I${INCDIR}/QtGui -I${INCDIR}/QtDBus -I${INCDIR}/QtCore`);
env("LDFLAGS+=-Wl,--no-undefined -Wl,-O1 -Wl,-z,relro");
env("CFLAGS+=-I$(TOPDIR)/im/qt5-im/"+target);
if(!_exists(MOC))
MOC="/usr/bin/moc"
cr('../main.h','moc_main.cpp',
MOC+' $(MOCFLAGS) $^ -o $@');
cr('../qyongplatforminputcontext.h','moc_qyongplatforminputcontext.cpp',
MOC+' $(MOCFLAGS) $^ -o $@');
begin();
cxx('moc_main.cpp');
cxx('moc_qyongplatforminputcontext.cpp');
cxx(SRCS_CXX);
cc(SRCS_C);
end(function(){
ld(OBJS,'$(DESTDIR)/libyongplatforminputcontextplugin.so');
});
}

if(target=="clean"){
rmdir(DIRS,'*');
} else if(!target || target=="all"){
build(undefined,undefined,DIRS);
} else if(target=='l32'){

} else if(target=='l64'){

} else {
run(target);
}
27楼#
发布于:2022-07-14 13:16
dgod:var SRCS_CXX=['qyongplatforminputcontext.cpp','main.cpp'];
var SRCS_C=['lcall.c'];
var OBJS=[
        'qyongplatformi...
回到原帖
好的,得等后面有时间才能试了,现在一直编译不过,后面再找找原因。
28楼#
发布于:2022-07-14 15:06
另外,之前提到的有字不上屏的问题,我还需要时间再确认一下看看。
29楼#
发布于:2022-07-14 22:26
laolang_cool:另外,之前提到的有字不上屏的问题,我还需要时间再确认一下看看。回到原帖
目前发现在obsidian里,当鼠标指针在候选框位置上时,较大机率会遇到字不上屏的情况,然后在输入第3个码时候选框就会消失,然后字码也会被消除,得重新输入。
游客

返回顶部