简单的多词典取词翻译软件 [QT]

我之前偶尔会用 GoldenDict 聚合多个搜索结果的功能,因为同一个词看一下不同词典的解释会认知地更好一些。不过 Goldendict 的实现是上古时代用 iframe 拼接然后放在一个页面,有些网页显示不出来。

于是今天终于花了一点时间撮出来了一个,功能很简陋,不过够用。

  • 复制文本到剪切板,就会自动显示查询结果
  • 或者直接输入到上方的输入条
  • 下面的几个按钮可以切换词典。

我自己用了一会,还蛮舒服的。

On KDE:

On MacOS:

安装

Git clone 这个仓库 shenlebantongying / KopperDict · GitLab 然后按照如下步骤编译,然后运行 build 目录下面的 webdict 或者 Mac 上的 webdict.app就可以了

依赖是 qt6 & qt6-webengine 和对应的 -dev(el)

cd ./kopperdict
mkdir build && cd ./build
cmake ../
cmake --build .

自定义字典

如果需要有道,直接往 ~/.kopperdict 文件里加入这行

Youdao https://www.youdao.com/result?lang=en&word=
4赞

:tired_face:
最近很需要一个搜词的软件,查找到了这篇帖子,但是我发现我安装不上。
已经安装了对应的 qt6 & qt6-webengine 和 dev

1赞

有个国人 fork 的 goldendict 应该很好用,他每天都有提交代码,现在质量应该很好了。 可以直接添加网络词典,直接打开网页的那种。@xiaoshayu

我也不确定为什么会 Could NOT find Threads。 旧版的系统? Leap?

把那个 CMakeOutput.log 贴一下

The system is: Linux - 5.14.21-150400.22-default - x86_64
Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source “CMakeCXXCompilerId.cpp” produced “a.out”

The CXX compiler identification is GNU, found in “/home/shark/kopperdict/build/CMakeFiles/3.20.4/CompilerIdCXX/a.out”

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/shark/kopperdict/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_740b9/fast && /usr/bin/gmake -f CMakeFiles/cmTC_740b9.dir/build.make CMakeFiles/cmTC_740b9.dir/build
gmake[1]: Entering directory ‘/home/shark/kopperdict/build/CMakeFiles/CMakeTmp’
Building CXX object CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++ -v -o CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: …/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion=‘SUSE Linux’ --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.5.0 (SUSE Linux)
COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o’ ‘-c’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib64/gcc/x86_64-suse-linux/7/cc1plus -quiet -v -D_GNU_SOURCE /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/cc1R7C8J.s
GNU C++14 (SUSE Linux) version 7.5.0 (x86_64-suse-linux)
compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
#include “…” search starts here:
#include <…> search starts here:
/usr/include/c++/7
/usr/include/c++/7/x86_64-suse-linux
/usr/include/c++/7/backward
/usr/lib64/gcc/x86_64-suse-linux/7/include
/usr/local/include
/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed
/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/include
/usr/include
End of search list.
GNU C++14 (SUSE Linux) version 7.5.0 (x86_64-suse-linux)
compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 6382e6e95418232cdb97da9bdda1863e
COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o’ ‘-c’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/as -v --64 -o CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o /tmp/cc1R7C8J.s
GNU assembler version 2.37 (x86_64-suse-linux) using BFD version (GNU Binutils; SUSE Linux Enterprise 15) 2.37.20211103-150100.7.29
COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/
LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/:/lib/…/lib64/:/usr/lib/…/lib64/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o’ ‘-c’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’
Linking CXX executable cmTC_740b9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_740b9.dir/link.txt --verbose=1
/usr/bin/c++ -v CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_740b9
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: …/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion=‘SUSE Linux’ --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.5.0 (SUSE Linux)
COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/
LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/:/lib/…/lib64/:/usr/lib/…/lib64/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘cmTC_740b9’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib64/gcc/x86_64-suse-linux/7/collect2 -plugin /usr/lib64/gcc/x86_64-suse-linux/7/liblto_plugin.so -plugin-opt=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccbYuCd4.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_740b9 /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/7/crtbegin.o -L/usr/lib64/gcc/x86_64-suse-linux/7 -L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64 -L/lib/…/lib64 -L/usr/lib/…/lib64 -L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/… CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib64/gcc/x86_64-suse-linux/7/crtend.o /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crtn.o
COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘cmTC_740b9’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’
gmake[1]: Leaving directory ‘/home/shark/kopperdict/build/CMakeFiles/CMakeTmp’

