Я пытаюсь построить проект с использованием PCL с помощью cmake.
Раньше строили нормально до сегодняшнего дня. Теперь я получаю следующую ошибку:
-- 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) устанавливается через homebrew.
Все актуально и brew doctor
не вызывает никаких проблем. Все символические ссылки вроде бы в порядке.
GLEW также установлен под /usr/local/Cellar/glew/
, и это также текущая версия (2.1.0).
Кажется, что были проблемы с PCLConfig.cmake (см. здесь ). Однако, похоже, это больше не решает проблему ... не удается найти нужную строку, как указано в другом потоке.
К сожалению, я не очень тверд в 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]