cannot find Boost libraries-iostreams

本文详细介绍了在编译PCL时遇到Boost库找不到的问题解决过程,包括如何确认已有库的存在,以及如何通过创建软链接和安装缺失库来解决filesystem和chrono模块的缺失。

编译PCL的时候,cmake的时候出现cannot find Boost libraries

  system
  filesystem
  thread
  date_time
  iostreams
  chrono

解决办法:
1.首先分析,既然找不到,那么是没有安装这个文件呢,还是有这个文件但是编译的时候找不到呢?

首先去判断是否已经有文件存在.
locate boost_system
结果:/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0
说明已经有这个文件存在,只是编译的时候找不到.
2.切换到/usr/lib/x86_64-linux-gnu/,列出boost开头的lib文件:ls libboost*

libboost_date_time.so.1.54.0        libboost_system.so.1.54.0
libboost_iostreams.so.1.54.0        libboost_thread.so.1.54.0

我们发现,已经有system,date_time,iostream,thread,但是没有filesystem和chrono.

已经有的我直接建立一个链接:
sudo ln -s libboost_system.so.1.54.0 libboost_system.so

没有的去下载安装
输入:sudo apt-get install libboost-filesystem
提示:E: 未发现软件包 libboost-filesystem
去查找下相关的资源:apt-file search libboost-filesystem
列出来很多,有一个就是
libboost-filesystem-dev: /usr/share/doc/libboost-filesystem-dev/changelog.gz

再运行:
sudo apt-get install libboost-filesystem-dev

搞定,可以cmake,configure了. --------------------- 本文来自 kingmicrosoft 的优快云 博客 ,全文地址请点击:https://blog.youkuaiyun.com/kingmicrosoft/article/details/39377715?utm_source=copy

