在Docker Ubuntu中构建Qt6 Qt Creator

pgpifvop  于 2023-08-03  发布在  Docker
关注(0)|答案(1)|浏览(183)

我的目标是在Docker容器中安装和运行Qt Creator。我从hub下载了Ubuntu镜像并运行了apt-get update && apt-get install ubuntu-server -y。(我将使用VcXsrv X Server来启动GUI)。我试图下载和构建Qt Creator使用此链接https://wiki.qt.io/Building_Qt_Creator_from_Git_on_Ubuntu_22.04作为指导信息,除了构建部分,其他每一步都很成功。
遗憾的是,从该网站下载二进制文件目前还不是一个选择。
运行该指南第6步的第一行返回了一个错误:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt6QmlCompilerPrivate/Qt6QmlCompilerPrivateTargets.cmake:108 (message):
  The imported target "Qt6::QmlCompilerPrivate_resources_1" references the
  file

     "/usr/lib/x86_64-linux-gnu/objects-None/QmlCompilerPrivate_resources_1/.rcc/qrc_builtins.cpp.o"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/x86_64-linux-gnu/cmake/Qt6QmlCompilerPrivate/Qt6QmlCompilerPrivateTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Qt6QmlCompilerPrivate/Qt6QmlCompilerPrivateConfig.cmake:60 (include)
  /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake:219 (find_package)
  src/plugins/qmldesigner/CMakeLists.txt:4 (find_package)

字符串
qtchooser返回:

qtchooser -print-env
QT_SELECT="qt6"
QTTOOLDIR="/usr/lib/qt6/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"


所有的文件似乎都在适当的位置,所以我真的不知道在哪里寻找解决方案。

thtygnil

thtygnil1#

不确定你是否得到了任何与此,但我有一个类似的问题,并解决了它检查出一个旧版本从仓库。例如v10.0.1

相关问题