[SOLVED] QMake appends 0 to target
-
Hi!
Suddenly Qmake appends a "0" to the target after i added the VERSION-Variable to my .pro file. The resulting .dll is named "asdmonitor0.dll".
Here's a snippet (.pro file):@QT+= widgets
QT+= serialportTARGET = asdmonitor
TEMPLATE = libVERSION = 0.9.0.0
CONFIG += c++11
QMAKE_CXXFLAGS += -std=c++11DESTDIR = $${LIB_DIRECTORY}
DLLDESTDIR = $${PLUGINDIR}SOURCES += asddatamonitor.cpp
HEADERS += asddatamonitor.h
@Any ideas on how to solve it and remove the 0 at the end?
Thank you!
-
Is there somewhere "TARGET_x":http://qt-project.org/doc/qt-5/qmake-variable-reference.html#target-x specified?
-
Hi!
I did a search on all projects. Nothing found...
Thank you!
-
Try to run qmake -d
Maybe it will tell you where it gets the zero. -
Hi,
Just an educated guess but, it might be that:
@VERSION = 0.9.0.0 <- trailing zero@
The version number is Major Minor Patch, with that last 0 you add another number.
-
Hi!
Removing the trailing zero did not help. Is there a special line in qmake -d which i should look at? There's so mutch information.
Thank you guys!
-
I would start to look for a TARGET in the output.
-
Problem solved. Used the right major, minor, rev and cleaned and rebuilt.