[Qt-creator] Custom build step - copy dll

Daniel Teske daniel.teske at nokia.com
Wed Mar 4 11:50:42 CET 2009


On Tuesday 03 March 2009 22:36:11 ext Adam Kövári wrote:
> Hello,
> i've created one Qt GUI Application and one C++ library. I need to copy
> dll from the library directory after it's built to gui application
> directory. I've created Custom process step with command:
>
> copy db2lib.dll ..\..\db2client\debug\db2lib.dll /y
>
> Working directory is set to library directory.
>
> This setting fails with error:
>
> Could not start process copy db2lib.dll ..\..\db2client\debug\db2lib.dll /y
> Error while building project db2lib
> When executing build step 'Copy'
I guess you are on windows? You probably need to start the command with 
cmd.exe /k copy ..., since copy is a command shell built-in.
I'm not 100% sure about the /k, try cmd /? 

daniel




More information about the Qt-creator-old mailing list