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

make ros :/usr/bin/ld: cannot find -lBoost::filesystem #104

Open
uglymie opened this issue Oct 22, 2020 · 7 comments
Open

make ros :/usr/bin/ld: cannot find -lBoost::filesystem #104

uglymie opened this issue Oct 22, 2020 · 7 comments

Comments

@uglymie
Copy link

uglymie commented Oct 22, 2020

make ros时出现以下错误:
/usr/bin/ld: cannot find -lBoost::filesystem
collect2: error: ld returned 1 exit status
不知道是boost库哪里出了问题,求帮忙。

@XnkdChaoLinag
Copy link

请问你这个问题解决了吗??

@uglymie
Copy link
Author

uglymie commented Dec 21, 2020

请问你这个问题解决了吗??
没有解决,后来没有用他们家的相机了。

@XnkdChaoLinag
Copy link

XnkdChaoLinag commented Dec 21, 2020 via email

@25u62010
Copy link

25u62010 commented Jan 2, 2022

CMakeLists里加上这两句:
find_package(Boost REQUIRED)
find_package(Boost COMPONENTS filesystem thread REQUIRED)

@ChenXinXuTUSC
Copy link

CMakeLists里加上这两句: find_package(Boost REQUIRED) find_package(Boost COMPONENTS filesystem thread REQUIRED)

yes, it actually worked!

@Z-Jeff
Copy link

Z-Jeff commented Jan 19, 2022

我也遇到了这个问题。
我的电脑系统是Ubuntu20.04,非虚拟机。
尝试加上:
find_package(Boost REQUIRED)
find_package(Boost COMPONENTS filesystem thread REQUIRED)
也没解决这个问题。
请问有其他解决办法吗?

@Z-Jeff
Copy link

Z-Jeff commented Jan 19, 2022

我搞清楚了,是在“MYNT-EYE-S-SDK/wrappers/ros/src/mynt_eye_ros_wrapper/CMakeLists.txt”中添加这两行:
find_package(Boost REQUIRED)
find_package(Boost COMPONENTS filesystem thread REQUIRED)
问题就解决了。
之前修改的是“MYNT-EYE-S-SDK/CMakeLists.txt”,无法解决问题。

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

5 participants