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.
  • C Offline
    C Offline
    ck_ee
    wrote on 6 Jul 2016, 15:45 last edited by ck_ee 7 Jun 2016, 15:46
    #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?

    N K 2 Replies Last reply 6 Jul 2016, 16:28
    0
    • C ck_ee
      6 Jul 2016, 15:45

      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?

      N Offline
      N Offline
      Ni.Sumi
      wrote on 6 Jul 2016, 16:28 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
      • C Offline
        C Offline
        ck_ee
        wrote on 7 Jul 2016, 07:25 last edited by ck_ee 7 Jul 2016, 08:11
        #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
        • C ck_ee
          6 Jul 2016, 15:45

          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?

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 8 Jul 2016, 17:05 last edited by kshegunov 7 Aug 2016, 17:07
          #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 14 Oct 2024, 14:27 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