arthur_liu

arthur_liu

0个粉丝

2

问答

0

专栏

0

资料

arthur_liu  发布于  2017-08-25 13:30:31
采纳率 0%
2个问答
4263

3518上增加opencv库,编译时出现这个错误,有人遇到过么?

 
arm-hisiv300-linux-g++ humanbody_detect.cpp -I/home/share/opencv-3.2.0/install_hi3518/include -I/home/share/Hi3518E_SDK_V1.0.4.0/mpp/include  -L/home/share/opencv-3.2.0/install_hi3518/lib -L/home/share/opencv-3.2.0/build_hi3518/3rdparty/lib -L/home/share/Hi3518E_SDK_V1.0.4.0/mpp/lib -lopencv_core -lopencv_imgproc  -lopencv_highgui -lopencv_ml -lopencv_objdetect -lopencv_ml -lopencv_photo -lmpi -lupvqe -ldnvqe -lVoiceEngine -lpthread -lrt -ldl -o humanbody_detect
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(hog.cpp.obj): In function `cv::HOGConfInvoker::operator()(cv::Range const&) const':
hog.cpp:(.text._ZNK2cv14HOGConfInvokerclERKNS_5RangeE[_ZNK2cv14HOGConfInvokerclERKNS_5RangeE]+0x31c): undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(hog.cpp.obj): In function `cv::HOGDescriptor::computeGradient(cv::Mat const&, cv::Mat&, cv::Mat&, cv::Size_, cv::Size_) const':
hog.cpp:(.text._ZNK2cv13HOGDescriptor15computeGradientERKNS_3MatERS1_S4_NS_5Size_IiEES6_+0x9f4): undefined reference to `cv::cartToPolar(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, bool)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(hog.cpp.obj): In function `cv::HOGInvoker::operator()(cv::Range const&) const':
hog.cpp:(.text._ZNK2cv10HOGInvokerclERKNS_5RangeE[_ZNK2cv10HOGInvokerclERKNS_5RangeE]+0x32c): undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(hog.cpp.obj): In function `cv::HOGDescriptor::detectMultiScale(cv::_InputArray const&, std::vector, std::allocator > >&, std::vector >&, double, cv::Size_, cv::Size_, double, double, bool) const':
hog.cpp:(.text._ZNK2cv13HOGDescriptor16detectMultiScaleERKNS_11_InputArrayERSt6vectorINS_5Rect_IiEESaIS6_EERS4_IdSaIdEEdNS_5Size_IiEESE_ddb+0x9b4): undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `icvGets(CvFileStorage*, char*, int)':
persistence.cpp:(.text._ZL7icvGetsP13CvFileStoragePci+0xf0): undefined reference to `gzgets'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `icvXMLSkipSpaces(CvFileStorage*, char*, int)':
persistence.cpp:(.text._ZL16icvXMLSkipSpacesP13CvFileStoragePci+0x2bc): undefined reference to `gzeof'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `icvYMLSkipSpaces(CvFileStorage*, char*, int, int) [clone .constprop.218]':
persistence.cpp:(.text._ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constprop.218+0x1dc): undefined reference to `gzeof'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `icvPuts(CvFileStorage*, char const*)':
persistence.cpp:(.text._ZL7icvPutsP13CvFileStoragePKc+0x1e0): undefined reference to `gzputs'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `cv::FileStorage::releaseAndGetString()':
persistence.cpp:(.text._ZN2cv11FileStorage19releaseAndGetStringEv+0x1f4): undefined reference to `gzclose'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `cvReleaseFileStorage':
persistence.cpp:(.text.cvReleaseFileStorage+0x1d0): undefined reference to `gzclose'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_core.a(persistence.cpp.obj): In function `cvOpenFileStorage':
persistence.cpp:(.text.cvOpenFileStorage+0xbc0): undefined reference to `gzopen'
persistence.cpp:(.text.cvOpenFileStorage+0xbec): undefined reference to `gzrewind'
persistence.cpp:(.text.cvOpenFileStorage+0x1290): undefined reference to `gzclose'
persistence.cpp:(.text.cvOpenFileStorage+0x14cc): undefined reference to `gzgets'
persistence.cpp:(.text.cvOpenFileStorage+0x1b8c): undefined reference to `gzclose'
persistence.cpp:(.text.cvOpenFileStorage+0x1c1c): undefined reference to `gzclose'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj): In function `cv::BaseCascadeClassifier::~BaseCascadeClassifier()':
cascadedetect.cpp:(.text._ZN2cv21BaseCascadeClassifierD2Ev+0x20): undefined reference to `cv::Algorithm::~Algorithm()'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj): In function `cv::CascadeClassifierImpl::CascadeClassifierImpl()':
cascadedetect.cpp:(.text._ZN2cv21CascadeClassifierImplC2Ev+0x10): undefined reference to `cv::Algorithm::Algorithm()'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj): In function `cv::FeatureEvaluator::setImage(cv::_InputArray const&, std::vector > const&)':
cascadedetect.cpp:(.text._ZN2cv16FeatureEvaluator8setImageERKNS_11_InputArrayERKSt6vectorIfSaIfEE+0x2dc): undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
cascadedetect.cpp:(.text._ZN2cv16FeatureEvaluator8setImageERKNS_11_InputArrayERKSt6vectorIfSaIfEE+0x5bc): undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj):(.data.rel.ro+0xe0): undefined reference to `cv::Algorithm::save(cv::String const&) const'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj):(.data.rel.ro+0xe4): undefined reference to `cv::Algorithm::getDefaultName() const'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj):(.data.rel.ro+0x138): undefined reference to `typeinfo for cv::Algorithm'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj):(.data.rel.ro+0x168): undefined reference to `cv::Algorithm::save(cv::String const&) const'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(cascadedetect.cpp.obj):(.data.rel.ro+0x16c): undefined reference to `cv::Algorithm::getDefaultName() const'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_objdetect.a(haar.cpp.obj): In function `cvHaarDetectObjectsForROC(void const*, CvHaarClassifierCascade*, CvMemStorage*, std::vector >&, std::vector >&, double, int, int, CvSize, CvSize, bool)':
haar.cpp:(.text._Z25cvHaarDetectObjectsForROCPKvP23CvHaarClassifierCascadeP12CvMemStorageRSt6vectorIiSaIiEERS5_IdSaIdEEdii6CvSizeSC_b+0x5bc): undefined reference to `cvResize'
haar.cpp:(.text._Z25cvHaarDetectObjectsForROCPKvP23CvHaarClassifierCascadeP12CvMemStorageRSt6vectorIiSaIiEERS5_IdSaIdEEdii6CvSizeSC_b+0x1ae0): undefined reference to `cvCanny'
/tmp/ccVq633J.o: In function `HumanBodyDetectMatSave(cv::Mat, std::string)':
humanbody_detect.cpp:(.text+0x468): undefined reference to `cv::imwrite(cv::String const&, cv::_InputArray const&, std::vector > const&)'
/tmp/ccVq633J.o: In function `thread_hog_svm':
humanbody_detect.cpp:(.text+0x970): undefined reference to `cv::imread(cv::String const&, int)'
/tmp/ccVq633J.o: In function `main':
humanbody_detect.cpp:(.text+0x1d2c): undefined reference to `cvSaveImage'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_imgproc.a(smooth.cpp.obj): In function `cv::bilateralFilter(cv::_InputArray const&, cv::_OutputArray const&, int, double, double, int)':
smooth.cpp:(.text._ZN2cv15bilateralFilterERKNS_11_InputArrayERKNS_12_OutputArrayEiddi+0x9c8): undefined reference to `cv::patchNaNs(cv::_InputOutputArray const&, double)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_imgproc.a(color.cpp.obj): In function `cv::initLabTabs() [clone .part.0]':
color.cpp:(.text._ZN2cvL11initLabTabsEv.part.0+0x6c): undefined reference to `cvCbrt'
color.cpp:(.text._ZN2cvL11initLabTabsEv.part.0+0x334): undefined reference to `cvCbrt'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_imgproc.a(templmatch.cpp.obj): In function `cv::ConvolveBuf::create(cv::Size_, cv::Size_)':
templmatch.cpp:(.text._ZN2cv11ConvolveBuf6createENS_5Size_IiEES2_+0xc0): undefined reference to `cv::getOptimalDFTSize(int)'
templmatch.cpp:(.text._ZN2cv11ConvolveBuf6createENS_5Size_IiEES2_+0xe0): undefined reference to `cv::getOptimalDFTSize(int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_imgproc.a(templmatch.cpp.obj): In function `cv::convolve_dft(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)':
templmatch.cpp:(.text._ZN2cvL12convolve_dftERKNS_11_InputArrayES2_RKNS_12_OutputArrayE+0x4f4): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
templmatch.cpp:(.text._ZN2cvL12convolve_dftERKNS_11_InputArrayES2_RKNS_12_OutputArrayE+0x650): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
templmatch.cpp:(.text._ZN2cvL12convolve_dftERKNS_11_InputArrayES2_RKNS_12_OutputArrayE+0x6a8): undefined reference to `cv::mulSpectrums(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, bool)'
templmatch.cpp:(.text._ZN2cvL12convolve_dftERKNS_11_InputArrayES2_RKNS_12_OutputArrayE+0x6e4): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_imgproc.a(templmatch.cpp.obj): In function `cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_, int, cv::Point_, double, int)':
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x47c): undefined reference to `cv::getOptimalDFTSize(int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x498): undefined reference to `cv::getOptimalDFTSize(int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x73c): undefined reference to `cv::hal::DFT2D::create(int, int, int, int, int, int, int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0xf6c): undefined reference to `cv::hal::DFT2D::create(int, int, int, int, int, int, int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0xfe8): undefined reference to `cv::hal::DFT2D::create(int, int, int, int, int, int, int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x178c): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x1828): undefined reference to `cv::mulSpectrums(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, bool)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x1874): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/home/share/opencv-3.2.0/install_hi3518/lib/libopencv_imgproc.a(templmatch.cpp.obj): In function `cv::matchTemplateMask(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
templmatch.cpp:(.text._ZN2cvL17matchTemplateMaskERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x2134): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
collect2: error: ld returned 1 exit status
我来回答
回答3个
时间排序
认可量排序

arthur_liu

0个粉丝

2

问答

0

专栏

0

资料

arthur_liu 2017-08-25 13:34:30
认可0
因为开发板上空间太小了,所以想用静态库,结果出现这么多问题,不知道是什么原因造成的~

arthur_liu

0个粉丝

2

问答

0

专栏

0

资料

arthur_liu 2017-08-25 13:44:53
认可0
问题解决了,opencv3和opencv2有些函数定义在不同库中,所以要改库,这里要加-lopencv_imgcodecs

tango_zhu

16个粉丝

14

问答

0

专栏

3

资料

tango_zhu 2017-08-26 22:05:06
认可0
在hi3518 中准备怎么玩 opence
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区