Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. creating the library file
QtWS25 Last Chance

creating the library file

Scheduled Pinned Locked Moved Solved Independent Developers
6 Posts 2 Posters 870 Views
  • 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.
  • V Offline
    V Offline
    volass
    wrote on last edited by
    #1

    Hi all.

    I am working on medical product development in which QT Gui is used with the in-built QT Library.
    I'm concerned about creating the lib.a file that can be from the current project directory and further same library can be used in the other project.
    Also, it needs to be build automatically when we build our main project.
    To achieve the above task I tried and followed many steps available online but somehow I am unable to generate the same requirement.
    I tried to add the library project-pro file in the main project's pro file, using the "include()", "SUBDIRS", few other steps as mentioned in the online steps.

    I request you to kindly support and share the proper build steps for creating the library file.

    All the support and response will be highly appreciated.

    Thanks

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

      Hi,

      The whole project should start as a SUBDIRS project and then each item should be an application or a library.

      You seem to try to start from an application template and force it into a SUBDIRS which is wrong.

      There's a wiki page about the subject.

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

      V 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        The whole project should start as a SUBDIRS project and then each item should be an application or a library.

        You seem to try to start from an application template and force it into a SUBDIRS which is wrong.

        There's a wiki page about the subject.

        V Offline
        V Offline
        volass
        wrote on last edited by
        #3

        @SGaist
        Hi,

        Thanks alot for the quick on the post, I am currently working on the same in order to build the project in the proper sequence and with it proper dependencies.

        Thanks

        1 Reply Last reply
        0
        • V Offline
          V Offline
          volass
          wrote on last edited by
          #4

          @SGaist

          Can we copy the generated the library.a file to specific location(path) after building it successfully.

          (as I every time copy the new generated library.a file to the other location, and it will good to go if we can add some command in the project - ".pro" file through which it copy and replace the library.a file on specific location in each new build or changes.)

          It will great of yours if you can share the steps to do it in the QT for linux environment.

          SGaistS 1 Reply Last reply
          0
          • V volass

            @SGaist

            Can we copy the generated the library.a file to specific location(path) after building it successfully.

            (as I every time copy the new generated library.a file to the other location, and it will good to go if we can add some command in the project - ".pro" file through which it copy and replace the library.a file on specific location in each new build or changes.)

            It will great of yours if you can share the steps to do it in the QT for linux environment.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            If you mean that you want it to be located in a central place within the subdirs build tree, you can use DESTDIR = $$OUT_PWD/../lib. Then in the projects using that library, you can use something like: LIBS += -L$$OUT_PWD/../lib to add that destination dir to the folder list to search the library for.

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

            V 1 Reply Last reply
            1
            • SGaistS SGaist

              If you mean that you want it to be located in a central place within the subdirs build tree, you can use DESTDIR = $$OUT_PWD/../lib. Then in the projects using that library, you can use something like: LIBS += -L$$OUT_PWD/../lib to add that destination dir to the folder list to search the library for.

              V Offline
              V Offline
              volass
              wrote on last edited by
              #6

              @SGaist
              Thanks for the responses !!!!

              Your all inputs helped me to bring output as needed in the development.

              1 Reply Last reply
              0
              • SGaistS SGaist has marked this topic as solved on

              • Login

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