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. static Extra characters after test expression.

static Extra characters after test expression.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.6k Views 2 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.
  • Mahesh SM Offline
    Mahesh SM Offline
    Mahesh S
    wrote on last edited by Mahesh S
    #1

    if(exists($${d}/libGLU.a) && static) {
    LIBS -= -lGLU;
    LIBS += $${d}/libGLU.a
    }

    Extra characters after test expression

    1 Reply Last reply
    -1
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi, welcome to the Qt forum! What's your question?

      Mahesh SM 1 Reply Last reply
      0
      • ? A Former User

        Hi, welcome to the Qt forum! What's your question?

        Mahesh SM Offline
        Mahesh SM Offline
        Mahesh S
        wrote on last edited by Mahesh S
        #3

        @Wieland

        for(d,gludirs) {
        if(exists(${d}/libGLU.a) && static) {
        LIBS -= -lGLU;
        LIBS += ${d}/libGLU.a
        }
        }

        Extra characters after test expression error i am gettig in the 1st line

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

          Hi,

          The double & is the cause. A .pro file is not c++ ;)

          Did you add static to CONFIG ?

          If so the condition should rather be:

          if(exists(${d}/libGLU.a)):CONFIG(static) {
          

          Hope it helps

          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
          1
          • Mahesh SM Offline
            Mahesh SM Offline
            Mahesh S
            wrote on last edited by
            #5

            This will help in windows or linux ?

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

              The technique is valid for all operating systems supported.

              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
              1

              • Login

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