一、问题描述:

joes@joes:~/Downloads/pangolin-master/build$ cmake ..
CMake Warning at CMakeLists.txt:75 (message):Building Tests requested, but Catch2 library not found.-- libpng Found and Enabled
-- libjpeg Found and Enabled
-- libtiff Found and Enabled
-- libopenexr Found and Enabled
-- liblz4 Found and Enabled
-- libdc1394 Found and Enabled
-- V4L Found and Enabled
-- ffmpeg Found and Enabled
-- OpenNI Found and Enabled
CMake Warning (dev) at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):The package name passed to `find_package_handle_standard_args`(WAYLAND_CLIENT) does not match the name of the calling package (Wayland).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):cmake/FindWayland.cmake:52 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)components/pango_windowing/CMakeLists.txt:35 (find_package)CMakeLists.txt:93 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.CMake Warning (dev) at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):The package name passed to `find_package_handle_standard_args`(WAYLAND_SERVER) does not match the name of the calling package (Wayland).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):cmake/FindWayland.cmake:53 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)components/pango_windowing/CMakeLists.txt:35 (find_package)CMakeLists.txt:93 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.CMake Warning (dev) at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):The package name passed to `find_package_handle_standard_args`(WAYLAND_EGL) does not match the name of the calling package (Wayland).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):cmake/FindWayland.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)components/pango_windowing/CMakeLists.txt:35 (find_package)CMakeLists.txt:93 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.CMake Warning (dev) at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):The package name passed to `find_package_handle_standard_args`(WAYLAND_CURSOR) does not match the name of the calling package (Wayland).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):cmake/FindWayland.cmake:55 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)components/pango_windowing/CMakeLists.txt:35 (find_package)CMakeLists.txt:93 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.CMake Warning (dev) at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):The package name passed to `find_package_handle_standard_args` (WAYLAND)does not match the name of the calling package (Wayland).  This can lead toproblems in calling code that expects `find_package` result variables(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):cmake/FindWayland.cmake:56 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)components/pango_windowing/CMakeLists.txt:35 (find_package)CMakeLists.txt:93 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.-- Configuring done
CMake Error at CMakeLists.txt:88 (add_library):Target "pango_windowing" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_tools" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_glgeometry" links to target "Eigen3::Eigen" but the targetwas not found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_glgeometry" links to target "Eigen3::Eigen" but the targetwas not found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_geometry" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_display" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_opengl" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_plot" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at CMakeLists.txt:88 (add_library):Target "pango_scene" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_2_gl_intro_classic_triangle_vbo" links to target"Eigen3::Eigen" but the target was not found.  Perhaps a find_package()call is missing for an IMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_1_gl_intro_pango_triangle" links to target "Eigen3::Eigen"but the target was not found.  Perhaps a find_package() call is missing foran IMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_2_gl_intro_pango_triangle_vbo" links to target"Eigen3::Eigen" but the target was not found.  Perhaps a find_package()call is missing for an IMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_1_gl_intro_classic_triangle" links to target"Eigen3::Eigen" but the target was not found.  Perhaps a find_package()call is missing for an IMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_3_gl_intro_classic_triangle_vbo_shader" links to target"Eigen3::Eigen" but the target was not found.  Perhaps a find_package()call is missing for an IMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_3_gl_intro_pango_triangle_vbo_shader" links to target"Eigen3::Eigen" but the target was not found.  Perhaps a find_package()call is missing for an IMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_4_gl_intro_viewport" links to target "Eigen3::Eigen" butthe target was not found.  Perhaps a find_package() call is missing for anIMPORTED target, or an ALIAS target is missing?CMake Error at examples/BasicOpenGL/CMakeLists.txt:19 (add_executable):Target "tutorial_5_gl_intro_view_transforms" links to target"Eigen3::Eigen" but the target was not found.  Perhaps a find_package()call is missing for an IMPORTED target, or an ALIAS target is missing?CMake Error at examples/HelloPangolin/CMakeLists.txt:5 (add_executable):Target "HelloPangolin" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at examples/SimpleDisplay/CMakeLists.txt:5 (add_executable):Target "SimpleDisplay" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at examples/SimpleMultiDisplay/CMakeLists.txt:5 (add_executable):Target "SimpleMultiDisplay" links to target "Eigen3::Eigen" but the targetwas not found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at examples/SimpleDisplayImage/CMakeLists.txt:5 (add_executable):Target "SimpleDisplayImage" links to target "Eigen3::Eigen" but the targetwas not found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at examples/SimplePlot/CMakeLists.txt:5 (add_executable):Target "SimplePlot" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at examples/SimpleVideo/CMakeLists.txt:5 (add_executable):Target "SimpleVideo" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at examples/SimpleRecord/CMakeLists.txt:5 (add_executable):Target "SimpleRecord" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at examples/HelloPangolinOffscreen/CMakeLists.txt:5 (add_executable):Target "HelloPangolinOffscreen" links to target "Eigen3::Eigen" but thetarget was not found.  Perhaps a find_package() call is missing for anIMPORTED target, or an ALIAS target is missing?CMake Error at examples/SimpleScene/CMakeLists.txt:5 (add_executable):Target "SimpleScene" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at tools/VideoViewer/CMakeLists.txt:5 (add_executable):Target "VideoViewer" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at tools/VideoViewer/CMakeLists.txt:5 (add_executable):Target "VideoViewer" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at tools/VideoConvert/CMakeLists.txt:5 (add_executable):Target "VideoConvert" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at tools/VideoConvert/CMakeLists.txt:5 (add_executable):Target "VideoConvert" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at tools/VideoJson/CMakeLists.txt:5 (add_executable):Target "VideoJsonPrint" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at tools/VideoJson/CMakeLists.txt:5 (add_executable):Target "VideoJsonPrint" links to target "Eigen3::Eigen" but the target wasnot found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at tools/VideoJson/CMakeLists.txt:8 (add_executable):Target "VideoJsonTransform" links to target "Eigen3::Eigen" but the targetwas not found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at tools/VideoJson/CMakeLists.txt:8 (add_executable):Target "VideoJsonTransform" links to target "Eigen3::Eigen" but the targetwas not found.  Perhaps a find_package() call is missing for an IMPORTEDtarget, or an ALIAS target is missing?CMake Error at tools/Plotter/CMakeLists.txt:5 (add_executable):Target "Plotter" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at tools/Plotter/CMakeLists.txt:5 (add_executable):Target "Plotter" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at tools/ModelViewer/CMakeLists.txt:5 (add_executable):Target "ModelViewer" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?CMake Error at tools/ModelViewer/CMakeLists.txt:5 (add_executable):Target "ModelViewer" links to target "Eigen3::Eigen" but the target was notfound.  Perhaps a find_package() call is missing for an IMPORTED target, oran ALIAS target is missing?-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

