9crk

9crk

1个粉丝

34

问答

0

专栏

6

资料

9crk  发布于  2015-01-13 14:55:20
采纳率 0%
34个问答
12106

分享个arm-hisiv100nptl-linux-gcc编译的opencv2.4.4,方便做实验

本帖最后由 9crk 于 2015-1-13 15:00 编辑

链接: [url=http://pan.baidu.com/s/1ntytAaP]http://pan.baidu.com/s/1ntytAaP[/url] 密码: ou0a

可直接拷贝库到开发板,或nfs软链接到开发板作实验。
附上之前的app编译人脸检测例程:
[url=www.ebaina.com/bbs/forum.php?mod=viewthread&tid=4858&extra=page%3D1]www.ebaina.com/bbs/forum.php?mod=viewthread&tid=4858&extra=page%3D1[/url]

.
|-- bin
|   |-- opencv_createsamples
|   |-- opencv_haartraining
|   |-- opencv_performance
|   `-- opencv_traincascade
|-- include
|   |-- opencv
|   |   |-- cvaux.h
|   |   |-- cvaux.hpp
|   |   |-- cv.h
|   |   |-- cv.hpp
|   |   |-- cvwimage.h
|   |   |-- cxcore.h
|   |   |-- cxcore.hpp
|   |   |-- cxeigen.hpp
|   |   |-- cxmisc.h
|   |   |-- highgui.h
|   |   `-- ml.h
|   `-- opencv2
|       |-- calib3d
|       |   `-- calib3d.hpp
|       |-- contrib
|       |   |-- contrib.hpp
|       |   |-- detection_based_tracker.hpp
|       |   |-- hybridtracker.hpp
|       |   |-- openfabmap.hpp
|       |   `-- retina.hpp
|       |-- core
|       |   |-- core_c.h
|       |   |-- core.hpp
|       |   |-- cuda_devptrs.hpp
|       |   |-- devmem2d.hpp
|       |   |-- eigen.hpp
|       |   |-- gpumat.hpp
|       |   |-- internal.hpp
|       |   |-- mat.hpp
|       |   |-- opengl_interop_deprecated.hpp
|       |   |-- opengl_interop.hpp
|       |   |-- operations.hpp
|       |   |-- types_c.h
|       |   |-- version.hpp
|       |   `-- wimage.hpp
|       |-- features2d
|       |   `-- features2d.hpp
|       |-- flann
|       |   |-- all_indices.h
|       |   |-- allocator.h
|       |   |-- any.h
|       |   |-- autotuned_index.h
|       |   |-- composite_index.h
|       |   |-- config.h
|       |   |-- defines.h
|       |   |-- dist.h
|       |   |-- dummy.h
|       |   |-- dynamic_bitset.h
|       |   |-- flann_base.hpp
|       |   |-- flann.hpp
|       |   |-- general.h
|       |   |-- ground_truth.h
|       |   |-- hdf5.h
|       |   |-- heap.h
|       |   |-- hierarchical_clustering_index.h
|       |   |-- index_testing.h
|       |   |-- kdtree_index.h
|       |   |-- kdtree_single_index.h
|       |   |-- kmeans_index.h
|       |   |-- linear_index.h
|       |   |-- logger.h
|       |   |-- lsh_index.h
|       |   |-- lsh_table.h
|       |   |-- matrix.h
|       |   |-- miniflann.hpp
|       |   |-- nn_index.h
|       |   |-- object_factory.h
|       |   |-- params.h
|       |   |-- random.h
|       |   |-- result_set.h
|       |   |-- sampling.h
|       |   |-- saving.h
|       |   |-- simplex_downhill.h
|       |   `-- timer.h
|       |-- gpu
|       |   |-- device
|       |   |   |-- block.hpp
|       |   |   |-- border_interpolate.hpp
|       |   |   |-- color.hpp
|       |   |   |-- common.hpp
|       |   |   |-- datamov_utils.hpp
|       |   |   |-- detail
|       |   |   |   |-- color_detail.hpp
|       |   |   |   |-- reduce.hpp
|       |   |   |   |-- reduce_key_val.hpp
|       |   |   |   |-- transform_detail.hpp
|       |   |   |   |-- type_traits_detail.hpp
|       |   |   |   `-- vec_distance_detail.hpp
|       |   |   |-- dynamic_smem.hpp
|       |   |   |-- emulation.hpp
|       |   |   |-- filters.hpp
|       |   |   |-- funcattrib.hpp
|       |   |   |-- functional.hpp
|       |   |   |-- limits.hpp
|       |   |   |-- reduce.hpp
|       |   |   |-- saturate_cast.hpp
|       |   |   |-- scan.hpp
|       |   |   |-- static_check.hpp
|       |   |   |-- transform.hpp
|       |   |   |-- type_traits.hpp
|       |   |   |-- utility.hpp
|       |   |   |-- vec_distance.hpp
|       |   |   |-- vec_math.hpp
|       |   |   |-- vec_traits.hpp
|       |   |   |-- warp.hpp
|       |   |   |-- warp_reduce.hpp
|       |   |   `-- warp_shuffle.hpp
|       |   |-- devmem2d.hpp
|       |   |-- gpu.hpp
|       |   |-- gpumat.hpp
|       |   `-- stream_accessor.hpp
|       |-- highgui
|       |   |-- cap_ios.h
|       |   |-- highgui_c.h
|       |   `-- highgui.hpp
|       |-- imgproc
|       |   |-- imgproc_c.h
|       |   |-- imgproc.hpp
|       |   `-- types_c.h
|       |-- legacy
|       |   |-- blobtrack.hpp
|       |   |-- compat.hpp
|       |   |-- legacy.hpp
|       |   `-- streams.hpp
|       |-- ml
|       |   `-- ml.hpp
|       |-- nonfree
|       |   |-- features2d.hpp
|       |   `-- nonfree.hpp
|       |-- objdetect
|       |   `-- objdetect.hpp
|       |-- opencv.hpp
|       |-- opencv_modules.hpp
|       |-- photo
|       |   |-- photo_c.h
|       |   `-- photo.hpp
|       |-- stitching
|       |   |-- detail
|       |   |   |-- autocalib.hpp
|       |   |   |-- blenders.hpp
|       |   |   |-- camera.hpp
|       |   |   |-- exposure_compensate.hpp
|       |   |   |-- matchers.hpp
|       |   |   |-- motion_estimators.hpp
|       |   |   |-- seam_finders.hpp
|       |   |   |-- util.hpp
|       |   |   |-- util_inl.hpp
|       |   |   |-- warpers.hpp
|       |   |   `-- warpers_inl.hpp
|       |   |-- stitcher.hpp
|       |   `-- warpers.hpp
|       |-- ts
|       |   |-- ts_gtest.h
|       |   |-- ts.hpp
|       |   `-- ts_perf.hpp
|       |-- video
|       |   |-- background_segm.hpp
|       |   |-- tracking.hpp
|       |   `-- video.hpp
|       `-- videostab
|           |-- deblurring.hpp
|           |-- fast_marching.hpp
|           |-- fast_marching_inl.hpp
|           |-- frame_source.hpp
|           |-- global_motion.hpp
|           |-- inpainting.hpp
|           |-- log.hpp
|           |-- motion_stabilizing.hpp
|           |-- optical_flow.hpp
|           |-- stabilizer.hpp
|           `-- videostab.hpp
|-- lib
|   |-- libopencv_calib3d.so
|   |-- libopencv_contrib.so
|   |-- libopencv_core.so
|   |-- libopencv_features2d.so
|   |-- libopencv_flann.so
|   |-- libopencv_gpu.so
|   |-- libopencv_highgui.so
|   |-- libopencv_imgproc.so
|   |-- libopencv_legacy.so
|   |-- libopencv_ml.so
|   |-- libopencv_nonfree.so
|   |-- libopencv_objdetect.so
|   |-- libopencv_photo.so
|   |-- libopencv_stitching.so
|   |-- libopencv_ts.so
|   |-- libopencv_video.so
|   `-- libopencv_videostab.so
`-- share
    `-- OpenCV
        |-- haarcascades
        |   |-- haarcascade_eye_tree_eyeglasses.xml
        |   |-- haarcascade_eye.xml
        |   |-- haarcascade_frontalface_alt2.xml
        |   |-- haarcascade_frontalface_alt_tree.xml
        |   |-- haarcascade_frontalface_alt.xml
        |   |-- haarcascade_frontalface_default.xml
        |   |-- haarcascade_fullbody.xml
        |   |-- haarcascade_lefteye_2splits.xml
        |   |-- haarcascade_lowerbody.xml
        |   |-- haarcascade_mcs_eyepair_big.xml
        |   |-- haarcascade_mcs_eyepair_small.xml
        |   |-- haarcascade_mcs_leftear.xml
        |   |-- haarcascade_mcs_lefteye.xml
        |   |-- haarcascade_mcs_mouth.xml
        |   |-- haarcascade_mcs_nose.xml
        |   |-- haarcascade_mcs_rightear.xml
        |   |-- haarcascade_mcs_righteye.xml
        |   |-- haarcascade_mcs_upperbody.xml
        |   |-- haarcascade_profileface.xml
        |   |-- haarcascade_righteye_2splits.xml
        |   |-- haarcascade_smile.xml
        |   `-- haarcascade_upperbody.xml
        `-- lbpcascades
            |-- lbpcascade_frontalface.xml
            |-- lbpcascade_profileface.xml
            `-- lbpcascade_silverware.xml
我来回答
回答18个
时间排序
认可量排序

david

33个粉丝

368

问答

253

专栏

229

资料

david 2015-01-14 09:49:24
认可0
提取效果怎么样?速度

tomjava

0个粉丝

0

问答

0

专栏

0

资料

tomjava 2015-01-15 10:39:32
认可0
你的文件有8M,能放到海思的摄像头里吗

9crk

1个粉丝

34

问答

0

专栏

6

资料

9crk 2015-01-15 17:55:14
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=11357&ptid=5071]tomjava 发表于 2015-1-15 10:39[/url]
你的文件有8M,能放到海思的摄像头里吗[/quote]