momo@ubuntu:~$ dpkg -l | grep libboost ii libboost-all-dev 1.71.0.0ubuntu2 amd64 Boost C++ Libraries development files (ALL) (default version) ii libboost-atomic-dev:amd64 1.71.0.0ubuntu2 amd64 atomic data types, operations, and memory ordering constraints (default version) ii libboost-atomic1.71-dev:amd64 1.71.0-6ubuntu6 amd64 atomic data types, operations, and memory ordering constraints ii libboost-atomic1.71.0:amd64 1.71.0-6ubuntu6 amd64 atomic data types, operations, and memory ordering constraints ii libboost-chrono-dev:amd64 1.71.0.0ubuntu2 amd64 C++ representation of time duration, time point, and clocks (default version) ii libboost-chrono1.71-dev:amd64 1.71.0-6ubuntu6 amd64 C++ representation of time duration, time point, and clocks ii libboost-chrono1.71.0:amd64 1.71.0-6ubuntu6 amd64 C++ representation of time duration, time point, and clocks ii libboost-container-dev:amd64 1.71.0.0ubuntu2 amd64 C++ library that implements several well-known containers - dev files (default version) ii libboost-container1.71-dev:amd64 1.71.0-6ubuntu6 amd64 C++ library that implements several well-known containers - dev files ii libboost-container1.71.0:amd64 1.71.0-6ubuntu6 amd64 C++ library that implements several well-known containers ii libboost-context-dev:amd64 1.71.0.0ubuntu2 amd64 provides a sort of cooperative multitasking on a single thread (default version) ii libboost-context1.71-dev:amd64 1.71.0-6ubuntu6 amd64 provides a sort of cooperative multitasking on a single thread ii libboost-context1.71.0:amd64 1.71.0-6ubuntu6 amd64 provides a sort of cooperative multitasking on a single thread ii libboost-coroutine-dev:amd64 1.71.0.0ubuntu2 amd64 provides a sort of cooperative multitasking on a single thread (default version) ii libboost-coroutine1.71-dev:amd64 1.71.0-6ubuntu6 amd64 provides a sort of cooperative multitasking on a single thread ii libboost-coroutine1.71.0:amd64 1.71.0-6ubuntu6 amd64 provides a sort of cooperative multitasking on a single thread ii libboost-date-time-dev:amd64 1.71.0.0ubuntu2 amd64 set of date-time libraries based on generic programming concepts (default version) ii libboost-date-time1.71-dev:amd64 1.71.0-6ubuntu6 amd64 set of date-time libraries based on generic programming concepts ii libboost-date-time1.71.0:amd64 1.71.0-6ubuntu6 amd64 set of date-time libraries based on generic programming concepts ii libboost-dev:amd64 1.71.0.0ubuntu2 amd64 Boost C++ Libraries development files (default version) ii libboost-exception-dev:amd64 1.71.0.0ubuntu2 amd64 library to help write exceptions and handlers (default version) ii libboost-exception1.71-dev:amd64 1.71.0-6ubuntu6 amd64 library to help write exceptions and handlers ii libboost-fiber-dev:amd64 1.71.0.0ubuntu2 amd64 cooperatively-scheduled micro-/userland-threads (default version) ii libboost-fiber1.71-dev:amd64 1.71.0-6ubuntu6 amd64 cooperatively-scheduled micro-/userland-threads ii libboost-fiber1.71.0:amd64 1.71.0-6ubuntu6 amd64 cooperatively-scheduled micro-/userland-threads ii libboost-filesystem-dev:amd64 1.71.0.0ubuntu2 amd64 filesystem operations (portable paths, iteration over directories, etc) in C++ (default version) ii libboost-filesystem1.71-dev:amd64 1.71.0-6ubuntu6 amd64 filesystem operations (portable paths, iteration over directories, etc) in C++ ii libboost-filesystem1.71.0:amd64 1.71.0-6ubuntu6 amd64 filesystem operations (portable paths, iteration over directories, etc) in C++ ii libboost-graph-dev:amd64 1.71.0.0ubuntu2 amd64 generic graph components and algorithms in C++ (default version) ii libboost-graph-parallel-dev 1.71.0.0ubuntu2 amd64 generic graph components and algorithms in C++ (default version) ii libboost-graph-parallel1.71-dev 1.71.0-6ubuntu6 amd64 generic graph components and algorithms in C++ ii libboost-graph-parallel1.71.0 1.71.0-6ubuntu6 amd64 generic graph components and algorithms in C++ ii libboost-graph1.71-dev:amd64 1.71.0-6ubuntu6 amd64 generic graph components and algorithms in C++ ii libboost-graph1.71.0:amd64 1.71.0-6ubuntu6 amd64 generic graph components and algorithms in C++ ii libboost-iostreams-dev:amd64 1.71.0.0ubuntu2 amd64 Boost.Iostreams Library development files (default version) ii libboost-iostreams1.71-dev:amd64 1.71.0-6ubuntu6 amd64 Boost.Iostreams Library development files ii libboost-iostreams1.71.0:amd64 1.71.0-6ubuntu6 amd64 Boost.Iostreams Library ii libboost-locale-dev:amd64 1.71.0.0ubuntu2 amd64 C++ facilities for localization (default version) ii libboost-locale1.71-dev:amd64 1.71.0-6ubuntu6 amd64 C++ facilities for localization ii libboost-locale1.71.0:amd64 1.71.0-6ubuntu6 amd64 C++ facilities for localization ii libboost-log-dev 1.71.0.0ubuntu2 amd64 C++ logging library (default version) ii libboost-log1.71-dev 1.71.0-6ubuntu6 amd64 C++ logging library ii libboost-log1.71.0 1.71.0-6ubuntu6 amd64 C++ logging library ii libboost-math-dev:amd64 1.71.0.0ubuntu2 amd64 Boost.Math Library development files (default version) ii libboost-math1.71-dev:amd64 1.71.0-6ubuntu6 amd64 Boost.Math Library development files ii libboost-math1.71.0:amd64 1.71.0-6ubuntu6 amd64 Boost.Math Library ii libboost-mpi-dev 1.71.0.0ubuntu2 amd64 C++ interface to the Message Passing Interface (MPI) (default version) ii libboost-mpi-python-dev 1.71.0.0ubuntu2 amd64 C++ interface to the Message Passing Interface (MPI), Python Bindings (default version) ii libboost-mpi-python1.71-dev 1.71.0-6ubuntu6 amd64 C++ interface to the Message Passing Interface (MPI), Python Bindings ii libboost-mpi-python1.71.0 1.71.0-6ubuntu6 amd64 C++ interface to the Message Passing Interface (MPI), Python Bindings ii libboost-mpi1.71-dev 1.71.0-6ubuntu6 amd64 C++ interface to the Message Passing Interface (MPI) ii libboost-mpi1.71.0 1.71.0-6ubuntu6 amd64 C++ interface to the Message Passing Interface (MPI) ii libboost-numpy-dev 1.71.0.0ubuntu2 amd64 Boost.Python NumPy extensions development files (default version) ii libboost-numpy1.71-dev 1.71.0-6ubuntu6 amd64 Boost.Python NumPy extensions development files ii libboost-numpy1.71.0 1.71.0-6ubuntu6 amd64 Boost.Python NumPy extensions ii libboost-program-options-dev:amd64 1.71.0.0ubuntu2 amd64 program options library for C++ (default version) ii libboost-program-options1.71-dev:amd64 1.71.0-6ubuntu6 amd64 program options library for C++ ii libboost-program-options1.71.0:amd64 1.71.0-6ubuntu6 amd64 program options library for C++ ii libboost-python-dev 1.71.0.0ubuntu2 amd64 Boost.Python Library development files (default version) ii libboost-python1.71-dev 1.71.0-6ubuntu6 amd64 Boost.Python Library development files ii libboost-python1.71.0 1.71.0-6ubuntu6 amd64 Boost.Python Library ii libboost-random-dev:amd64 1.71.0.0ubuntu2 amd64 Boost Random Number Library (default version) ii libboost-random1.71-dev:amd64 1.71.0-6ubuntu6 amd64 Boost Random Number Library ii libboost-random1.71.0:amd64 1.71.0-6ubuntu6 amd64 Boost Random Number Library ii libboost-regex-dev:amd64 1.71.0.0ubuntu2 amd64 regular expression library for C++ (default version) ii libboost-regex1.71-dev:amd64 1.71.0-6ubuntu6 amd64 regular expression library for C++ ii libboost-regex1.71.0:amd64 1.71.0-6ubuntu6 amd64 regular expression library for C++ ii libboost-serialization-dev:amd64 1.71.0.0ubuntu2 amd64 serialization library for C++ (default version) ii libboost-serialization1.71-dev:amd64 1.71.0-6ubuntu6 amd64 serialization library for C++ ii libboost-serialization1.71.0:amd64 1.71.0-6ubuntu6 amd64 serialization library for C++ ii libboost-stacktrace-dev:amd64 1.71.0.0ubuntu2 amd64 library to capture and print stack traces - development files (default version) ii libboost-stacktrace1.71-dev:amd64 1.71.0-6ubuntu6 amd64 library to capture and print stack traces - development files ii libboost-stacktrace1.71.0:amd64 1.71.0-6ubuntu6 amd64 library to capture and print stack traces ii libboost-system-dev:amd64 1.71.0.0ubuntu2 amd64 Operating system (e.g. diagnostics support) library (default version) ii libboost-system1.71-dev:amd64 1.71.0-6ubuntu6 amd64 Operating system (e.g. diagnostics support) library ii libboost-system1.71.0:amd64 1.71.0-6ubuntu6 amd64 Operating system (e.g. diagnostics support) library ii libboost-test-dev:amd64 1.71.0.0ubuntu2 amd64 components for writing and executing test suites (default version) ii libboost-test1.71-dev:amd64 1.71.0-6ubuntu6 amd64 components for writing and executing test suites ii libboost-test1.71.0:amd64 1.71.0-6ubuntu6 amd64 components for writing and executing test suites ii libboost-thread-dev:amd64 1.71.0.0ubuntu2 amd64 portable C++ multi-threading (default version) ii libboost-thread1.71-dev:amd64 1.71.0-6ubuntu6 amd64 portable C++ multi-threading ii libboost-thread1.71.0:amd64 1.71.0-6ubuntu6 amd64 portable C++ multi-threading ii libboost-timer-dev:amd64 1.71.0.0ubuntu2 amd64 C++ wall clock and CPU process timers (default version) ii libboost-timer1.71-dev:amd64 1.71.0-6ubuntu6 amd64 C++ wall clock and CPU process timers ii libboost-timer1.71.0:amd64 1.71.0-6ubuntu6 amd64 C++ wall clock and CPU process timers ii libboost-tools-dev 1.71.0.0ubuntu2 amd64 Boost C++ Libraries development tools (default version) ii libboost-type-erasure-dev:amd64 1.71.0.0ubuntu2 amd64 C++ runtime polymorphism based on concepts (default version) ii libboost-type-erasure1.71-dev:amd64 1.71.0-6ubuntu6 amd64 C++ runtime polymorphism based on concepts ii libboost-type-erasure1.71.0:amd64 1.71.0-6ubuntu6 amd64 C++ runtime polymorphism based on concepts ii libboost-wave-dev:amd64 1.71.0.0ubuntu2 amd64 C99/C++ preprocessor library (default version) ii libboost-wave1.71-dev:amd64 1.71.0-6ubuntu6 amd64 C99/C++ preprocessor library ii libboost-wave1.71.0:amd64 1.71.0-6ubuntu6 amd64 C99/C++ preprocessor library ii libboost1.71-dev:amd64 1.71.0-6ubuntu6 amd64 Boost C++ Libraries development files ii libboost1.71-tools-dev 1.71.0-6ubuntu6 amd64 Boost C++ Libraries development tools
最新发布
12-28
tao@tao:~/SLAM/ORB_SLAM3/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENCV_VERSION=3.4 2>&1 | tee cmake.log CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Build type: Release -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Using flag -std=c++11. -- Found OpenCV: /usr/local (found suitable version "4.2.0", minimum required is "4.2") OPENCV VERSION: 4.2.0 CMake Deprecation Warning at /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:40 (cmake_policy): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. Call Stack (most recent call first): CMakeLists.txt:41 (find_package) CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:152 (find_package): Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT variables. Run "cmake --help-policy CMP0144" for policy details. Use the cmake_policy command to set the policy and suppress this warning. CMake variable EIGEN_ROOT is set to: /usr/include/eigen3 For compatibility, find_package is ignoring the variable, but code in a .cmake module might still use it. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:316 (find_eigen) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Checking for module 'eigen3' -- Found eigen3, version 3.3.7 -- Found Eigen: /usr/include/eigen3 (Required is at least version "3.1") -- Eigen found (include: /usr/include/eigen3, version: 3.3.7) CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:134 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:314 (find_boost) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found Boost: /usr/include (found suitable version "1.71.0", minimum required is "1.55.0") found components: system filesystem date_time iostreams regex -- Checking for module 'libusb-1.0' -- Found libusb-1.0, version 1.0.23 CMake Warning (dev) at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (USB_10) does not match the name of the calling package (OpenNI). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/Modules/FindOpenNI.cmake:28 (find_package_handle_standard_args) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:179 (find_package) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:322 (find_openni) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:548 (find_external_library) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found USB_10: /usr/lib/x86_64-linux-gnu/libusb-1.0.so -- Found OpenNI: /usr/lib/libOpenNI.so -- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so) CMake Warning (dev) at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (USB_10) does not match the name of the calling package (OpenNI2). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/Modules/FindOpenNI2.cmake:28 (find_package_handle_standard_args) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:193 (find_package) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:324 (find_openni2) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:548 (find_external_library) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found OpenNI2: /usr/lib/libOpenNI2.so -- OpenNI2 found (include: /usr/include/openni2, lib: /usr/lib/libOpenNI2.so) ** WARNING ** io features related to pcap will be disabled ** WARNING ** io features related to png will be disabled -- The imported target "vtkParseOGLExt" references the file "/usr/bin/vtkParseOGLExt-7.1" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake" but not all the files it references. -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake" but not all the files it references. -- The imported target "pvtk" references the file "/usr/bin/pvtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake" but not all the files it references. CMake Warning (dev) at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (libusb-1.0) does not match the name of the calling package (PCL). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:291 (find_package_handle_standard_args) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:338 (find_libusb) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:548 (find_external_library) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found libusb-1.0: /usr/include ** WARNING ** io features related to libusb-1.0 will be disabled -- looking for PCL_COMMON CMake Warning (dev) at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (PCL_COMMON) does not match the name of the calling package (PCL). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:616 (find_package_handle_standard_args) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PCL_COMMON: /usr/lib/x86_64-linux-gnu/libpcl_common.so -- looking for PCL_OCTREE CMake Warning (dev) at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (PCL_OCTREE) does not match the name of the calling package (PCL). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:616 (find_package_handle_standard_args) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PCL_OCTREE: /usr/lib/x86_64-linux-gnu/libpcl_octree.so -- looking for PCL_IO CMake Warning (dev) at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (PCL_IO) does not match the name of the calling package (PCL). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:616 (find_package_handle_standard_args) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PCL_IO: /usr/lib/x86_64-linux-gnu/libpcl_io.so -- Found PCL: pcl_common;pcl_octree;pcl_io;/usr/local/lib/libboost_system.so;/usr/local/lib/libboost_filesystem.so;/usr/local/lib/libboost_date_time.so;/usr/local/lib/libboost_iostreams.so;/usr/local/lib/libboost_regex.so;/usr/lib/libOpenNI.so;/usr/lib/libOpenNI2.so;vtkChartsCore;vtkCommonColor;vtkCommonCore;vtksys;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkCommonExecutionModel;vtkFiltersGeneral;vtkCommonComputationalGeometry;vtkFiltersCore;vtkInfovisCore;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkRenderingContext2D;vtkRenderingCore;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingFreeType;/usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/x86_64-linux-gnu/libz.so;vtkFiltersModeling;vtkImagingSources;vtkInteractionStyle;vtkInteractionWidgets;vtkFiltersHybrid;vtkImagingColor;vtkImagingGeneral;vtkImagingHybrid;vtkIOImage;vtkDICOMParser;vtkmetaio;/usr/lib/x86_64-linux-gnu/libjpeg.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libtiff.so;vtkRenderingAnnotation;vtkRenderingVolume;vtkIOXML;vtkIOCore;vtkIOXMLParser;/usr/lib/x86_64-linux-gnu/libexpat.so;vtkIOGeometry;vtkIOLegacy;vtkIOPLY;vtkRenderingLOD;vtkViewsContext2D;vtkViewsCore;vtkRenderingContextOpenGL2;vtkRenderingOpenGL2 (Required is at least version "1.10") CMake Warning at CMakeLists.txt:44 (find_package): By not providing "Findrealsense2.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "realsense2", but CMake did not find one. Could not find a package configuration file provided by "realsense2" with any of the following names: realsense2Config.cmake realsense2-config.cmake Add the installation prefix of "realsense2" to CMAKE_PREFIX_PATH or set "realsense2_DIR" to a directory containing one of the above files. If "realsense2" provides a separate development package or SDK, be sure it has been installed. CMake Deprecation Warning at Thirdparty/g2o/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. -- BUILD TYPE:Release -- Compiling on Unix -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- PCL_INCLUDE_DIRS = /usr/include/pcl-1.10;/usr/include/eigen3;/usr/include;/usr/include/ni;/usr/include/openni2;/usr/include/vtk-7.1;/usr/include/freetype2;/usr/include/x86_64-linux-gnu -- PCL_LIBRARIES = pcl_common;pcl_octree;pcl_io;/usr/local/lib/libboost_system.so;/usr/local/lib/libboost_filesystem.so;/usr/local/lib/libboost_date_time.so;/usr/local/lib/libboost_iostreams.so;/usr/local/lib/libboost_regex.so;/usr/lib/libOpenNI.so;/usr/lib/libOpenNI2.so;vtkChartsCore;vtkCommonColor;vtkCommonCore;vtksys;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkCommonExecutionModel;vtkFiltersGeneral;vtkCommonComputationalGeometry;vtkFiltersCore;vtkInfovisCore;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkRenderingContext2D;vtkRenderingCore;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingFreeType;/usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/x86_64-linux-gnu/libz.so;vtkFiltersModeling;vtkImagingSources;vtkInteractionStyle;vtkInteractionWidgets;vtkFiltersHybrid;vtkImagingColor;vtkImagingGeneral;vtkImagingHybrid;vtkIOImage;vtkDICOMParser;vtkmetaio;/usr/lib/x86_64-linux-gnu/libjpeg.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libtiff.so;vtkRenderingAnnotation;vtkRenderingVolume;vtkIOXML;vtkIOCore;vtkIOXMLParser;/usr/lib/x86_64-linux-gnu/libexpat.so;vtkIOGeometry;vtkIOLegacy;vtkIOPLY;vtkRenderingLOD;vtkViewsContext2D;vtkViewsCore;vtkRenderingContextOpenGL2;vtkRenderingOpenGL2 -- Configuring done (2.3s) CMake Error at CMakeLists.txt:136 (add_executable): Cannot find source file: main.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc CMake Error at CMakeLists.txt:136 (add_executable): No SOURCES given to target: main CMake Generate step failed. Build files cannot be regenerated correctly. tao@tao:~/SLAM/ORB_SLAM3/build$ grep -i "error" cmake.log CMake Error at CMakeLists.txt:136 (add_executable): CMake Error at CMakeLists.txt:136 (add_executable): 第二步编译出来的结果
10-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值