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. [SOLVED] QMake appends 0 to target
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QMake appends 0 to target

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 1.8k 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.
  • jensen82J Offline
    jensen82J Offline
    jensen82
    wrote on last edited by
    #1

    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+= serialport

    TARGET = asdmonitor
    TEMPLATE = lib

    VERSION = 0.9.0.0

    CONFIG += c++11
    QMAKE_CXXFLAGS += -std=c++11

    DESTDIR = $${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!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Is there somewhere "TARGET_x":http://qt-project.org/doc/qt-5/qmake-variable-reference.html#target-x specified?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • jensen82J Offline
        jensen82J Offline
        jensen82
        wrote on last edited by
        #3

        Hi!

        I did a search on all projects. Nothing found...

        Thank you!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          Try to run qmake -d
          Maybe it will tell you where it gets the zero.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • jensen82J Offline
              jensen82J Offline
              jensen82
              wrote on last edited by
              #6

              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!

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andreyc
                wrote on last edited by
                #7

                I would start to look for a TARGET in the output.

                1 Reply Last reply
                0
                • jensen82J Offline
                  jensen82J Offline
                  jensen82
                  wrote on last edited by
                  #8

                  Problem solved. Used the right major, minor, rev and cleaned and rebuilt.

                  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