Unable to Copy directory recursively
-
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.


What is the right format?
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
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.


What is the right format?
@mark-waston said in Unable to Copy directory recursively:
but it kept getting errors
Please post the errors
-
@mark-waston said in Unable to Copy directory recursively:
but it kept getting errors
Please post the errors
-
@mark-waston And this is all you get as error?
-
@mark-waston And this is all you get as error?
-
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.


What is the right format?
@mark-waston I have the same problem, did you fix it ?
-
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: 81c92cce94Regards,
-
Where is you project located? Where is the build folder located? Network drive?
-
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()
