使用MTL / Boost库的苹果终端C ++ [英] Using MTL/Boost Library Mac Terminal C++

查看:291
本文介绍了使用MTL / Boost库的苹果终端C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要为precise,我试图运行这个优秀的项目: https://github.com / ppwwyyxx /全景

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

我使用的是现代的Mac电脑。

I'm using a modern mac.

问题是,我似乎无法让我的计算机正确包括MTL库。我坚持了无尽的错误:

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

我试过cmake的。我下载都升压和mtl4库。我把它们放在我的在/ usr /本地/包含目录。一切似乎是工作。

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!

推荐答案

尝试修改Makefile中src和添加此就行的 7的Makefile

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

-I/usr/local/include

这篇关于使用MTL / Boost库的苹果终端C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