HKUST-Aerial-Robotics / VINS-Mobile

Monocular Visual-Inertial State Estimator on Mobile Phones

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some problems about usage of boost.

GuoYongyu opened this issue · comments

I have installed boost with command brew install boost, but the path of boost is /opt/homebrew/lib and /opt/homebrew/include. Now, when I start compiling, there's a error says "'boost/dynamic_bitset.hpp' file not found" in file TemplatedVocabulary, but actually this .hpp file is in /opt/homebrew/include/boost. My Mac is MacBook pro 2021 with CPU M1 Pro. Hope anyone help me? Thanks!
(我用brew install boost安装了boost库,但是安装目录是在/opt/homebrew下,这是brew程序自动选择的安装路径。然后我编译报错没找到boost/dynamic_bitset.hpp文件,但是实际上这个hpp是找得到的,现在我束手无策,网上也没搜到靠谱能用的教程,求教github里的诸位大佬)

Not sure if you solved the problem already. Here is the solution for my case. I'm with Macbook air M2 2022.

I followed the instruction of "brew install boost" and the default path of boost is
/opt/homebrew/Cellar/boost/1.80.0/include
/opt/homebrew/Cellar/boost/1.80.0/lib

I manually add the path to the Build Settings. Select the project -->Build Settings --> Select All --> Find the Search Paths
Put /opt/homebrew/Cellar/boost/1.80.0/include in the Header Search Paths
Put /opt/homebrew/Cellar/boost/1.80.0/lib in the Library Search Paths

Then build and run.