Parsed CXX implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/include/c++/7]
add: [/usr/include/c++/7/x86_64-suse-linux]
add: [/usr/include/c++/7/backward]
add: [/usr/lib64/gcc/x86_64-suse-linux/7/include]
add: [/usr/local/include]
add: [/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed]
add: [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/include]
add: [/usr/include]
end of search list found
collapse include dir [/usr/include/c++/7] ==> [/usr/include/c++/7]
collapse include dir [/usr/include/c++/7/x86_64-suse-linux] ==> [/usr/include/c++/7/x86_64-suse-linux]
collapse include dir [/usr/include/c++/7/backward] ==> [/usr/include/c++/7/backward]
collapse include dir [/usr/lib64/gcc/x86_64-suse-linux/7/include] ==> [/usr/lib64/gcc/x86_64-suse-linux/7/include]
collapse include dir [/usr/local/include] ==> [/usr/local/include]
collapse include dir [/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed] ==> [/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed]
collapse include dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/include] ==> [/usr/x86_64-suse-linux/include]
collapse include dir [/usr/include] ==> [/usr/include]
implicit include dirs: [/usr/include/c++/7;/usr/include/c++/7/x86_64-suse-linux;/usr/include/c++/7/backward;/usr/lib64/gcc/x86_64-suse-linux/7/include;/usr/local/include;/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed;/usr/x86_64-suse-linux/include;/usr/include]

Parsed CXX implicit link information from above output:
link line regex: [^( |.[/])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/]±)?ld|collect2)[^/]*( |$)]
ignore line: [Change Dir: /home/shark/kopperdict/build/CMakeFiles/CMakeTmp]
ignore line:
ignore line: [Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_740b9/fast && /usr/bin/gmake -f CMakeFiles/cmTC_740b9.dir/build.make CMakeFiles/cmTC_740b9.dir/build]
ignore line: [gmake[1]: Entering directory ‘/home/shark/kopperdict/build/CMakeFiles/CMakeTmp’]
ignore line: [Building CXX object CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o]
ignore line: [/usr/bin/c++ -v -o CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/c++]
ignore line: [OFFLOAD_TARGET_NAMES=hsa:nvptx-none]
ignore line: [Target: x86_64-suse-linux]
ignore line: [Configured with: …/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c c++ objc fortran obj-c++ ada go --enable-offload-targets=hsa nvptx-none --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion=‘SUSE Linux’ --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux]
ignore line: [Thread model: posix]
ignore line: [gcc version 7.5.0 (SUSE Linux) ]
ignore line: [COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o’ ‘-c’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [ /usr/lib64/gcc/x86_64-suse-linux/7/cc1plus -quiet -v -D_GNU_SOURCE /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/cc1R7C8J.s]
ignore line: [GNU C++14 (SUSE Linux) version 7.5.0 (x86_64-suse-linux)]
ignore line: [ compiled by GNU C version 7.5.0 GMP version 6.1.2 MPFR version 4.0.2-p6 MPC version 1.1.0 isl version isl-0.18-GMP]
ignore line:
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [#include “…” search starts here:]
ignore line: [#include <…> search starts here:]
ignore line: [ /usr/include/c++/7]
ignore line: [ /usr/include/c++/7/x86_64-suse-linux]
ignore line: [ /usr/include/c++/7/backward]
ignore line: [ /usr/lib64/gcc/x86_64-suse-linux/7/include]
ignore line: [ /usr/local/include]
ignore line: [ /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed]
ignore line: [ /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/include]
ignore line: [ /usr/include]
ignore line: [End of search list.]
ignore line: [GNU C++14 (SUSE Linux) version 7.5.0 (x86_64-suse-linux)]
ignore line: [ compiled by GNU C version 7.5.0 GMP version 6.1.2 MPFR version 4.0.2-p6 MPC version 1.1.0 isl version isl-0.18-GMP]
ignore line:
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 6382e6e95418232cdb97da9bdda1863e]
ignore line: [COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o’ ‘-c’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [ /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/as -v --64 -o CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o /tmp/cc1R7C8J.s]
ignore line: [GNU assembler version 2.37 (x86_64-suse-linux) using BFD version (GNU Binutils]
ignore line: [ SUSE Linux Enterprise 15) 2.37.20211103-150100.7.29]
ignore line: [COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/]
ignore line: [LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/:/lib/…/lib64/:/usr/lib/…/lib64/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o’ ‘-c’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [Linking CXX executable cmTC_740b9]
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_740b9.dir/link.txt --verbose=1]
ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_740b9 ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/c++]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper]
ignore line: [OFFLOAD_TARGET_NAMES=hsa:nvptx-none]
ignore line: [Target: x86_64-suse-linux]
ignore line: [Configured with: …/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c c++ objc fortran obj-c++ ada go --enable-offload-targets=hsa nvptx-none --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion=‘SUSE Linux’ --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux]
ignore line: [Thread model: posix]
ignore line: [gcc version 7.5.0 (SUSE Linux) ]
ignore line: [COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/]
ignore line: [LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/7/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/:/lib/…/lib64/:/usr/lib/…/lib64/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS=‘-v’ ‘-o’ ‘cmTC_740b9’ ‘-shared-libgcc’ ‘-mtune=generic’ ‘-march=x86-64’]
link line: [ /usr/lib64/gcc/x86_64-suse-linux/7/collect2 -plugin /usr/lib64/gcc/x86_64-suse-linux/7/liblto_plugin.so -plugin-opt=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccbYuCd4.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_740b9 /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/7/crtbegin.o -L/usr/lib64/gcc/x86_64-suse-linux/7 -L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64 -L/lib/…/lib64 -L/usr/lib/…/lib64 -L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/… CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib64/gcc/x86_64-suse-linux/7/crtend.o /usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crtn.o]
arg [/usr/lib64/gcc/x86_64-suse-linux/7/collect2] ==> ignore
arg [-plugin] ==> ignore
arg [/usr/lib64/gcc/x86_64-suse-linux/7/liblto_plugin.so] ==> ignore
arg [-plugin-opt=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/ccbYuCd4.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [–build-id] ==> ignore
arg [–eh-frame-hdr] ==> ignore
arg [-m] ==> ignore
arg [elf_x86_64] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
arg [-o] ==> ignore
arg [cmTC_740b9] ==> ignore
arg [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crt1.o] ==> obj [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crt1.o]
arg [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crti.o] ==> obj [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crti.o]
arg [/usr/lib64/gcc/x86_64-suse-linux/7/crtbegin.o] ==> obj [/usr/lib64/gcc/x86_64-suse-linux/7/crtbegin.o]
arg [-L/usr/lib64/gcc/x86_64-suse-linux/7] ==> dir [/usr/lib64/gcc/x86_64-suse-linux/7]
arg [-L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64] ==> dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64]
arg [-L/lib/…/lib64] ==> dir [/lib/…/lib64]
arg [-L/usr/lib/…/lib64] ==> dir [/usr/lib/…/lib64]
arg [-L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib] ==> dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib]
arg [-L/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…] ==> dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…]
arg [CMakeFiles/cmTC_740b9.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
arg [-lstdc++] ==> lib [stdc++]
arg [-lm] ==> lib [m]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lc] ==> lib [c]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [/usr/lib64/gcc/x86_64-suse-linux/7/crtend.o] ==> obj [/usr/lib64/gcc/x86_64-suse-linux/7/crtend.o]
arg [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crtn.o] ==> obj [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crtn.o]
collapse obj [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crt1.o] ==> [/usr/lib64/crt1.o]
collapse obj [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crti.o] ==> [/usr/lib64/crti.o]
collapse obj [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64/crtn.o] ==> [/usr/lib64/crtn.o]
collapse library dir [/usr/lib64/gcc/x86_64-suse-linux/7] ==> [/usr/lib64/gcc/x86_64-suse-linux/7]
collapse library dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/lib64] ==> [/usr/lib64]
collapse library dir [/lib/…/lib64] ==> [/lib64]
collapse library dir [/usr/lib/…/lib64] ==> [/usr/lib64]
collapse library dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/lib] ==> [/usr/x86_64-suse-linux/lib]
collapse library dir [/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…] ==> [/usr/lib64]
implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
implicit objs: [/usr/lib64/crt1.o;/usr/lib64/crti.o;/usr/lib64/gcc/x86_64-suse-linux/7/crtbegin.o;/usr/lib64/gcc/x86_64-suse-linux/7/crtend.o;/usr/lib64/crtn.o]
implicit dirs: [/usr/lib64/gcc/x86_64-suse-linux/7;/usr/lib64;/lib64;/usr/x86_64-suse-linux/lib]
implicit fwks:

