Install proto3 Please check README.md for proto3 installation instructions. 软件包: 安装后:更新protobu文件 protoc -I=S R C D I R − − c p p o u t = SRC_DIR --cpp_out=SRC D IR−−cpp o ut=DST_DIR $SRC_DIR/addressbook.proto 例如:当前目录里的proto protoc -I=./ --cpp_out=./ xxx.proto
Install glog 原文的打不开,现在用的pip install glog
Install OpenCV 3.4.5++ and PCL 1.7++
opencv demo验证&#xff1a; cd <你的路径>/opencv-3.4.5/samples/cpp/example_cmake cmake. make ./opencv_example 如果能打开相机说明成功&#xff01;&#xff01;&#xff01;&#xff01;&#xff01;&#xff01;&#xff01;
limbo build&#xff1a; clone limbo cd LidarRoadBoundaryDetection git clone https://github.com/resibots/limbo
Build limbo Then please check official documentation to build and intall limbo&#xff1a;https://github.com/resibots/libcmaes 有时候网络问题&#xff1a;GitHub的文件无法clone&#xff0c;需要翻墙。
目前这里有些问题&#xff0c;好像没有编成&#xff0c;导致demo frame无法运行。
编译问题&#xff1a; 1 error&#xff1a;#error PCL requires C&#43;&#43;14 or above 解决&#xff1a;在CMakeList中新增一句&#xff1a; set(CMAKE_CXX_STANDARD 14) 2 boost ‘boost::mutex’ has not been declared: 解决&#xff1a; 安装boost https://blog.csdn.net/hailangdeyingzi/article/details/73527877 上面不行&#xff0c;试试&#xff1a; www.cnblogs.com/oracleloyal/p/6060779.html
更新nlopt安装方式&#xff1a; http://www.resibots.eu/limbo/tutorials/compilation.html ./configure --with-cxx --enable-shared --without-python --without-matlab --without-octave make sudo make install
limbo build成功
出现return errr
usr/bin/ld: lib/libextract.a(road_boundary.pb.cc.o)&#x1f626;.data.rel.ro&#43;0x50): more undefined references to &#96;google::protobuf::Message::CopyWithSizeCheck(google::protobuf::Message*, google::protobuf::Message const&)’ follow collect2: error: ld returned 1 exit status 以下操作仍然不能解决&#xff0c;但proto安装成功 proto anzhuang gengxin: https://github.com/protocolbuffers/protobuf/blob/master/src/README.md https://blog.csdn.net/kdchxue/article/details/81046192
上个 error solved!
/home/gj/lidar/LidarRoadBoundaryDetection/limbo/src/limbo/serialize/text_archive.hpp:72:35: error: variable ‘std::ofstream ofs’ has initializer but incomplete type 72 | std::ofstream ofs(fname(object_name).c_str());
头文件添加&#xff1a; #include
最新 error&#xff1a; 应该是protobuf问题
CMakeLists做了如下修改&#xff1a;
cmake_minimum_required(VERSION 2.8)
project(boundary_detection)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS “-std&#61;c&#43;&#43;11 -march&#61;native”) set(CMAKE_BUILD_TYPE Release CACHE STRING “set build type to release”) set(CMAKE_MODULE_PATH CMAKEMODULEPATH"{CMAKE_MODULE_PATH} "CMAKEMODULEPATH"{CMAKE_CURRENT_LIST_DIR}/cmake") set(LIMBO_INCLUDE_DIRS ./limbo/src)
find_package(OpenMP REQUIRED) find_package(Protobuf REQUIRED) if(PROTOBUF_FOUND) message(STATUS “protobuf library found”) else() message(FATAL_ERROR “protobuf library is needed but cant be found”) endif()