二、解决方法:

get_filename_component(COMPONENT ${CMAKE_CURRENT_LIST_DIR} NAME)find_package (Eigen3 REQUIRED CONFIG QUIET)
target_compile_definitions(${COMPONENT} PUBLIC HAVE_EIGEN)target_sources( ${COMPONENT}
PRIVATE${CMAKE_CURRENT_LIST_DIR}/src/geometry.cpp${CMAKE_CURRENT_LIST_DIR}/src/geometry_obj.cpp${CMAKE_CURRENT_LIST_DIR}/src/geometry_ply.cpp
)target_link_libraries(${COMPONENT} pango_core pango_image tinyobj ${Eigen3_LIBRARY})
target_include_directories(${COMPONENT} PUBLIC$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>$<INSTALL_INTERFACE:include>
)
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/include"DESTINATION ${CMAKE_INSTALL_PREFIX}
)

target_link_libraries(${COMPONENT} pango_core pango_image tinyobj Eigen3::Eigin)

改为:

target_link_libraries(${COMPONENT} pango_core pango_image tinyobj ${Eigen3_LIBRARY})

Target “pango_windowing“ links to target “Eigen3::Eigen“ but the target was not found. Perhaps a相关推荐

  1. ROS报错:/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:119:9: error: ‘YOU_MIXED_DIFFERENT

    本机环境:window10+vmware+ubuntu16.04+kinetic   最近跑了跑ORB-SLAM的示例,配置环境按照ORB-SLAM github上的要求依次下载几个包,再按照在Ubu ...

  2. 给定一个 n 个元素有序的(升序)整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标,否则返回 -1。

    给定一个 n 个元素有序的(升序)整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标,否则返回 -1. JAVA: class So ...

  3. target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S

    解决方案:Targets->Build Settings->Combined(All)搜索ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES,选中 选项,按下电脑的 ...

  4. Target “xxx” links to target “Boost::filesystem“ but the target was not found

    Boost::system Boost::thread Boost::timer等等替换为${Boost_LIBRARIES}即可

  5. 编译运行Clipper报错以及解决

    日期:2021/12/6 论文链接:https://arxiv.org/abs/2011.10202 1 问题描述 执行命令: cmake .. -DBUILD_BINDINGS_PYTHON=OFF ...

  6. 我可以在Markdown中使用“ target =“ _ blank””创建链接吗?

    有没有一种方法可以在Markdown中创建一个在新窗口中打开的链接? 如果没有,建议您使用哪种语法. 我将其添加到我使用的markdown编译器中. 我认为这应该是一个选择. #1楼 尝试使用PHP实 ...

  7. Burp suite常用操作(Target、Option)

    官网:https://portswigger.net/burp/documentation/de sktop/tools 目录 1.网络代理 2.Burp Suite代理设置 2.1 Options选 ...

  8. [转]Introduction of iSCSI Target in Windows Server 2012

    Introduction of iSCSI Target in Windows Server 2012 源地址:http://blogs.technet.com/b/filecab/archive/2 ...

  9. CocoaPod出现“target overrides the `OTHER_LDFLAGS`……的解决方案

    今天在项目中引入AFNetworking. Podfile的内容 platform :ios, '7.0' pod "AFNetworking", "~> 2.0& ...

