Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

系统自带boost,不用单独的asio,编译头文件及空间错误 #15

Open
ganggangliu opened this issue Jan 5, 2025 · 2 comments

Comments

@ganggangliu
Copy link

image
使用 系统自带的boost,导致asio::xx找不到,需要换成:boost::asio;
其他的包括其他的aiso组件。
gcc11,wsl的ubuntu,cmake3.21 编译通不过

@ganggangliu
Copy link
Author

ganggangliu commented Jan 5, 2025

其中尝试过
1、set(USE_STANDALONE_ASIO OFF) 直接使用boost的asio.hpp
2、 unzip自带压缩包在目录,出现
image
没有"PROJECT_SOURCE/asio/usr/include"目录,是要压缩包有问题,或者需要自己建个目录然后unzip -C?

@hggq
Copy link
Owner

hggq commented Jan 5, 2025

直接解压目录下的asio.zip包
1 unzip asio.zip
2 mkdir build
3 cd build
4 cmake ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants