Unsolved QMAKE - VERSION adds number to build library file
-
I use VERSION to set the version number in application and libraries. When i build applications everything works fine. When building .dll files the first version number is added after the filename:
VERSION = 2.10.30.50 TEMPLATE = lib TARGET = mylib
compiles to "mylib2.dll"
any ideas how to change that?
-
You can make your own dll name function and give it to the QtPlugin.
like:
QString MyPlugin :: pluginName() const {
return "PlaugnNameWhateveryoulike";
} -
this looks like too much work for a simple problem like that .. why am i forced to a certain naming policy!?
-
@ck_ee
Hi,
For various reasons that's how windows' libraries ordinarily handle versioning (if you look the Qt 5 dlls, you'll see the same thing).
On Linux it works as expected, I get:libraryname.so.2.10.30
with tree additional symbolic links that point to the aforementioned shared object:
libraryname.so.2.10
libraryname.so.2
libraryname.so
If you want to manipulate the name of the target, use the
TARGET
variable.Kind regards.