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. Duplicate library entries in .pro/.pri file

Duplicate library entries in .pro/.pri file

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k 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.
  • T Offline
    T Offline
    Texan
    wrote on last edited by
    #1

    I need to enter the library in the makefile twice to resolve some linking issue. xx library requires an entry in the makefile to be added twice before and after some yy dependency library.
    Problem with QT pro file parsing mechanism to generate the makefile is, QT suppresses the duplicate entry and only single entry will be added to Makefile.
    Looking some inputs to avoid this and let QT add the library twice in the generated makefile.

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

      welcome to devnet

      [quote author="Texan" date="1370302149"]I need to enter the library in the makefile twice to resolve some linking issue. xx library requires an entry in the makefile to be added twice before and after some yy dependency library.
      Problem with QT pro file parsing mechanism to generate the makefile is, QT suppresses the duplicate entry and only single entry will be added to Makefile.[/quote]

      Did you use following entry in your .pro or .pri?
      @
      LIBS +=
      -lmyLib1
      -lmyLib2
      -lmyLib1
      @

      That does work in my case on win7 with qmake of version 4.8.4.

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Texan
        wrote on last edited by
        #3

        I am using entry in .pri. I tried even in .pro but it does not work.
        Issue I am observing is in Linux (Rhel).

        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