ubuntu装opencv error: ‘NppiGraphcutState‘ has not been declared
2017-05-27 13:05
465 查看
错误:/home/usrname/opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState‘ has not been declared
typedef NppStatus (*init_func_t)(NppiSize oSize, NppiGraphcutState** ppStat
^
/home/usrname/opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:135:18: error: ‘NppiGraphcutState‘ does not name a type
operator NppiGraphcutState*()
^
/home/usrname/opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:141:9: error: ‘NppiGraphcutState‘ does not name a type
NppiGraphcutState* pState;
.......
解决方案:
进入opencv-3.1.0/modules/cudalegacy/src/目录,修改graphcuts.cpp文件,将:
#include "precomp.hpp"
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)
改为
#include "precomp.hpp"
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) || (CUDART_VERSION >= 8000)
然后make编译就可以了
转载 http://dongcoder.com/detail-287862.html
typedef NppStatus (*init_func_t)(NppiSize oSize, NppiGraphcutState** ppStat
^
/home/usrname/opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:135:18: error: ‘NppiGraphcutState‘ does not name a type
operator NppiGraphcutState*()
^
/home/usrname/opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:141:9: error: ‘NppiGraphcutState‘ does not name a type
NppiGraphcutState* pState;
.......
解决方案:
进入opencv-3.1.0/modules/cudalegacy/src/目录,修改graphcuts.cpp文件,将:
#include "precomp.hpp"
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)
改为
#include "precomp.hpp"
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) || (CUDART_VERSION >= 8000)
然后make编译就可以了
转载 http://dongcoder.com/detail-287862.html
相关文章推荐
- 安装opencv出现:cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState’ has not been declared
- 编译opencv2.4.11时出现错误:error: ‘NppiGraphcutState’ has not been declared
- 安装opencv出现:cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState’ has not been declared
- cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState’ has not been declared
- 【COCOS2DX-ANDROID-游戏开发之十九】android编译之ctime:66: error: ‘::clock_t’ has not been declared
- windows平台theano在安装gcc后出现error: '::hypot' has not been declared
- Qt编译 error: ‘std::tr1’ has not been declared
- QT,error: '::ioctl' has not been declared,调用ioctl
- error: ‘::WSAGetLastError’ has not been declared
- cmath:1157:11: error: '::hypot' has not been declared
- error: ‘std::memset’ has not been declared问题的解放办法
- 库存会计期间关闭出错,提示未达结束的日期, Error: Period end date has not been reached
- Thrift编译错误('::malloc' has not been declared)
- Restore SQL Server 2005 error : "The tail of the log for the database "TEST1" has not been backed up."
- [RK_2014_0905]ubuntu中,wireshark启动提示:Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:46: dofile has been disabled
- Cannot build gcc-4.4.3: fenv_t has not been declared
- cocos eclipse TouchEventType' has not been declared
- android学习心得:error:Warning: Activity not started, its current task has been brought to the front
- opencv 2.3交叉编译时出现dist.h:63:68: error: 'fabsl' was not declared in this scope
- Error:The system has not been taken off maintenance mode completely.