我正在尝试使用带有cmake的PCL构建项目。 直到今天,它的建造情况还不错。现在,我收到以下错误:
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at /usr/local/share/pcl-1.9/PCLConfig.cmake:58 (message):
simulation is required but glew was not found
Call Stack (most recent call first):
/usr/local/share/pcl-1.9/PCLConfig.cmake:361 (pcl_report_not_found)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
我正在使用Mac OS X Mojave(10.14),并且通过自制软件安装了PCL(1.9)。
一切都是最新的,brew doctor
没有出现任何问题。所有符号链接似乎都可以。
GLEW也安装在/usr/local/Cellar/glew/
下,它也是当前版本(2.1.0)。
PCLConfig.cmake似乎有问题(请参阅here)。但是,这似乎不再解决该问题。.找不到其他线程中指定的所需行。
不幸的是,我对cmake不太坚定,也不知道该怎么做。任何帮助表示赞赏!
这是完整的cmake输出的样子:
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /Users/Matthias/Workspaces/CLion/PointCloudEdgeDetector2
-- Eigen found (include: /usr/local/include/eigen3, version: 3.3.7)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
CMake Warning at /Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:847 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/apps/CLion/ch-0/182.4892.24/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
/usr/local/share/pcl-1.9/PCLConfig.cmake:140 (find_package)
/usr/local/share/pcl-1.9/PCLConfig.cmake:310 (find_boost)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
-- Boost version: 1.69.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
-- serialization
-- chrono
-- atomic
-- regex
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_7/include, lib: optimized;/usr/local/Cellar/flann/1.9.1_7/lib/libflann_cpp.dylib;debug;/usr/local/Cellar/flann/1.9.1_7/lib/libflann_cpp.dylib)
-- FLANN found (include: /usr/local/Cellar/flann/1.9.1_7/include, lib: optimized;/usr/local/Cellar/flann/1.9.1_7/lib/libflann_cpp.dylib;debug;/usr/local/Cellar/flann/1.9.1_7/lib/libflann_cpp.dylib)
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
** WARNING ** io features related to libusb-1.0 will be disabled
-- QHULL found (include: /usr/local/include, lib: optimized;/usr/local/lib/libqhull_p.dylib;debug;/usr/local/lib/libqhull_p.dylib)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at /usr/local/share/pcl-1.9/PCLConfig.cmake:58 (message):
simulation is required but glew was not found
Call Stack (most recent call first):
/usr/local/share/pcl-1.9/PCLConfig.cmake:361 (pcl_report_not_found)
/usr/local/share/pcl-1.9/PCLConfig.cmake:545 (find_external_library)
CMakeLists.txt:6 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/Matthias/Workspaces/CLion/PointCloudEdgeDetector2/cmake-build-debug/CMakeFiles/CMakeOutput.log".
[Failed to reload]