当前位置:网站首页>When a project with cmake is cross compiled to a link, an error cannot be found So dynamic library file

When a project with cmake is cross compiled to a link, an error cannot be found So dynamic library file

2022-06-26 15:42:00 its loopholes appeared one after another

1: open CmakeLists.txt

 Find this function add_executable(ZegoExpressExample ${SRC_LIST})

2: Add the function of link library after it

target_link_libraries(ZegoExpressExample asound2 v4l)
 This function must be in the first step  add_executable()  after 
 Specific function usage reference cmake manual 
原网站

版权声明
本文为[its loopholes appeared one after another]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261515117836.html