debug:g2o cmake时报错“Qt5 not found. Install it and set Qt5_DIR accordingly
**
debug:g2o cmake时报错“Qt5 not found. Install it and set Qt5_DIR accordingly”
**
完整报错:
@ubuntu:~/WorkSpace/g2o/build$ cmake …/
– Compiling on Unix
– Found CHOLMOD and its dependencies
– Compiling with OpenGL support
– Could NOT find Qt4 (missing: QT_CORE_INCLUDE_DIR QT_CORE_LIBRARY QT_XML_INCLUDE_DIR QT_XML_LIBRARY QT_OPENGL_INCLUDE_DIR QT_OPENGL_LIBRARY QT_GUI_INCLUDE_DIR QT_GUI_LIBRARY QT_WIDGETS_INCLUDE_DIR QT_WIDGETS_LIBRARY) (found version “4.8.7”)
Qt5 not found. Install it and set Qt5_DIR accordingly
– Compiling g2o apps
– Compiling g2o examples
– Compiling with GCC
– Configuring done
– Generating done
– Build files have been written to: /home/aicrobo/WorkSpace/g2o
原因:
文件 g2o/cmake_modules/FindQGLViewer.cmake 编写错误
错误代码段:
find_package(Qt4 COMPONENTS Core Xml OpenGL Gui Widgets)
if(NOT Qt4_FOUND)
message(“Qt5 not found. Install it and set Qt5_DIR accordingly”)
if (WIN32)
message(" In Windows, Qt5_DIR should be something like C:/Qt/5.4/msvc2013_64_opengl/lib/cmake/Qt5")
endif()
endif()
修改后:
find_package(Qt4 COMPONENTS)# Core Xml OpenGL Gui Widgets)
if(NOT Qt4_FOUND)
message(“Qt4 not found. Install it and set Qt4_DIR accordingly”)
if (WIN32)
message(" In Windows, Qt5_DIR should be something like C:/Qt/5.4/msvc2013_64_opengl/lib/cmake/Qt5")
endif()
endif()
debug:g2o cmake时报错“Qt5 not found. Install it and set Qt5_DIR accordingly相关推荐
- pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5]
pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问(已解决) ...
- pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问(已解决)
pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问(已解决) ...
- Ubuntu运行vmware时报错Vmware Unable to install all modules!Use shipped Linux kernel AIO access library解决。
ubuntu运行vmware时报错: Vmware Unable to install all modules 命令: vmware --version 提示下面内容: [AppLoader] Use ...
- 用vim-plug装fzf插件时报错Unknown function fzf#install
用vim-plug装插件时报错Post-update hook for fzf ... Unknown function fzf#install 虽然再次安装(:PlugInstall)会显示安装成功 ...
- file DOWNLOAD HASH mismatch(编译安装opencv 3.2.0时报错)
ubuntu 16.04 opencv 3.2.0 opencv_contrib 3.2.0 cmake时报错: -- Check contents of boostdesc_bgm.i ... -- ...
- 【Cmake】执行cmake命令时报错:No XSLT processor found
一.问题描述 在ubuntu中,在生成Doc(文档)中,执行cmake命令时报错:No XSLT processor found 二.原因查找 google该错误信息,原因是确实ubuntu中没有安装 ...
- 关于cmake从GitHub上下载的源码启动时报错的问题
关于cmake从GitHub上下载的源码启动时报错的问题: 由于cmake会产生all_build和zero_check两个project,此时需要右击鼠标将需要运行的项目设为启动项,在进行编译,现只 ...
- IDEA Debug时报错Cannot start compilation: the output path is not specified for module““
IntelliJ IDEA Debug时报错 Cannot start compilation: the output path is not specified for module "S ...
- 【Qt】启动QtCreator时报错:Cannot mix incompatible Qt library (version ) with this library (version...
1.问题描述 当启动QtCreator时报错(我的Qt版本是Qt5.6.3): Cannot mix incompatible Qt library (version 0x50603) with th ...
最新文章
- python用jieba进行分词并可视化
- |Tyvj|动态规划|P1004 滑雪
- centos安装时卡住不动_转子流量计转子或指针停在某一位置不动的原因及处理方法...
- Docker容器的自动化监控实现
- Eclipse上安装maven插件时出错
- 失物招领小程序_在机场丢了东西怎么办?温州机场失物招领在线办理平台暖心上线!...
- 注意Stream.Seek,如果想要重复使用Stream,注意用Seek复位
- 学技术的不能自废武功
- 如何更有效的开发中东市场客户?【干货】想拿土豪国大订单看过来!
- 编译原理 实验二 递归下降语法分析程序
- caj 格式的文件转换为word
- 默默学Sharding-Sphere(一)
- vim 配置文件 ,高亮+自动缩进+行号+折叠+优化
- Fiddler原理+雷电模拟器进行APP抓包
- Aaron Kwok
- 哈工大c语言ex6答案,哈工大C语言程序设计习题ex6.doc
- Ubuntu安装etter
- 【微前端】591- 微前端在小米 CRM 系统的实践
- 前端页面项目——博客系统
- bim计算机工程师考试,BIM工程师怎么报考?
热门文章
- HDU——1106排序(istringstream的使用、STLvector练习)
- BZOJ1202: [HNOI2005]狡猾的商人
- Mongodb地理空间索引
- 3月7日 ArrayList集合
- 读书笔记2013第13本:《怎样解题》
- 连通性2 无向图的双连通 bcc
- JQuery 基础:8.节点操作
- compser可以检查php扩展吗,composer扩展
- python 申请内存空间、用于创建多维数组_python 申请内存空间,用于创建多维数组的实例...
- python什么时候用框架_Python 中三大框架各自的应用场景