Mac OS下用Qt Creator/Xcode打开CMake工程

刚打开会报错:
error: Qt Creator needs a CMake Tool set up to build. Configure a CMake Tool in the kit options.
原因:http://doc.qt.io/qtcreator/creator-project-cmake.html
就是说你根本没往Qt中添加Cmake可执行文件的路径

1,添加cmake路径:
在命令行输入

which cmake

会输出cmake的路径,添加到Qt的build and run的cmake里面
2,把这个cmake添加到kit
上面的cmake会自动添加到kit里
但是还是报错:
The kit Desktop Qt 5.8.0 clang 64bit has configuration issues which might be the root cause for this problem.
如果用命令行执行cmake会提示找不到OpenCV,先解决这个问题。
参考http://www.luohanjie.com/2016-11-14/compilation-of-opencv-under-mac-counld-not-find-module-findopencv-cmake-wrong-solution.html
**执行

brew ln opencv3 --force

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值