Remove the VERSION variable and store the version in the library using regular means (there is a call in WinAPI to do that).
Remove the VERSION variable and store the version in the library using regular means (there is a call in WinAPI to do that).
Thanks for the replies. Like I mentioned before, if I remove the VERSION parameter, the problem goes away, but I lose the version number which can be seen in the file properties. This numbering is not part of any WinAPI - it's just static metadata in the file.
I did notice the following two parameters in the docs which sounded promising, but setting them didn't seem to change the results. I wonder - is the lib template for qmake hard-coded, or is it defined in a file somewhere?
TARGET_x
This variable specifies the target's extension with a major version number. The value of this variable is typically handled by qmake or qmake.conf and rarely needs to be modified.
TARGET_x.y.z
This variable specifies the target's extension with version number. The value of this variable is typically handled by qmake or qmake.conf and rarely needs to be modified.
Bla bla bla
Add this to any of your implementation files:
where:
Qt Code:
#define EXPORT_SIGNATURE(a,b,c,d) \ int __getSignature__() \ {\ return (a << 24 | b << 16 | c << 8 | d);\ }To copy to clipboard, switch view to plain text mode
Adding the code above didn't seem to do anything for the file version info when I right-click the properties of my DLL. I would be really surprised if Windows would execute a function such as getSignature in the DLL to get the file version info - that would be a great way to execute malicious code. I can't seem to find anything regarding getSignature on the web either.
add this to your .pro file:
http://qt-project.org/faq/answer/how...my_application
You can install the version information resources, the stuff you see in Windows Explorer, along with your program icon etc. using a standard Windows RC file VERSIONINFO
There are even examples in these forums: http://www.qtcentre.org/threads/47693
Bookmarks