CMake在Docker / Ubuntu 18.04中找不到Qt5LinguistTools

weixin_38051999 2019-09-12 12:45:25
我的简单Dockerfile: FROM ubuntu:18.04 RUN apt update && apt upgrade -y RUN apt install build-essential cmake qt5-default -y RUN apt install qttools5-dev-tools -y 当我检查容器内的语言学家时,它就在那里: root@9087245330a7:/# which linguist /usr/bin/linguist …但是当我在容器中配置我的应用程序时: CMake Error at CMakeLists.txt:72 (find_package): By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5LinguistTools", but CMake did not find one. Could not find a package configuration file provided by "Qt5LinguistTools" (requested version 5.5.1) with any of the following names: Qt5LinguistToolsConfig.cmake qt5linguisttools-config.cmake Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or set "Qt5LinguistTools_DIR" to a directory containing one of the above files. If "Qt5LinguistTools" provides a separate development package or SDK, be sure it has been installed. 到底是怎么回事?这适用于Ubuntu 16.04就好了.
...全文
1935 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38066019 2019-09-12
  • 打赏
  • 举报
回复
问题是在Ubuntu 18.04中你还需要安装qttools5-dev才能获得/usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake.

473

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