zoukankan      html  css  js  c++  java
  • 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.
  • 相关阅读:
    Oracle 函数
    ecplise 修改编码
    mysql json 使用 类型 查询 函数
    java 子类强转父类 父类强转子类
    java UUID
    Java Number & Math 类
    java String类
    apache StringUtils 工具类
    apache ArrayUtils 工具类
    java Properties
  • 原文地址:https://www.cnblogs.com/Shinered/p/10114092.html
Copyright © 2011-2022 走看看