Using MTL/Boost Library Mac Terminal C++

孤街浪徒 提交于 2019-12-02 17:18:02

问题


To be precise, I'm attempting to run this excellent project: https://github.com/ppwwyyxx/panorama

I'm using a modern mac.

The issue is that I can't seem to get my computer to properly include the MTL library. I'm stuck with the endless error of:

$ make
[cc] matrix.cc ...
matrix.cc:5:10: fatal error: 'boost/numeric/mtl/mtl.hpp' file not found
#include <boost/numeric/mtl/mtl.hpp>
         ^
1 error generated.
make: *** [obj/matrix.o] Error 1

I've tried cmake. I've downloaded both the boost and mtl4 libraries. I've put them in my /usr/local/include directory. Nothing seems to be working.

Any advice would be excellent, thank you!


回答1:


Try to modify the Makefile in src and add this on the line 7 of the Makefile:

-I/usr/local/include


来源:https://stackoverflow.com/questions/31793579/using-mtl-boost-library-mac-terminal-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!