KikoPlayProject / KikoPlay

KikoPlay - NOT ONLY A Full-Featured Danmu Player 不仅仅是全功能弹幕播放器
https://kikoplay.fun
GNU General Public License v3.0
1.63k stars 96 forks source link

Add support for cmake build #75

Closed Chaojimengnan closed 1 year ago

Chaojimengnan commented 1 year ago

Add support for cmake build as an alternative to QT creator, and use vcpkg to provide Lua and QT and zlib dependencies (optional)

Protostars commented 1 year ago

cmake编译都在哪些平台测试过呀,还有lua目前已经集成了,vcpkg里能不依赖lua吗

Chaojimengnan commented 1 year ago

好的,我会修改一下,现在只能在Windows上编译

Chaojimengnan commented 1 year ago

@Protostars HiHi, 我在linux编译有点小问题,因为vcpkg在linux中默认使用静态链接第三方库,然后我发现globalobjects.cpp中有个QFont的全局变量.

问题就是:如果是静态链接QT,并且有QFont的全局变量,那么运行时会出现Segmentation fault,请看这里,我想将这个QFont变量iconfont改为指针,可以吗?我测试过,这可以解决问题.

Protostars commented 1 year ago

我觉得可以

Chaojimengnan commented 1 year ago

@Protostars Hi, 我已经改好了, https://github.com/Chaojimengnan/KikoPlay/commit/44930de371eb304d8a8d82f03db6f8941c9a8f60

目前可以在Ubuntu和Windows上编译测试过了,其他linux系统应该也没问题,但是macos没办法测试了,你看下可以吗