Closed ryanaltair closed 1 year ago
请在 windows 构建代码中,自动添加相关dll文件 🙏🙏🙏
请尝试如此做
将 windows/CMakeLists.txt
中,
set(tencent_trtc_cloud_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/lib/txsoundtouch.dll"
PARENT_SCOPE
)
set(tencent_trtc_cloud_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/lib/txffmpeg.dll"
PARENT_SCOPE
)
set(tencent_trtc_cloud_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/lib/liteav.dll"
PARENT_SCOPE
)
上述代码仅重复定义tencent_trtc_cloud_bundled_libraries参数
改为
set(tencent_trtc_cloud_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/lib/txsoundtouch.dll;${CMAKE_CURRENT_SOURCE_DIR}/lib/txffmpeg.dll;${CMAKE_CURRENT_SOURCE_DIR}/lib/liteav.dll"
PARENT_SCOPE
)
请参考
# List of absolute paths to libraries that should be bundled with the plugin
set(<name>_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/../native/lib/windows_x64/mylib_dylib.dll;${CMAKE_CURRENT_SOURCE_DIR}/../native/lib/windows_x64/mylib_dylib_dependency.dll"
PARENT_SCOPE
)
收到,我看看
tencent_trtc_cloud: 2.3.8 已加
【当前现象】:windows编译失败, 【问题时间段】:2019-09-01 16:23~16:55 【机型】:windows11 【之前版本有无此问题】:2.3.0无此问题 【是否必现】:必现, 【复现方法】:clone 本项目,将trtc版本写死为2.3.5,
flutter run -d windows
则编译报错,版本降至2.3.0,则编译正常。 【日志或者描述、截图】: