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. Qmake and white spaces in TARGET, DESTDIR, etc...

Qmake and white spaces in TARGET, DESTDIR, etc...

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 6.8k 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
    aureshinite
    wrote on last edited by
    #1

    Apparently Qmake (or more precisely g++ ) is allergic to spaces. I have sub-projects which compile to a lib directory, and the main project use these libraries. So I want these projects to know the path to the destination directory. On Windows I have been using the BASH wildcard (DOCUME~1) to be able to compile, but I need something better. My code will be used by lot of people at the office and I want to avoid the memo "NO SPACE IN PATH!!".

    ps: I use Qmake 2.01a and I tried (without success of course)

    • $$quotes()

    • $$escape_expand()

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      Spaces in qmake are (at least in my experience) handled differently per setting. I've had the most luck with good old trial and error. Oftentimes you have to multiple escape characters. Like for example:
      @\\ @
      Or
      @\\\ @

      I've also had luck with quoting "\\ " and other techniques. It has often proved useful to have a look at the generated Makefile and at the actual command produced at the command line. Check if it is what you would have typed in in that case, then add or remove backslashes or quotes as necessary. If that all doesn't work, I'm afraid you'll have to stick to the "No spaces" mantra.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      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