• Linux下使用bgslibrary的OpenCv库


    编译过程:

    g++ -std=c++11 2.cpp $LD_LIBRARY_PATH/libbgslibrary_core.so `pkg-config --cflags --libs opencv` 

     错误:

     undefined reference to `bgslibrary::algorithms::FrameDifference::FrameDifference() 

    解决: 

    If you are compiling in Linux OS, then (after install the library):
    
    Assuming that the libbgslibrary_core.so file is located in /usr/local/lib
    
    ======================================================
    
    To solve this temporarily (only in this bash session):
    $ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    $ export LD_LIBRARY_PATH
    
    ======================================================
    
    To solve this permanent:
    $ sudo echo 'export LD_LIBRARY_PATH=/usr/local/lib' >> ~/.bashrc
    
    ======================================================
    
    And to compile your program include this flag: $LD_LIBRARY_PATH/libbgslibrary_core.so
    
    It should be like: $ g++ -std=c++14 Demo.cpp $LD_LIBRARY_PATH/libbgslibrary_core.so `pkg-config --cflags --libs opencv`
    The Safest Way to Get what you Want is to Try and Deserve What you Want.
  • 相关阅读:
    2.18周四笔记
    Tkinter 控件详细介绍
    python基础: day4作业计算器
    Python的functools.reduce用法
    正则表达式技术深入
    递归
    生成器generator
    绕过验证码
    导入JSONPathExtractorExample.jmx文件报错,导不进去
    jmeter一些插件下载网址
  • 原文地址:https://www.cnblogs.com/Shinered/p/10114092.html
Copyright © 2020-2023  润新知