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] How to prevent QT library project generating so, so.1 so.1.0 etc.....
Forum Updated to NodeBB v4.3 + New Features

[Solved] How to prevent QT library project generating so, so.1 so.1.0 etc.....

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 3.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.
  • X Offline
    X Offline
    xchg.ca
    wrote on last edited by
    #1

    I have my library project and when build it it creates so, so.1 so.1.0 so.1.0.0 files (on windows)
    It is annoying I would like to have only .so
    I bet it is some sort of qmake setting, I just cannot figure out what is it.

    Thank you.

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

      Hi,

      There's something not quite clear here, you are running windows and get so files when building a library ?

      What version of Qt are you using ?
      Can you show your pro file ?

      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
      • X Offline
        X Offline
        xchg.ca
        wrote on last edited by
        #3

        There is nothing wrong with building libraries for ARMLEV7 on windows :)

        built for QNX, QT 5.3.1, QT Creator 3.1.2

        Here is my pro file, it super simple:

        @# The name of the library
        TARGET = mylib

        Compile a .so, not a binary

        TEMPLATE = lib

        Libraries we need

        LIBS += -L"$${FRAMEWORK_BUILD_LIBS}" -lqcore

        QT libraries we need

        QT += core

        HEADERS +=
        mylib.h

        SOURCES +=
        mylib.cpp@

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

          No, indeed, there's not, but it's an information that you should have mentioned in the first place ;)

          IIRC, you can add CONFIG += plugin to avoid the numbering but it's not really good practice.

          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
          • X Offline
            X Offline
            xchg.ca
            wrote on last edited by
            #5

            [quote author="SGaist" date="1408464985"]
            IIRC, you can add CONFIG += plugin to avoid the numbering but it's not really good practice.[/quote]
            Yes, you are right, next time will add details for sure!

            This method sounds like a bit of workaround/hack... interesting what will be an implication of using such config option on my library?

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xchg.ca
              wrote on last edited by
              #6

              Just tested and it worked, thank you !!!! Size of library was not changed from the previous setup so I assume there is no implications.

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

                It is a workaround because you are doing something that's not correct ;)

                Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                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
                • X Offline
                  X Offline
                  xchg.ca
                  wrote on last edited by
                  #8

                  Sure! But is that the only way ? It is kind of surprising that there is no way to modify it properly, why it generate all those files at first place 4 times ? Can I do something in mkspecs or qmake.conf ?

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

                    Like I said, you are going against linux standards for library handling

                    "Here":http://www.ibm.com/developerworks/linux/library/l-shlibs/index.html are more informations about that

                    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

                    • Login

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