CMake 在 Docker / Ubuntu 18.04 中找不到 Qt5LinguistTools

问题描述 投票:0回答:2

我的简单 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

当我检查容器内的

linguist
时,它就在那里:

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 上工作得很好。

    

qt docker cmake qt5 ubuntu-18.04
2个回答
80
投票
16.04

才能获得

qttools5-dev
    


0
投票

© www.soinside.com 2019 - 2024. All rights reserved.