问题描述
我有一个自编译opencv的问题...
XUbuntu 13.10 x64
gcc version 4.8.1
简单的例子就是工作。
我的问题是,我想在xubuntu中使用nonfree(SURF)包。
现在我想编译这些示例
并获得此错误(主题)
构建目标:SURF_Example
调用:GCC C ++链接器
有任何帮助吗?
缺少lib features2d。尝试
g ++ -L / usr / local / lib -oSURF_Example./example.o -lopencv_nonfree -lopencv_objdetect -lopencv_features2d -lopencv_imgproc -lopencv_highgui -lopencv_core
i've got a Problem with a self compiled opencv...
XUbuntu 13.10 x64gcc version 4.8.1
Everthing looks fine. Simple examples will be work.My problem is, i want to use the nonfree(SURF) package in xubuntu.
Now i want to compile these examplehttp://docs.opencv.org/doc/tutorials/features2d/feature_detection/feature_detection.htmland get this error (Topic)
Building target: SURF_ExampleInvoking: GCC C++ Linker
libopencv_features2d.so.2.4: error adding symbols: DSO missing from command line
Any help?
Probably, problem is in incorrect linking order and missing lib features2d. Try
g++ -L/usr/local/lib -o "SURF_Example" ./example.o -lopencv_nonfree -lopencv_objdetect -lopencv_features2d -lopencv_imgproc -lopencv_highgui -lopencv_core
这篇关于openCV 2.4.7错误添加符号:命令行中缺少DSO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!