April 16, 2011

WilliamU WilliamU
Lab Rat
63 posts

Copying supporting DLL to DESTDIR

 

Hi, I am trying (in vain) to copy my project’s supporting DLLs to the DESTDIR.

I have in my .pro file

  1. debug {
  2.     DESTDIR = C:/Users/william/Perforce/Build/Executables/x64/$$TARGET/Debug
  3.     POST_TARGETDEPS += C:/Users/william/Perforce/Build/Libraries/QT/Debug/Input.dll
  4.     POST_TARGETDEPS += C:/Users/william/Perforce/Build/Libraries/QT/Debug/Output.dll
  5.     for(dll, POST_TARGETDEPS){QMAKE_POST_LINK = copy "$$dll" "$$DESTDIR/"}
  6. }

My executable arrives correctly but I get the following error build
xilink: executing ‘link’ copy C:/Users/william/Perforce/Build/Libraries/QT/Debug/Output.dll C:/Users/william/Perforce/Build/Executables/x64/Monitor/Debug/
The syntax of the command is incorrect.

Does anyone have any suggestions.

 Signature 

Regards,

William

0 replies

 
  ‹‹ Tip: ’Enclose in QLatin1String’      [Solved] qtc-qmldump - How to use it the right way? ››

You must log in to post a reply. Not a member yet? Register here!