最新文章

  1. UI设计培训:UI构思创意技巧和方法
  2. getFields()和getDeclaredFields的区别
  3. 去了两家外包公司,颠覆了我的认知!
  4. ARM学习方法大杂烩,高手经验之谈,内容完全来自互联网
  5. 关于有朋友询问,Spartacus,Fiori,SAP UI5这些术语的关系
  6. Wallop蛋和Gmail蛋
  7. 前端学习(3123):react-hello-react之props的基本使用
  8. jsp中String path = request.getContextPath()的作用
  9. 第十一届蓝桥杯省赛C++组试题 第6题
  10. vue项目中iview表单验证 this.$refs[name].validate(valid = { }无效
  11. 使用虚拟按钮(Ghost Buttons)的25个网站
  12. 二十七、K8s最小服务漏洞1-PSP
  13. 【转】 jquery遍历json数组方法
  14. PowerDesigner(八)-面向对象模型(用例图,序列图,类图,生成Java源代码及Java源代码生成类图)(转)...
  15. 解读Depth Map Prediction from a Single Image using a Multi-Scale Deep Network (3)
  16. VS2010对话框中使用MSChart控件
  17. BP神经网络分类算法
  18. 三星线刷工具Odin3_V3.12.7
  19. oracle数据库实例删除
  20. 梦想贩卖机v2-1.069

热门文章

  1. 人生不相见,动如参与商
  2. PostgreSQL in amp; = any (values|array)
  3. postman 搭建mock-server
  4. 表头顺序不一样的表格如何合并_不同表头的多表合并
  5. 原型法和面向对象的分析与设计方法
  6. Oracle打补丁步骤
  7. C语言实现简易扫雷游戏
  8. ArcGIS中地表径流
  9. 中科院用不起的知网,一年主营业务收入11.6亿元,毛利率高过工商银行
  10. CF - 794B. Cutting Carrot - 数学