GoldenDict-ng(Linux/macOS/Windows)基于Qt5.15.2/Qt6.X版本

Dependency里说需要: C++17 compiler
是不是通过下面这个参数,这个参数在哪里设置的?
(对编译不太熟悉,希望不要介意哈)

-std=c++17

报错了后,生成了一个GoldenDict.app 不过好像运行不起来 :joy:

linking GoldenDict.app/Contents/MacOS/GoldenDict
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libogg.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libswresample.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libvorbis.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libvorbisfile.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/liblzo2.dylib) was built for newer macOS version (11.0) than being linked (10.14)

我对macos也不熟悉,看其他人吧 :smile:

把错误发出来,上面的看起来是warning

qmake 没有报错
make的时候有很多warning,最后报错:

linking GoldenDict.app/Contents/MacOS/GoldenDict
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libvorbisfile.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libogg.dylib) was built for newer macOS version (11.0) than being linked (10.14)
dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libvorbis.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/liblzo2.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libavutil.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libhunspell.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libzstd.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libswresample.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libavformat.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libtiff.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/liblzma.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libeb.dylib) was built for newer macOS version (12.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libopencc.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libavcodec.dylib) was built for newer macOS version (11.0) than being linked (10.14)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libvorbisfile.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libogg.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libvorbis.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libavutil.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libhunspell.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libeb.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libopencc.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libavformat.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libswresample.dylib) was built for newer macOS version (12.0) than being linked (11.0)
dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libzstd.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/Users/xxx/general_purpose_development/goldendict/maclibs/lib/libavcodec.dylib) was built for newer macOS version (12.0) than being linked (11.0)
mkdir -p GoldenDict.app/Contents/Frameworks && cp -nR /Users/xxx/general_purpose_development/goldendict/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ && mkdir -p GoldenDict.app/Contents/MacOS/locale && cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/ && mkdir -p GoldenDict.app/Contents/MacOS/help && cp -R /Users/xxx/general_purpose_development/goldendict/help/*.qch GoldenDict.app/Contents/MacOS/help/ && mkdir -p GoldenDict.app/Contents/MacOS/opencc && cp -R /Users/xxx/general_purpose_development/goldendict/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
make: *** [GoldenDict.app/Contents/MacOS/GoldenDict] Error 1

你执行的命令也发一下
可以参考 里面的 build 和 package 的步骤
goldendict/macos.yml at staged · xiaoyifang/goldendict · GitHub

第一次是通过qt online installer安装的qt,配置路径:

export PATH="$PATH:/Users/xxx/Qt/6.4.3/macos/bin"

然后依次执行:

qmake CONFIG+=release CONFIG+=zim_support   CONFIG+=chinese_conversion_support QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"

make

报了上面的错。

第二次通过brew安装了qt:

brew install qt

然后(下面编译选项与前面比,去掉了 x86_64 ):

qmake CONFIG+=release CONFIG+=zim_support   CONFIG+=chinese_conversion_support QMAKE_APPLE_DEVICE_ARCHS="arm64"

make

第二次的报错信息(这次没有warning警告了,但有error):

linking GoldenDict.app/Contents/MacOS/GoldenDict
mkdir -p GoldenDict.app/Contents/Frameworks && cp -nR /Users/xxx/general_purpose_development/goldendict/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ && mkdir -p GoldenDict.app/Contents/MacOS/locale && cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/ && mkdir -p GoldenDict.app/Contents/MacOS/help && cp -R /Users/xxx/general_purpose_development/goldendict/help/*.qch GoldenDict.app/Contents/MacOS/help/ && mkdir -p GoldenDict.app/Contents/MacOS/opencc && cp -R /Users/xxx/general_purpose_development/goldendict/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
make: *** [GoldenDict.app/Contents/MacOS/GoldenDict] Error 1

Git仓库下下来后,执行 git branch:

* staged

是编译这个分支对吗

对的。 QMAKE_APPLE_DEVICE_ARCHS 这个参数去掉看看。

这次没有错误了,不过有很多警告
log.txt (16.0 KB)

另外生成的 GoldenDict.app 还是无法运行(make install 没有执行,应该不需要这步?)

更新:

第二次执行 上面的qmake和make命令,又报错:

linking GoldenDict.app/Contents/MacOS/GoldenDict
mkdir -p GoldenDict.app/Contents/Frameworks && cp -nR /Users/xxx/general_purpose_development/goldendict/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ && mkdir -p GoldenDict.app/Contents/MacOS/locale && cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/ && mkdir -p GoldenDict.app/Contents/MacOS/help && cp -R /Users/xxx/general_purpose_development/goldendict/help/*.qch GoldenDict.app/Contents/MacOS/help/ && mkdir -p GoldenDict.app/Contents/MacOS/opencc && cp -R /Users/xxx/general_purpose_development/goldendict/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
make: *** [GoldenDict.app/Contents/MacOS/GoldenDict] Error 1

等其他人吧,我对macos完全不熟悉

1 个赞

fix: when in dark reader mode, the transparent image has a very bad d… by xiaoyifang · Pull Request #428 · xiaoyifang/goldendict-ng · GitHub 先简单处理了。

1 个赞

快捷键啊,ctr ↑ ↓

兄弟,这都多久以前的反馈了。。。 现在这些问题早解决了

webengine 字和图片比较模糊,怎么办?

有些人不知道快捷键是什么,后来人看看吧

chatgpt 说是编译器或者连接器导致的:

1 个赞

有些坛友反馈了好久的一个问题。 渐进加载。
多个词典的时候,按顺序,完成1个词典,加载一个。

见最新版本

视频版goldendict好久没更新了

1 个赞

最近的windows版总有以下情况:输入字词查询时,浏览器便会跳出无数个网页(都是自己加的在线网站),导致死机。请问是哪里的原因呢?

详细一点,什么版本
什么网页,怎么弹出的,
不像是软件的功能,你是不是有加载什么脚本/特别的词典 之类的。

1 个赞