wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

linux x64 银河麒麟 编译失败 #49

Closed 1056824847 closed 1 year ago

1056824847 commented 1 year ago

image image 你好,这边在flutter run 的时候一直提示这个错误,是环境问题吗?

wang-bin commented 1 year ago

flutter的问题,估计新版本增加了一些warnings,但是linux上强行让我们使用屎一样的glib,宏展开必然一堆可能用不到的函数,然后我们得再手动关闭这些警告。 https://github.com/wang-bin/fvp/blob/master/linux/CMakeLists.txt#L49 这里加一行

target_compile_options(${PLUGIN_NAME} PRIVATE -Wno-unused-function)
1056824847 commented 1 year ago

target_compile_options(${PLUGIN_NAME} PRIVATE -Wno-unused-function) flutter 3.16 添加这一行后可以编译成功,但是无法播放视频 目前已降低flutter 版本号为 3.10.3 ,并在cmake 添加这一行后成功运行 谢谢指导

wang-bin commented 1 year ago

3.16请试下fvp最新的版本

1056824847 commented 1 year ago

已测试可以播放,谢谢