Coder Social home page Coder Social logo

[qttools] Install error. about vcpkg HOT 6 CLOSED

reitowo avatar reitowo commented on July 22, 2024
[qttools] Install error.

from vcpkg.

Comments (6)

Neumann-A avatar Neumann-A commented on July 22, 2024

can you give me an expanded trace with --trace-expand?

Probably an easy fix by adjusting the script

from vcpkg.

reitowo avatar reitowo commented on July 22, 2024

--trace-expand which command this arg is apply to?

-- Running Qt deploy tool for E:/VTSLink/Client/VTSLink/out/build/x64-RelWithDebInfo/bin/VTSLink.exe in working directory 'E:/VTSLink/Client/VTSLink/out/install/x64-RelWithDebInfo'
'E:/VTSLink/Client/VTSLink/out/build/x64-RelWithDebInfo/vcpkg_installed/x64-windows/tools/Qt6/bin/windeployqt.exe' 'E:/VTSLink/Client/VTSLink/out/build/x64-RelWithDebInfo/bin/VTSLink.exe' '--dir' '.' '--libdir' 'bin' '--plugindir' 'plugins' '--qml-deploy-dir' 'qml' '--translationdir' 'translations' '--force' '--qtpaths' 'E:/VTSLink/Client/VTSLink/out/build/x64-RelWithDebInfo/vcpkg_installed/x64-windows/bin/qtpaths.exe'
Error: "E:\VTSLink\Client\VTSLink\out\build\x64-RelWithDebInfo\vcpkg_installed\x64-windows\bin\qtpaths.exe" does not exist.
CMake Error at vcpkg_installed/x64-windows/share/Qt6Core/Qt6CoreDeploySupport.cmake:528 (message):
  Executing
  E:/VTSLink/Client/VTSLink/out/build/x64-RelWithDebInfo/vcpkg_installed/x64-windows/tools/Qt6/bin/windeployqt.exe
  failed: 1
Call Stack (most recent call first):
  .qt/deploy_VTSLink_bfe1574f6c.cmake:5 (qt6_deploy_runtime_dependencies)
  cmake_install.cmake:58 (include)

vcpkg.json

{
  "name": "vts-link-client",
  "license": "GPL-2.0-only",
  "dependencies": [
    {
      "name": "libdatachannel",
      "default-features": true,
      "features": [ "ws", "stdcall" ]
    },
    {
      "name": "ffmpeg",
      "default-features": true,
      "features": [ "nvcodec", "qsv", "amf" ]
    },
    {
      "name": "grpc",
      "default-features": true,
      "features": [ "codegen" ]
    },
    "amd-amf",
    "mfx-dispatch",
    "protobuf",
    "concurrentqueue",
    "crashpad",
    "libqrencode",
    "detours",
    "pthreads",
    {
      "name": "spout2",
      "default-features": true,
      "features": [ "dx" ]
    },
    {
      "name": "qtbase",
      "default-features": false,
      "features": [
        "gui",
        "network",
        "thread",
        "widgets",
        "png"
      ]
    },
    "qttools",
    "qttranslations",
    "directxtk",
    {
      "name": "opencv2",
      "default-features": true,
      "features": [ "png" ]
    }
  ],
  "overrides": [
    {
      "name": "openssl",
      "version-string": "1.1.1m#2"
    },
    {
      "name": "qtbase",
      "version-string": "6.7.0"
    },
    {
      "name": "qttools",
      "version-string": "6.7.0#1"
    },
    {
      "name": "qttranslations",
      "version-string": "6.7.0"
    }
  ],
  "supports": "windows",
  "vcpkg-configuration": {
    "default-registry": {
      "kind": "git",
      "repository": "https://github.com/cnSchwarzer/vcpkg",
      "baseline": "bee2447e324d4a59fe460640683adbd2df3d8373",
      "reference": "reito"
    },
    "registries": [
    ]
  }
}

from vcpkg.

Neumann-A avatar Neumann-A commented on July 22, 2024

Patch 1:

diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake
index 8a0d07feac..0e6a720c20 100644
--- a/src/corelib/Qt6CoreMacros.cmake	
+++ b/src/corelib/Qt6CoreMacros.cmake
@@ -2977,13 +2977,15 @@ function(_qt_internal_setup_deploy_support)
     if(CMAKE_HOST_WIN32)
         if(CMAKE_CROSSCOMPILING)
             set(qt_paths_ext ".bat")
+        elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
+            set(qt_paths_ext ".debug.bat")
         else()
             set(qt_paths_ext ".exe")
         endif()
     else()
         set(qt_paths_ext "")
     endif()
-    set(target_qtpaths_path "${QT6_INSTALL_PREFIX}/${QT6_INSTALL_BINS}/qtpaths${qt_paths_ext}")
+    set(target_qtpaths_path "${QT6_INSTALL_PREFIX}/tools/Qt6/bin/qtpaths${qt_paths_ext}")
 
     file(GENERATE OUTPUT "${QT_DEPLOY_SUPPORT}" CONTENT
 "cmake_minimum_required(VERSION 3.16...3.21)

from vcpkg.

Neumann-A avatar Neumann-A commented on July 22, 2024

it also trying to find all debug dlls under vcpkg_installed/x64-windows/bin instead of vcpkg_installed/x64_windows/debug/bin.

For debug libs it needs to use windeployqt.debug.bat. The target should be setup accordingly. Did you call find_package with CoreTools ?

from vcpkg.

Neumann-A avatar Neumann-A commented on July 22, 2024

And for testing you can just manually edit the installed tree with the patch above. That avoids reinstalling all of qt.

from vcpkg.

reitowo avatar reitowo commented on July 22, 2024

The patch works! Thanks. Would you submit a PR?

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.