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. Colon after Windows drive letter confuses Make
Forum Updated to NodeBB v4.3 + New Features

Colon after Windows drive letter confuses Make

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 3.0k 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.
  • G Offline
    G Offline
    Gourmand
    wrote on last edited by
    #1

    Need release application created in C:\Program Files\app_dir instead of default release dir. I wrote in .pro file:

    @CONFIG(release,debug|release): DESTDIR += "$$(ProgramFiles)\app_dir"@

    to use system defined variable ProgramFiles. But the Make tells an error: Multiplie target patterns. ProgramFiles opened by qmake in Makefile to line "C:\Program Files\app_dir" and Make confuses with comma after drive letter. It interprets comma as targets delimiter. Probably it is possible force Make get comma as common character using back slash. But if I wrote DESTDIR += "C:\Program Files\program_dir" then qmake replaces all backslashes to "C/:/Program Files/program_dir". Of course this doesn't work too.

    Any suggestions how to properly pass comma in path from project file to Make?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Not sure which comma you're referring to. Do you rather mean the colon ":" ?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gourmand
        wrote on last edited by
        #3

        sorry... colon of course... English is not my native, just mixed words

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          Which toolchain do you use? MinGW? If yes, which Qt version? There have been some issues regarding spaces in paths in the MinGW makefile generator. Those that I stumbled upon have been fixed in 4.8.1.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • M Offline
            M Offline
            miroslav
            wrote on last edited by
            #5

            The forward slashes should actually work on today's Windows systems. QMake uses them internally, too.

            Mirko Boehm | mirko@kde.org | KDE e.V.
            FSFE Fellow
            Qt Certified Specialist

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Gourmand
              wrote on last edited by
              #6

              agian - this is NOT about slashes

              problem is with colon instead

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                I would open a bug report against qmake here.

                http://www.catb.org/~esr/faqs/smart-questions.html

                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