在移植opencv的时候,程序中有类似有以下这中代码的时候,编译会出现
>> Compilation failure
src/cvaux/subdir_rules.mk:296: recipe for target 'src/cvaux/cvoneway.obj' failed
>> ../src/cvaux/cvoneway.cpp, line 850: INTERNAL ERROR: Decomposition error
This may be a serious problem. Please contact customer support with a
description of this problem and a sample of the source files that caused this
INTERNAL ERROR message to appear.
Cannot continue compilation – ABORTING!
代码:
cvWriteInt( fs, "nactive_vars", (int)cvSum(active_var_mask).val[0] ); CV_ASSERT((int)cvSum(counts).val[0] == nsamples); CV_CALL( cvConvertScale( &expo, _probs, 1./cvSum( &expo ).val[0] )); doubleSum=cvSum(cvGetSubRect(pImgFG,&mat,r)).val[0]/255.0; total = cvRound(cvSum(npoints).val[0]); aver = cvSum(cvGetSubRect(pFG,&mat,r)).val[0] / area; vol = cvSum(&mat).val[0]; sum = cvSum( &mat ).val[0]; average_diag += cvTrace( U[j] ).val[0]; float sum = (float)cvSum(patch_8u).val[0];
Shine:
试试升级一下compiler版本。http://software-dl.ti.com/codegen/non-esd/downloads/download.htm#C6000
hua liu liu:
回复 Shine:
我把编译器的版本升级成C6000 Code Generation Tools v8.2.1,还是出现同样的错误。
Thomas Yang1:
回复 hua liu liu:
您是用的OepnCV哪个软件包,有没有看下release note里面对软件环境的要求,和您的软件环境是否匹配?
Zhengpeng Su @ XDU:
你好:
我遇到了和你一样的问题,请问你是如何解决的呢?