opencv 3.0 defect

  1. darknet c opencv files( highgui/highgui_c.h ), but include c++ header file with template. But opencv 2.x don’t.
    I use gcc -H src/image.h to look for depent header files

  2. imread/imwrite and friends were moved from highgui to a new imgcodecs module in opencv 3.0

include “opencv2/imgcodecs.hpp”
and link

-lopencv_imgcodecs
btw, include path should be:

-I/usr/local/include
not
-I/usr/local/include/opencv

. ./src/convolutional_layer.h
.. ./src/cuda.h
... /usr/local/cuda/bin//../targets/x86_64-linux/include/curand.h
... /usr/local/cuda/bin//../targets/x86_64-linux/include/cublas_v2.h
.... /usr/local/cuda/bin//../targets/x86_64-linux/include/cublas_api.h
..... /usr/local/cuda/bin//../targets/x86_64-linux/include/cuComplex.h
.. ./src/params.h
.. ./src/image.h
... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/include/float.h
... /usr/local/include/opencv2/highgui/highgui_c.h
.... /usr/local/include/opencv2/core/core_c.h
..... /usr/local/include/opencv2/core/types_c.h
...... /usr/local/include/opencv2/core/cvdef.h
....... /usr/local/include/opencv2/hal/defs.h
........ /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/include-fixed/limits.h
........ /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/include/stdint.h
......... /usr/include/stdint.h
.......... /usr/include/x86_64-linux-gnu/bits/wchar.h
.......... /usr/include/x86_64-linux-gnu/bits/wordsize.h
........ /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/cmath
........ /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/algorithm
......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/utility
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/stl_relops.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/stl_pair.h
........... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/move.h
............ /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/concept_check.h
......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/stl_algobase.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/functexcept.h
........... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/exception_defines.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/ext/numeric_traits.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/stl_iterator_base_types.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/stl_iterator_base_funcs.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/stl_iterator.h
.......... /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/debug/debug.h
阅读更多
文章标签: compiler gcc opencv
上一篇./pdffigures/pdffigures: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:version `GLIBCXX_3.4.20' not found
下一篇linux 命令总结
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