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. Why it is generating multiple library files instead of single file?
Forum Updated to NodeBB v4.3 + New Features

Why it is generating multiple library files instead of single file?

Scheduled Pinned Locked Moved Solved General and Desktop
qdlllibpro fileqt 5.13.1configure
5 Posts 3 Posters 925 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.
  • Y Offline
    Y Offline
    Yash001
    wrote on 27 Sept 2019, 19:20 last edited by Yash001
    #1

    Hello I am using Qt 5.13.0 and MacOs Mojave version 10.14.6.
    I am trying to create share library for other developer. I would like create single library file. How can I generate single single library file instead of 4 library files, so that other developer can add that single library into other them project.

    Here my .pro file

    # ----------------------------------------------------
    # This file is generated by the Qt Visual Studio Tools.
    # ------------------------------------------------------
    
    TEMPLATE = lib
    TARGET = SquidstatLibrary
    DESTDIR = ../../out/Release/squidstatelibrary
    QT += core
    CONFIG += release shared dll
    DEFINES += WIN64 SQUIDSTATELIBRARY_LIB
    INCLUDEPATH += ./../../SquidStat \
        ./GeneratedFiles \
        . \
        ./GeneratedFiles/Release \
        ./../../global_typedefs
    
    DEPENDPATH += .
    MOC_DIR += ./GeneratedFiles/release
    OBJECTS_DIR += release
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles
    include(SquidStateLibrary.pri)
    

    outfiles:
    libSquidstatLibrary.1.0.0.dylib
    libSquidstatLibrary.1.0..dylib
    libSquidstatLibrary.1.dylib
    libSquidstatLibrary.dylib

    Try to create
    Single Library file like:
    libSquidstatLibrary.dylib

    I know one way to generate single file. If I will make change in .pro file like
    CONFIG += release shared dll plugin then it is only generating single file libSquidstatLibrary.dylib

    I am not creating plugin. I want to create share library, Is it fine to add plugin in CONFIG for generating single library file?

    if not then which change is require in .pro file?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 Sept 2019, 19:53 last edited by
      #2

      Hi,

      It's normal to have these files. If you take closer look at them you'll see that all but one are symbolic links.

      Why do you want only a single file ?

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

      Y 1 Reply Last reply 27 Sept 2019, 20:17
      2
      • S SGaist
        27 Sept 2019, 19:53

        Hi,

        It's normal to have these files. If you take closer look at them you'll see that all but one are symbolic links.

        Why do you want only a single file ?

        Y Offline
        Y Offline
        Yash001
        wrote on 27 Sept 2019, 20:17 last edited by Yash001
        #3

        @SGaist said in Why it is generating multiple library files instead of single file?:

        If you take closer look at them you'll see that all but one are symbolic links.

        Yes I saw that things in compiler output.

        Here My compiler output data:

        ln -s libSquidstatLibrary.1.0.0.dylib libSquidstatLibrary.dylib
        ln -s libSquidstatLibrary.1.0.0.dylib libSquidstatLibrary.1.dylib
        ln -s libSquidstatLibrary.1.0.0.dylib libSquidstatLibrary.1.0.dylib
        
        

        @SGaist said in Why it is generating multiple library files instead of single file?:

        Why do you want only a single file ?

        I am trying to create the single files because of if user want to use libSquidstatLibrary library then they need to link only single library file instead for 4 files.

        add also, I am trying to make single file similar to windows platform, so that I require to deploy only single file all time in future.

        I am curious to know if all 3 library files are internally link to libSquidstatLibrary.1.0.0.dylib then Is it fine if user add only one file into them project libSquidstatLibrary.1.0.0.dylib

        Is It fine if I will add in plugin in CONFIG ?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 27 Sept 2019, 20:56 last edited by
          #4

          @Yash001 said in Why it is generating multiple library files instead of single file?:

          then they need to link only single library file instead for 4 files.

          Can you explain this a little bit more - why does your user has to link to all 4 files, esp. when three of them are (correct) symlinks?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          Y 1 Reply Last reply 27 Sept 2019, 21:46
          3
          • C Christian Ehrlicher
            27 Sept 2019, 20:56

            @Yash001 said in Why it is generating multiple library files instead of single file?:

            then they need to link only single library file instead for 4 files.

            Can you explain this a little bit more - why does your user has to link to all 4 files, esp. when three of them are (correct) symlinks?

            Y Offline
            Y Offline
            Yash001
            wrote on 27 Sept 2019, 21:46 last edited by
            #5

            @Christian-Ehrlicher said in Why it is generating multiple library files instead of single file?:

            why does your user has to link to all 4 files, esp. when three of them are (correct) symlinks?

            Sorry for silly question. I misunderstood about symbolic link. I got my answer user need to add libSquidstatLibrary.1.0.0.dylib file.

            Thank you.

            1 Reply Last reply
            1

            4/5

            27 Sept 2019, 20:56

            • Login

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