Skip to content

在WSL2(Ubuntu22.04)中,无法编译http服务funasr-http-server, boost库与asio库定义冲突 #2541

Open
@nianjiuhuiyi

Description

@nianjiuhuiyi

🐛 Bug

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd: cmake -DCMAKE_BUILD_TYPE=release .. -DONNXRUNTIME_DIR=~/software/onnxruntime-linux-x64-1.14.0 -DFFMPEG_DIR=~/software/ffmpeg- n5.1.6-9-gdcdfd7fb62-linux64-gpl-shared-5.1 && make -j8
  2. See error:

Image

Environment

  • OS (e.g., Linux): WSL2, ubuntu22.04
  • FunASR Version (e.g., 1.0.0): main
  • Any other relevant information:
    • gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
    • onnxruntime-linux-x64-1.14.0
    • ffmpeg-n5.1.6-9-gdcdfd7fb62-linux64-gpl-shared-5.1
    • 其它依赖是Cmake直接下载的,boost安装是apt install libboost-dev libboost-system-dev

Additional context

最开始的funasr源码版本是可以编译成功的,但在运行时接到POST请求会崩溃,就是这个issue#1943,根据此issue中,去更新了代码,用到了boost,主要是添加了connection.hpp的第23行,然后编译时就出现大量的“conflicts with a previous declaration”。看了确实是在boost库、asio库都有很多同名定义,但他们是去各自的命名空间啊,但make无法编译成功,自己确实无法解决,希望能得到一些指导。
此外:自己在rk3588板子上进行编译,也是一样的情况。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions