zoukankan      html  css  js  c++  java
  • ceres g2o 安装

    9、ceres 安装
    git clone https://github.com/ceres-solver/ceres-solver.git
    安装依赖:
    # CMake
    sudo apt-get install cmake
    # google-glog + gflags
    sudo apt-get install libgoogle-glog-dev
    # BLAS & LAPACK
    sudo apt-get install libatlas-base-dev
    # Eigen3
    sudo apt-get install libeigen3-dev
    # SuiteSparse and CXSparse (optional)
    # - If you want to build Ceres as a *static* library (the default)
    #   you can use the SuiteSparse package in the main Ubuntu package
    #   repository:
    sudo apt-get install libsuitesparse-dev
    # - However, if you want to build Ceres as a *shared* library, you must   //如果编译动态库时  需要安装 ppa
    #   add the following PPA:
    sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687
    sudo apt-get update
    sudo apt-get install libsuitesparse-dev
    编译:
    Cd ceres-solver
    Mkidr build 
    Cd build
    cmake ..
    make -j3
        make test
    # Optionally install Ceres, it can also be exported using CMake which
    # allows Ceres to be used without requiring installation, see the documentation
    # for the EXPORT_BUILD_DIR option for more information. //不一定必须安装才能使用,
    sudo make install
    10、g2o安装 git clone https://github.com/RainerKuemmerle/g2o.git 安装依赖: Sudo apt-get install cmake libeigen3-dev libsuitesparse-dev qtdeclarative5-dev qt5-qmake libqglviewer-dev 编译: cd g2o mkdir build cd build cmake make sudo make install

    问题:移除重装

    先删除之前的:
    sudo rm -r /usr/local/lib/cmake/Ceres
    sudo rm -rf /usr/local/include/ceres /usr/local/lib/libceres.a

    git clone https://github.com/ceres-solver/ceres-solver/tree/1.14.0

    cd ceres-solver-1.14.0
    mkdir build
    cd build
    cmake ..
    make -j4
    sudo make install

    cmakelists

    add_executable(helloworld helloworld.cc)
    target_link_libraries(helloworld ceres)
  • 相关阅读:
    借壳上市[来自百度]
    DIY协同办公平台(C/S)系列3之内部邮箱篇
    测试用例设计场景法
    客户关系管理系统提高企业对客户的响应速度
    CRM--销售管理的灵药
    CRM的两个问题
    需求分析是CRM系统实施的关键
    如何实施CRM客户关系管理系统
    CRM的三重境界
    企业需要更好的认识客户关系管理系统
  • 原文地址:https://www.cnblogs.com/lovebay/p/10943585.html
Copyright © 2011-2022 走看看