nfs挂载,建立软连接过去,或者修改LDLIBRARY_PATH环境变量,都可以。

zhuifengsn

0个粉丝

7

问答

0

专栏

0

资料

zhuifengsn 2015-01-29 21:36:45
认可0
海思3515的编译器和这个是一样么?能否帮忙编译一个可供给海思3515可以的OPENCV库?

duhao

0个粉丝

8

问答

0

专栏

0

资料

duhao 2015-06-03 10:02:35
认可0
你好,我下载了你提供的2.4.4编译好的库,放在opt/opencv-2.4.4下,然后拷贝lib和include到编译器的目录,我用3515c的板,
cp include/* /usr/local/arm2/arm-hisiv100-linux/arm-hisiv100-linux-uclibcgnueabi/include/ -r
cp lib/* /usr/local/arm2/arm-hisiv100-linux/arm-hisiv100-linux-uclibcgnueabi/lib
然后编译:
arm-hisiv100-linux-uclibcgnueabi-g++ face.cpp -I /opt/opencv-2.2.4/Hi3518e/include/opencv -lopencv_highgui -lopencv_core -lopencv_imgproc -lpthread -lrt   -lopencv_objdetect -o face
出现很多错误:

duhao

0个粉丝

8

问答

0

专栏

0

资料

duhao 2015-06-03 10:03:56
认可0
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_png.cpp.obj): In function `cv::PngDecoder::readDataFromBuf(void*, unsigned char*, unsigned int)':
grfmt_png.cpp:(.text._ZN2cv10PngDecoder15readDataFromBufEPvPhj+0x14): undefined reference to `png_get_io_ptr'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder15readDataFromBufEPvPhj+0x12c): undefined reference to `png_error'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_png.cpp.obj): In function `cv::PngDecoder::close()':
grfmt_png.cpp:(.text._ZN2cv10PngDecoder5closeEv+0x4c): undefined reference to `png_destroy_read_struct'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_png.cpp.obj): In function `cv::PngDecoder::readHeader()':
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x34): undefined reference to `png_create_read_struct'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x44): undefined reference to `png_create_info_struct'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x50): undefined reference to `png_create_info_struct'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0xa8): undefined reference to `png_set_longjmp_fn'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x118): undefined reference to `png_init_io'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x170): undefined reference to `png_read_info'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x1a0): undefined reference to `png_get_IHDR'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x358): undefined reference to `png_set_read_fn'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x3a0): undefined reference to `png_get_tRNS'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_png.cpp.obj): In function `cv::PngEncoder::write(cv::Mat const&, std::vector > const&)':
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x38): undefined reference to `png_create_write_struct'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xb0): undefined reference to `png_create_info_struct'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xd8): undefined reference to `png_set_longjmp_fn'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x118): undefined reference to `png_set_write_fn'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x3c0): undefined reference to `png_destroy_write_struct'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x420): undefined reference to `png_set_compression_level'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x430): undefined reference to `png_set_compression_strategy'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4a4): undefined reference to `png_set_IHDR'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4b4): undefined reference to `png_write_info'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4c8): undefined reference to `png_set_packing'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4d4): undefined reference to `png_set_bgr'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4f8): undefined reference to `png_set_swap'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x66c): undefined reference to `png_write_image'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x67c): undefined reference to `png_write_end'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x804): undefined reference to `png_init_io'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x81c): undefined reference to `png_set_filter'
grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x82c): undefined reference to `png_set_compression_level'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_png.cpp.obj): In function `cv::PngEncoder::writeDataToBuf(void*, unsigned char*, unsigned int)':
grfmt_png.cpp:(.text._ZN2cv10PngEncoder14writeDataToBufEPvPhj+0x24): undefined reference to `png_get_io_ptr'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_png.cpp.obj): In function `cv::PngDecoder::readData(cv::Mat&)':
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x140): undefined reference to `png_set_longjmp_fn'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x208): undefined reference to `png_set_gray_to_rgb'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x210): undefined reference to `png_set_interlace_handling'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x21c): undefined reference to `png_read_update_info'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x2ec): undefined reference to `png_read_image'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x2f8): undefined reference to `png_read_end'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x320): undefined reference to `png_set_rgb_to_gray'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x32c): undefined reference to `png_set_bgr'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x338): undefined reference to `png_set_strip_alpha'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x344): undefined reference to `png_set_swap'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x358): undefined reference to `png_set_expand_gray_1_2_4_to_8'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x364): undefined reference to `png_set_strip_16'
grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x378): undefined reference to `png_set_palette_to_rgb'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj): In function `cv::JpegEncoder::write(cv::Mat const&, std::vector > const&)':
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xcc): undefined reference to `jpeg_CreateCompress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xd8): undefined reference to `jpeg_std_error'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x340): undefined reference to `jpeg_set_defaults'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x354): undefined reference to `jpeg_set_quality'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x364): undefined reference to `jpeg_start_compress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x474): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4b0): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x4e0): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x518): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x544): undefined reference to `jpeg_write_scanlines'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj):grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x570): more undefined references to `jpeg_write_scanlines' follow
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj): In function `cv::JpegEncoder::write(cv::Mat const&, std::vector > const&)':
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x5bc): undefined reference to `jpeg_finish_compress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x5cc): undefined reference to `jpeg_destroy_compress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x6ec): undefined reference to `jpeg_stdio_dest'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x77c): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x7f0): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x858): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x8c8): undefined reference to `jpeg_write_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x92c): undefined reference to `jpeg_write_scanlines'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj):grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x990): more undefined references to `jpeg_write_scanlines' follow
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj): In function `cv::JpegDecoder::close()':
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder5closeEv+0x18): undefined reference to `jpeg_destroy_decompress'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj): In function `cv::JpegDecoder::readHeader()':
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x34): undefined reference to `jpeg_std_error'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x80): undefined reference to `jpeg_CreateDecompress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x17c): undefined reference to `jpeg_stdio_src'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x198): undefined reference to `jpeg_read_header'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x290): undefined reference to `jpeg_resync_to_restart'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj): In function `T.419':
grfmt_jpeg.cpp:(.text.T.419+0x358): undefined reference to `jpeg_alloc_huff_table'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_highgui.a(grfmt_jpeg.cpp.obj): In function `cv::JpegDecoder::readData(cv::Mat&)':
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE+0xe0): undefined reference to `jpeg_start_decompress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE+0x1ac): undefined reference to `jpeg_read_scanlines'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE+0x1dc): undefined reference to `jpeg_finish_decompress'
grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE+0x298): undefined reference to `jpeg_read_scanlines'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `icvGets(CvFileStorage*, char*, int)':
persistence.cpp:(.text._ZL7icvGetsP13CvFileStoragePci+0x224): undefined reference to `gzgets'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `T.3367':
persistence.cpp:(.text.T.3367+0x1b8): undefined reference to `gzeof'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `icvXMLSkipSpaces(CvFileStorage*, char*, int)':
persistence.cpp:(.text._ZL16icvXMLSkipSpacesP13CvFileStoragePci+0x2b8): undefined reference to `gzeof'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `icvYMLSkipSpaces(CvFileStorage*, char*, int, int)':
persistence.cpp:(.text._ZL16icvYMLSkipSpacesP13CvFileStoragePcii+0x1cc): undefined reference to `gzeof'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `icvPuts(CvFileStorage*, char const*)':
persistence.cpp:(.text._ZL7icvPutsP13CvFileStoragePKc+0x1dc): undefined reference to `gzputs'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `icvClose(CvFileStorage*, std::basic_string, std::allocator >*)':
persistence.cpp:(.text._ZL8icvCloseP13CvFileStoragePSs+0x2b0): undefined reference to `gzclose'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(persistence.cpp.obj): In function `cvOpenFileStorage':
persistence.cpp:(.text.cvOpenFileStorage+0x614): undefined reference to `gzrewind'
persistence.cpp:(.text.cvOpenFileStorage+0x7d0): undefined reference to `gzclose'
persistence.cpp:(.text.cvOpenFileStorage+0x87c): undefined reference to `gzopen'
persistence.cpp:(.text.cvOpenFileStorage+0xe20): undefined reference to `gzclose'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::trylock()':
system.cpp:(.text._ZN2cv5Mutex7trylockEv+0x8): undefined reference to `pthread_spin_trylock'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::unlock()':
system.cpp:(.text._ZN2cv5Mutex6unlockEv+0x4): undefined reference to `pthread_spin_unlock'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::lock()':
system.cpp:(.text._ZN2cv5Mutex4lockEv+0x4): undefined reference to `pthread_spin_lock'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::operator=(cv::Mutex const&)':
system.cpp:(.text._ZN2cv5MutexaSERKS0_+0x54): undefined reference to `pthread_spin_destroy'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::~Mutex()':
system.cpp:(.text._ZN2cv5MutexD1Ev+0x40): undefined reference to `pthread_spin_destroy'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::~Mutex()':
system.cpp:(.text._ZN2cv5MutexD2Ev+0x40): undefined reference to `pthread_spin_destroy'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::Mutex()':
system.cpp:(.text._ZN2cv5MutexC1Ev+0x18): undefined reference to `pthread_spin_init'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_core.a(system.cpp.obj): In function `cv::Mutex::Mutex()':
system.cpp:(.text._ZN2cv5MutexC2Ev+0x18): undefined reference to `pthread_spin_init'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/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+0x4a4): undefined reference to `cv::getOptimalDFTSize(int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x4c4): undefined reference to `cv::getOptimalDFTSize(int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0xbd8): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x15e8): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x167c): 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+0x16b8): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/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+0x538): undefined reference to `cvCvtColor'
haar.cpp:(.text._Z25cvHaarDetectObjectsForROCPKvP23CvHaarClassifierCascadeP12CvMemStorageRSt6vectorIiSaIiEERS5_IdSaIdEEdii6CvSizeSC_b+0x15e4): undefined reference to `cvCanny'
/usr/local/arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/lib/libopencv_objdetect.a(cascadedetect.cpp.obj): In function `cv::CascadeClassifier::detectMultiScale(cv::Mat const&, std::vector, std::allocator > >&, std::vector >&, std::vector >&, double, int, int, cv::Size_, cv::Size_, bool)':
cascadedetect.cpp:(.text._ZN2cv17CascadeClassifier16detectMultiScaleERKNS_3MatERSt6vectorINS_5Rect_IiEESaIS6_EERS4_IiSaIiEERS4_IdSaIdEEdiiNS_5Size_IiEESH_b+0x2b4): undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
collect2: ld returned 1 exit status

duhao

0个粉丝

8

问答

0

专栏

0

资料

duhao 2015-06-03 10:04:48
认可0
看了下,主要是四个cpp里面不行,想问问这是什么原因啊

9crk

1个粉丝

34

问答

0

专栏

6

资料

9crk 2015-06-03 16:29:01
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=16765&ptid=5071]duhao 发表于 2015-6-3 10:04[/url]
看了下,主要是四个cpp里面不行,想问问这是什么原因啊[/quote]

。。。今天你QQ问了我是不:L configure时取消相应的功能即可。

duhao

0个粉丝

8

问答

0

专栏

0

资料

duhao 2015-06-04 11:44:33
认可0
:lol不过昨天把系统给弄坏了,又在重装,不过我有下载你这个里面的已结弄好的opencv2.4.4,放到ubuntu里面,然后进行你前一个帖子里面 海思移植opencv+人脸检测+速度优化这个里面,得到include和lib后的编译,就是你说的这个-的后续----得到了include和lib目录就可以编写程序了,来试试最常用的人脸检测吧,没有要用cmake-gui这个,也就不需要configure了,后面还是出现上面的问题,应该是要先交叉编译libjpeg,libpng等等相关的库。

duhao

0个粉丝

8

问答

0

专栏

0

资料

duhao 2015-06-05 20:07:41
认可0
大侠你好,我opencv交叉编译后生成了lib和include,然后在ubuntu编译你提供的那个程序,这次问题变少了
终端输入:arm-hisiv100-linux-uclibcgnueabi-g++ face.cpp -I/home/study/hi-opencv-2.4.10/output/include/opencv -lopencv_highgui -lopencv_imgproc -lopencv_core -lpthread -lrt  -ljpeg -lpng -lxml2 -lstdc++ -lopencv_objdetect -o face


结果:/usr/local/hi-arm/arm-hisiv100-linux/bin/..b/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabibbxml2.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
/usr/local/hi-arm/arm-hisiv100-linux/bin/..b/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabibbopencv_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+0x538): undefined reference to `cvCvtColor'
haar.cpp:(.text._Z25cvHaarDetectObjectsForROCPKvP23CvHaarClassifierCascadeP12CvMemStorageRSt6vectorIiSaIiEERS5_IdSaIdEEdii6CvSizeSC_b+0x16e8): undefined reference to `cvCanny'
/usr/local/hi-arm/arm-hisiv100-linux/bin/..b/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabibbopencv_objdetect.a(cascadedetect.cpp.obj): In function `cv::CascadeClassifier::detectMultiScale(cv::Mat const&, std::vector, std::allocator > >&, std::vector >&, std::vector >&, double, int, int, cv::Size_, cv::Size_, bool)':
cascadedetect.cpp:(.text._ZN2cv17CascadeClassifier16detectMultiScaleERKNS_3MatERSt6vectorINS_5Rect_IiEESaIS6_EERS4_IiSaIiEERS4_IdSaIdEEdiiNS_5Size_IiEESH_b+0x2b4): undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
collect2: ld returned 1 exit status

说的几个函数undefined reference。。。
这几个函数我之后应该是会用到的,不知道怎么解决,大侠能给个思路么?万分感激啊!!!

9crk

1个粉丝

34

问答

0

专栏

6

资料

9crk 2015-06-08 09:12:31
认可0
如果是明明有的函数却说未定义,有可能你编译opencv用的是glibc编译器环境,而现在编译app用的是uclibc的编译器环境。

9crk

1个粉丝

34

问答

0

专栏

6

资料

9crk 2015-06-08 09:13:40
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=16863&ptid=5071]duhao 发表于 2015-6-5 20:07[/url]
大侠你好,我opencv交叉编译后生成了lib和include,然后在ubuntu编译你提供的那个程序,这次问题变少了
终 ...[/quote]

如果是明明有的函数却说未定义, 有可能你编译opencv用的是glibc编译器环境,而现在编译app用的是uclibc的编译器环境。

duhao

0个粉丝

8

问答

0

专栏

0

资料

duhao 2015-06-08 11:57:21
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=16891&ptid=5071]9crk 发表于 2015-6-8 09:13[/url]
如果是明明有的函数却说未定义, 有可能你编译opencv用的是glibc编译器环境,而现在编译app用的是uclibc ...[/quote]

我没有弄glibc的编译器环境的,应该不是这个原因。另外我生成的文件里面没有bin文件,lib里面也都是.a文件。。。实在不懂为什么不行啊。。。

youxia0420

0个粉丝

0

问答

0

专栏

0

资料

youxia0420 2015-06-25 11:22:33
认可0
感谢分享!另外,请教下要如何生成opencv的静态库?3518内存太小,把动态库加进来的话,空间肯定不够用,所以想利用opencv的静态库直接生成可执行文件的应用。

lzts

0个粉丝

0

问答

0

专栏

0

资料

lzts 2018-03-12 17:19:07
认可0
学习下,谢谢分享

qn1533613062

1个粉丝

36

问答

0

专栏

4

资料

qn1533613062 2018-08-07 14:50:17
认可0
谢谢楼主分享

menie

0个粉丝

4

问答

0

专栏

0

资料

menie 2018-08-11 13:38:29
认可0
感谢分享,学习学习:P

Designer1

0个粉丝

1

问答

0

专栏

0

资料

Designer1 2020-04-01 17:04:58
认可0
感谢分享~
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区