美文网首页
解决new open source的cmake issue

解决new open source的cmake issue

作者: Chao已被使用 | 来源:发表于2020-06-02 16:50 被阅读0次

    在cmake的时候报错

    1.在cmakelists里面加上cmake_policy(SET CMP0026 OLD)

    /home/lora/gr-lora_sdr/lib/frame_sync_impl.cc:406:49: error: call of overloaded ‘abs(uint32_t)’ is ambiguous
                             if (abs(bin_idx-net_id_2)>1){ //wrong network identifier
    

    解决方法:

    gedit /home/lora/gr-lora_sdr/lib/frame_sync_impl.cc
    

    然后把文件中的abs替换成fabs或者labs,cd到源文件夹,删除build,重新安装。

    相关文章

      网友评论

          本文标题:解决new open source的cmake issue

          本文链接:https://www.haomeiwen.com/subject/spzuzhtx.html