Can not copy the file to another folder by qmake
-
os : win7 64bits
Qt : 5.2.1
compiler : mingw4.8.pro
@
#-------------------------------------------------Project created by QtCreator 2014-03-08T00:42:53
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = smsExp
TEMPLATE = appwin32 {
DESTDIR_WIN = c:/wamp/www/bridge
DESTDIR_WIN ~= s,/,\,g
QMAKE_POST_LINK += $${QMAKE_COPY} $$PWD/main.cpp $${DESTDIR_WIN}
}SOURCES += main.cpp
MainWindow.cppHEADERS += MainWindow.hpp
FORMS += MainWindow.ui
@
What kind of errors do I make?
-
Hi,
Are you sure your DESTDIR_WIN is valid ? What does the compile output say ? Also check the content of the Makefile to see whether the line is correct
-
[quote author="SGaist" date="1394318191"]Hi,
Are you sure your DESTDIR_WIN is valid ? What does the compile output say ? Also check the content of the Makefile to see whether the line is correct[/quote]
No suspicious message(for me)
@
13:43:37: Running steps for project smsExp...
13:43:37: Configuration unchanged, skipping qmake step.
13:43:38: Starting: "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe"
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/Qt/experiment_apps/build-smsExp-Desktop_Qt_5_2_1_MinGW_32bit-Release'
mingw32-make[1]: Nothing to be done for 'first'.
mingw32-make[1]: Leaving directory 'C:/Qt/experiment_apps/build-smsExp-Desktop_Qt_5_2_1_MinGW_32bit-Release'
13:43:38: The process "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
13:43:40: Elapsed time: 00:02.
@I am sure the DESTDIR_WIN is valid
" DESTDIR_WIN":https://farm8.staticflickr.com/7371/13026374674_394d93c88a_c.jpg
-
Looks like there's no linking step, so your copy won't be executed