Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake: Conditional "g++:" does not work

Qmake: Conditional "g++:" does not work

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    @ g++ {
    FULLLIBNAME=$$join(TARGET,,,".a")
    PRLNAME=$$join(TARGET,,,".prl")
    }@

    does not work, whereas

    @ linux-g++ {
    FULLLIBNAME=$$join(TARGET,,,".a")
    PRLNAME=$$join(TARGET,,,".prl")
    }@

    does. Why? I would need the same behavior regardless of OS.

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

      Hi,

      AFAIK, g++ is not available on all OS but you can use *-g++

      Why do you need the prl name ? These should be handled for you

      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
      • A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        Thanks! The '*' should come in handy.

        Why I need the prl file? For my post-link copy command, which doesn't work anyway ;-)

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

          You're welcome !

          Check in the MakeFiles to see if you are not missing something like carriage return/line feed

          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
          • A Offline
            A Offline
            Asperamanca
            wrote on last edited by
            #5

            As posted in the other thread, the makefile only moves the output file to the DESTDIR after my post_link copy command is executed. File not there yet, copy fails. But if I can rely on that, I can circumvent that with an ugly hack.

            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