如果我將整個庫複製到編譯器默認顯示的目錄中,我就可以使用 Eigen,但只要我嘗試通過find_package(Eigen3 REQUIRED)找到它我收到以下錯誤: CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) ...
1. 找到 FindEigen3.cmake。也可以使用 locate FindEigen3.cmake 命令来查找。 2. 复制到项目文件夹下面,或者放在新建的cmake 文件夹内。 3. 修改项目 CMakeLists.txt。 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) //添加此句 find_package(Eigen3 REQUIRED) find_package(PCL REQUIRED) 1. ...
find_package( Eigen3 REQUIRED ) include_directories( EIGEN3_INCLUDE_DIR ) I get next message of error: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VE...
如果在使用CMake时出现了错误消息”By not providing “FindEigen3.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “Eigen3”, but CMake did not find one.“,这意味着CMake无法找到与Eigen3相关的配置文件。
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})***就是这句,加上就行了。这样cmake就会到你自己工程目录下去找FindEigen3.cmake了。 find_package(Eigen3) if(NOT EIGEN3_FOUND) # Fallback to cmake_modules find_package(cmake_modules REQUIRED) find_package...
PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:93 (include) -- Configuring incomplete, errors occurred! See also ...
While compiling the code I faced the following error: -- STA executable: /prj/openroad/OpenROAD/src/OpenSTA/app/sta CMake Error at src/replace/CMakeLists.txt:25 (find_package): By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH thi...
PATH_SUFFIXES eigen3/HINTS${INCLUDE_INSTALL_DIR}/usr/local/include${KDE4_INCLUDE_DIR})#这个include作用是找到FindPackageHandleStandardArgs.cmake文件(这个文件在CMake中的Modules文件夹),使得find_package_handle_standard_args()该函数可用。#If a module file is specified, the include command will search...
find_package(Eigen3 REQUIRED) include_directories( include ${EIGEN3_INCLUDE_DIRS} ) 添加非ROS2功能包的依赖项时...(ament_cmake_gtest REQUIRED) add_subdirectory(test) endif() 上面是编译test目录下的单元测试文件。...这是必需的,这样该库使用者也就不必为那些依赖项调用find_package了。...ament...