xfangfang / wiliwili

第三方B站客户端,目前可以运行在PC全平台、PSVita、PS4 、Xbox 和 Nintendo Switch上
https://xfangfang.github.io/wiliwili
GNU General Public License v3.0
3.18k stars 146 forks source link

cmake: add option to use shared library when possible #145

Closed mochaaP closed 1 year ago

mochaaP commented 1 year ago

rt

also https://github.com/xfangfang/borealis/pull/11

mochaaP commented 1 year ago

仍然是 static 的依賴:

數據來源 https://pkgs.org 手動收集,可能不準確。

mochaaP commented 1 year ago

cc @xfangfang review req

mochaaP commented 1 year ago

Should be fixed with https://github.com/xfangfang/borealis/pull/12

xfangfang commented 1 year ago

@mochaaP borealis 已经合并啦

mochaaP commented 1 year ago

已更改

mochaaP commented 1 year ago

macOS 的卡住了,一直在嘗試找 libopencc.1.1.dylib

[ 44%] Linking CXX shared library libopencc.dylib
[ 44%] Built target libopencc

但是 dylib 並沒有 sover

xfangfang commented 1 year ago

@mochaaP 刚刚构建了一下 dev分支最新的代码,是没有问题的。那么说明还是这个pr的内容中导致的问题,我简单看了一眼没有发现哪里有问题。 这两天在发烧,眼睛涨的比较疼,先休息会,你再找找看吧~

mochaaP commented 1 year ago

那我再看看,辛苦了~

mochaaP commented 1 year ago

Pirated Account 🏴‍☠️, [12:58 AM] 其實最終還是 cmake 的問題

Pirated Account 🏴‍☠️, [12:58 AM] 有個模塊

Pirated Account 🏴‍☠️, [12:58 AM] 沒有 unset BUILD_SHARED_LIBS edit: cmake_policy(SET CMP0077 NEW)

Pirated Account 🏴‍☠️, [12:59 AM] 導致了非預期行為

已修復。

mochaaP commented 1 year ago

https://github.com/mcha-forks/wiliwili/actions/runs/5250068731

check suite 已過 :wink:

xfangfang commented 1 year ago

@mochaaP 非常感谢!