Dependency里说需要: C++17 compiler
是不是通过下面这个参数,这个参数在哪里设置的?
(对编译不太熟悉,希望不要介意哈)
-std=c++17
Dependency里说需要: C++17 compiler
是不是通过下面这个参数,这个参数在哪里设置的?
(对编译不太熟悉,希望不要介意哈)
-std=c++17
报错了后,生成了一个GoldenDict.app 不过好像运行不起来
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也不熟悉,看其他人吧
把错误发出来,上面的看起来是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完全不熟悉
快捷键啊,ctr ↑ ↓
兄弟,这都多久以前的反馈了。。。 现在这些问题早解决了
webengine 字和图片比较模糊,怎么办?
有些人不知道快捷键是什么,后来人看看吧
视频版goldendict好久没更新了
最近的windows版总有以下情况:输入字词查询时,浏览器便会跳出无数个网页(都是自己加的在线网站),导致死机。请问是哪里的原因呢?
详细一点,什么版本
什么网页,怎么弹出的,
不像是软件的功能,你是不是有加载什么脚本/特别的词典 之类的。