Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMAKE - VERSION adds number to build library file
Forum Updated to NodeBB v4.3 + New Features

QMAKE - VERSION adds number to build library file

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ck_eeC Offline
    ck_eeC Offline
    ck_ee
    wrote on last edited by ck_ee
    #1

    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?

    Ni.SumiN kshegunovK 2 Replies Last reply
    0
    • ck_eeC ck_ee

      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?

      Ni.SumiN Offline
      Ni.SumiN Offline
      Ni.Sumi
      wrote on last edited by
      #2

      @ck_ee

      You can make your own dll name function and give it to the QtPlugin.
      like:
      QString MyPlugin :: pluginName() const {
      return "PlaugnNameWhateveryoulike";
      }

      1 Reply Last reply
      1
      • ck_eeC Offline
        ck_eeC Offline
        ck_ee
        wrote on last edited by ck_ee
        #3

        this looks like too much work for a simple problem like that .. why am i forced to a certain naming policy!?

        1 Reply Last reply
        0
        • ck_eeC ck_ee

          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?

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by kshegunov
          #4

          @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.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          3
          • E Offline
            E Offline
            Elgerton
            wrote on last edited by
            #5

            Use
            CONFIG += skip_target_version_ext

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved