PDA

View Full Version : QMAKE_POST_LINK error, does not find the file I want to copy to .?



tonnot
28th April 2011, 10:36
I have at my .pro file the next :

CONFIG += designer plugin debug_and_release
TARGET = $$qtLibraryTarget(apcplugin)
TEMPLATE = lib
....
QMAKE_POST_LINK += copy $$TARGET d:/I_DESARROLLO/c++ok/MY_DLL/apcplugin.dll
I have tried some combinations but it never works.
( this also does not work QMAKE_POST_LINK += copy d:/I_DESARROLLO/c++ok
/MY_DLLd:/Qt/plugins/designer/apcplugin.dll )

And if I delete the dll file to create , to force a 'fresh' or new creation I have the next error :
mingw32-make[1]: *** [D:\Qt\plugins\designer\apcplugin.dll] Error 1
mingw32-make: *** [release] Error 2
QMAKE_POST_LINK does the work after the file is built ?
Any idea ?
Thanks