机器人车技术开发分享网
qt opencv Makefile或者 .pro 库调用顺序和规则
  • 首页 > 视频图像处理
  • 作者:小v
  • 2020年10月14日 11:10 星期三
  • 浏览:20
  • 字号:
  • 评论:0

  • HEADERS += mainwindow.h \
     cameraworker.h
    HEADERS += /usr/local/include \
     /usr/local/include/opencv \
     /usr/local/include/opencv2 \
     /usr/local/include/raspicam
    FORMS += mainwindow.ui
    INCLUDEPATH += /usr/local/include
    INCLUDEPATH += /usr/local/include/opencv
    INCLUDEPATH += /usr/local/include/opencv2
    LIBS += -ldl -lm -lrt
    LIBS +=/usr/local/lib/libopencv_shape.a
    LIBS += /usr/local/lib/libopencv_stitching.a
    LIBS += /usr/local/lib/libopencv_objdetect.a
    LIBS += /usr/local/lib/libopencv_superres.a
    LIBS +=/usr/local/lib/libopencv_videostab.a
    LIBS += /usr/local/lib/libopencv_calib3d.a
    LIBS +=/usr/local/lib/libopencv_features2d.a
    LIBS += /usr/local/lib/libopencv_flann.a
    LIBS += /usr/local/lib/libopencv_highgui.a
    LIBS += /usr/local/lib/libopencv_ml.a
    LIBS += /usr/local/lib/libopencv_photo.a
    LIBS += /usr/local/lib/libopencv_video.a
    LIBS += /usr/local/lib/libopencv_videoio.a
    LIBS +=/usr/local/lib/libopencv_imgcodecs.a
    LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibjpeg.a
    LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibwebp.a
    LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibpng.a
    LIBS += /usr/local/share/OpenCV/3rdparty/lib/liblibtiff.a
    LIBS +=/usr/local/share/OpenCV/3rdparty/lib/liblibjasper.a
    LIBS += /usr/local/share/OpenCV/3rdparty/lib/libIlmImf.a
    LIBS += /usr/local/lib/libopencv_imgproc.a
    LIBS +=/usr/local/lib/libopencv_core.a
    LIBS += /usr/local/share/OpenCV/3rdparty/lib/libzlib.a
    LIBS +=/usr/local/share/OpenCV/3rdparty/lib/libtegra_hal.a


      Makefile :

    CFLAGS += -I./usr/include/opencv
    CFLAGS += -I./usr/inc/opencv/opencv2
    CFLAGS += -I./usr/include  

    LDFLAGS +=  -lopencv_shape  -lopencv_stitching -lopencv_objdetect  -lopencv_superres -lopencv_videostab -lopencv_calib3d   -lopencv_features2d     
    LDFLAGS +=  -lopencv_flann  -lopencv_highgui -lopencv_ml    -lopencv_photo -lopencv_video  -lopencv_videoio    -lopencv_imgcodecs   
    LDFLAGS +=  -llibjpeg -llibwebp -llibpng -llibtiff -llibjasper -lIlmImf       -lopencv_imgproc  -lopencv_core
    LDFLAGS +=  -lzlib  -lrt -lpthread -pthread -lm -ldl 


      您阅读这篇文章共花了:  
     本文无需标签!
    二维码加载中...
    本文作者:小v      文章标题: qt opencv Makefile或者 .pro 库调用顺序和规则
    本文地址:http://blog.cvosrobot.com/?post=545
    版权声明:若无注明,本文皆为“机器人车技术开发分享网”原创,转载请保留文章出处。

    返回顶部| 首页| 手气不错| 捐赠支持| 自定义链接| 自定义链接| 自定义链接| 手机版本|后花园

    Copyright © 2014-2017 机器人车技术开发分享网   京ICP备14059411 Copyright 2014-2019 小v工作室 版权所有 All Rights Reserved

    sitemap