用的是系统是 Leap 5.14.21-150400.22-default

研究了一下,报错主要原因应该是 Leap 15.4 的 gcc 默认版本是 7。即使这个问题解决了,后面还有一串。用仓库里面的 gcc10 就可以了

 sudo zypper in gcc10 gcc10-c++

然后指定一下 CXX

export CC=/usr/bin/gcc-10
export CXX=/usr/bin/g++-10

mkdir build && cd ./build
cmake ../
cmake --build .


另外我把功能改了一下,坐上角对号是来指定是否从剪切板自动查询(划词翻译)

我打算加一个历史记录的功能。如果你有什么需要的功能可以提一下。@xiaoshayu

好的 感谢 :laughing:

加了一个简单的历史记录功能

感谢开发,已经用上了 :melting_face:,我不太了解编译,请问如果软件有更新的话,我是需要 Git 更新下来然后执行最后两步骤cmake ../cmake --build .

1赞

对。

在 1.0 以前我还没有打包的打算。现在的计划是在 KDE kf6(?kde 的主题适配 qt6 的时候)之前继续打磨。 现在估计对外观要求高一点的用户,点开看一眼就删了 :)

一个小问题,就是国人写的东东,readme 不是中文而是英文,背后的想法,是国际化么?还是说,这是软件开发的固有模式,写英文注释?

我没搞过开发,不太懂这个。

1赞

等 1.0 的时候再写一个中文的 readme,不急。

代码里面注释的话,中文的 Qt 文档本来就是不够用的,去看代码的人肯定懂足够多的英语去看技术文档。

另外我觉得 非中文的用户 或者 英文用户去查其它语言 也能用的上。