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. how to give the multiple lib paths in qt.config file
Forum Updated to NodeBB v4.3 + New Features

how to give the multiple lib paths in qt.config file

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.1k 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.
  • R Offline
    R Offline
    Rajashekara V
    wrote on last edited by
    #1

    hii all,
    how to give the multiple lib paths in qt.config file
    thx

    jsulmJ 1 Reply Last reply
    1
    • R Rajashekara V

      hii all,
      how to give the multiple lib paths in qt.config file
      thx

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Rajashekara-V I guess you separate the different folders using : on Linux/Mac and ; on Windows?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        HI
        I wonder if that is supported.
        At least the https://doc.qt.io/qt-5/qlibraryinfo.html
        provides no way to get a list of locations.

        So im not sure Qt will get it right if you add multiple but
        please try as @jsulm suggests and see if it gets it :)

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @Rajashekara-V I guess you separate the different folders using : on Linux/Mac and ; on Windows?

          R Offline
          R Offline
          Rajashekara V
          wrote on last edited by Rajashekara V
          #4

          hii @jsulm
          i have two saparate library are located at different place on windows system ,i want to give to libs paths in qt.conf files .
          how can i give the two lib paths ?

          i have lib one located at C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86 ,
          second one located at D:/local/Qt_5.12.2_VC15T/lib
          for example :=

          Libraries = ?

          jsulmJ B 2 Replies Last reply
          0
          • R Rajashekara V

            hii @jsulm
            i have two saparate library are located at different place on windows system ,i want to give to libs paths in qt.conf files .
            how can i give the two lib paths ?

            i have lib one located at C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86 ,
            second one located at D:/local/Qt_5.12.2_VC15T/lib
            for example :=

            Libraries = ?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Rajashekara-V As I said: try to use the separator.

            Libraries = C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86;D:/local/Qt_5.12.2_VC15T/lib
            

            I'm wondering why you need these paths actually? Why don't you do a proper deployment of your app instead?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply
            1
            • R Rajashekara V

              hii @jsulm
              i have two saparate library are located at different place on windows system ,i want to give to libs paths in qt.conf files .
              how can i give the two lib paths ?

              i have lib one located at C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86 ,
              second one located at D:/local/Qt_5.12.2_VC15T/lib
              for example :=

              Libraries = ?

              B Offline
              B Offline
              Bonnie
              wrote on last edited by Bonnie
              #6

              @Rajashekara-V said in how to give the multiple lib paths in qt.config file:

              i have lib one located at C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86 ,
              second one located at D:/local/Qt_5.12.2_VC15T/lib

              These are the paths for .lib files, they should be used in linking, not for qt.conf which is used by QLibraryInfo in runtime...

              R 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Rajashekara-V As I said: try to use the separator.

                Libraries = C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86;D:/local/Qt_5.12.2_VC15T/lib
                

                I'm wondering why you need these paths actually? Why don't you do a proper deployment of your app instead?

                R Offline
                R Offline
                Rajashekara V
                wrote on last edited by Rajashekara V
                #7

                Hii @jsulm I tried but ";" semicolon separate not working , qt kit is look the libs path of some other deferent dir.

                1 Reply Last reply
                0
                • B Bonnie

                  @Rajashekara-V said in how to give the multiple lib paths in qt.config file:

                  i have lib one located at C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86 ,
                  second one located at D:/local/Qt_5.12.2_VC15T/lib

                  These are the paths for .lib files, they should be used in linking, not for qt.conf which is used by QLibraryInfo in runtime...

                  R Offline
                  R Offline
                  Rajashekara V
                  wrote on last edited by
                  #8

                  hii @Bonnie ,
                  i create the qt.conf file and in this file ,i wrote Libraries variable and adding the two libs path ,i want look the qt kit given two different libs path while compile time small program .

                  B 1 Reply Last reply
                  0
                  • R Rajashekara V

                    hii @Bonnie ,
                    i create the qt.conf file and in this file ,i wrote Libraries variable and adding the two libs path ,i want look the qt kit given two different libs path while compile time small program .

                    B Offline
                    B Offline
                    Bonnie
                    wrote on last edited by Bonnie
                    #9

                    @Rajashekara-V
                    Again, windows sdk lib path is not supposed to be in any qt.conf. I don't know why are you trying to do that.
                    In Qt creator, a MSVC kit should get the vc&windows lib paths from enviroment variables after its compiler's initialization, not from qt.conf.

                    1 Reply Last reply
                    1

                    • Login

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