Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to Copy directory recursively

Unable to Copy directory recursively

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
9 Posts 5 Posters 937 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mark waston
    wrote on last edited by
    #1

    I can't set "Copy directory recursively" in build steps correctly, I want to copy some dll to the build dir, but it kept getting errors.
    b6d3a31c-04bd-4fd6-b88c-85cdc5081731-image.png
    76c06989-d26f-4b56-800c-0e335ad6ba84-image.png

    What is the right format?

    jsulmJ A 2 Replies Last reply
    1
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • M mark waston

      I can't set "Copy directory recursively" in build steps correctly, I want to copy some dll to the build dir, but it kept getting errors.
      b6d3a31c-04bd-4fd6-b88c-85cdc5081731-image.png
      76c06989-d26f-4b56-800c-0e335ad6ba84-image.png

      What is the right format?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mark-waston said in Unable to Copy directory recursively:

      but it kept getting errors

      Please post the errors

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • jsulmJ jsulm

        @mark-waston said in Unable to Copy directory recursively:

        but it kept getting errors

        Please post the errors

        M Offline
        M Offline
        mark waston
        wrote on last edited by
        #3

        @jsulm
        95d2dc93-459c-4e4b-b08e-c55c1ce1c951-image.png

        jsulmJ 1 Reply Last reply
        0
        • M mark waston

          @jsulm
          95d2dc93-459c-4e4b-b08e-c55c1ce1c951-image.png

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mark-waston And this is all you get as error?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • jsulmJ jsulm

            @mark-waston And this is all you get as error?

            M Offline
            M Offline
            mark waston
            wrote on last edited by
            #5

            @jsulm yes.Is there any problem with my qtcreator installation?

            1 Reply Last reply
            1
            • M mark waston

              I can't set "Copy directory recursively" in build steps correctly, I want to copy some dll to the build dir, but it kept getting errors.
              b6d3a31c-04bd-4fd6-b88c-85cdc5081731-image.png
              76c06989-d26f-4b56-800c-0e335ad6ba84-image.png

              What is the right format?

              A Offline
              A Offline
              Assyrion
              wrote on last edited by
              #6

              @mark-waston I have the same problem, did you fix it ?

              1 Reply Last reply
              1
              • A Offline
                A Offline
                Alex To
                wrote last edited by
                #7

                I have exactly the same issue.
                16:01:44: Error while building/deploying project dynamic-channel-qt (kit: Desktop Qt 6.10.1)
                16:01:44: When executing step "Copy directory recursively"

                Is there any idea when I can find why QTCreactor cannot do it?

                Product: Qt Creator 18.0.2
                Based on: Qt 6.10.1 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)
                Built on: Jan 23 2026 00:23:49
                From revision: 81c92cce94

                Regards,

                1 Reply Last reply
                0
                • jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote last edited by
                  #8

                  Where is you project located? Where is the build folder located? Network drive?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote last edited by
                    #9

                    Oh my, didn't know this was a thing!

                    I assume these settings are lost/not usually part of a versioning system?

                    @Alex-To do you use cmake?

                    I use this function in cmake:

                    function(copy_dir TARGET SRC_REL DEST_REL)
                        add_custom_command(TARGET ${TARGET} POST_BUILD
                          COMMAND ${CMAKE_COMMAND} -E make_directory "${DEPLOYMENT_PATH}/$<CONFIG>/${DEST_REL}"
                          COMMAND ${CMAKE_COMMAND} -E copy_directory
                                  "${CMAKE_CURRENT_SOURCE_DIR}/${SRC_REL}"
                                  "${DEPLOYMENT_PATH}/$<CONFIG>/${DEST_REL}"
                          VERBATIM
                        )
                      endfunction()
                    

                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved