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. Space in QT install path on MacOS
Forum Updated to NodeBB v4.3 + New Features

Space in QT install path on MacOS

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 3 Posters 1.5k Views 3 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
    Torsten S.
    wrote on last edited by Torsten S.
    #1

    Hi,

    I have installed QTCreator on Mac in a path containing a space (/Volumes/Macintosh HD/). Now I have a Problem with building my application, because qmake escapes the space twice for the clang-lib (all other lib paths are properly escaped):

    ... -F/Volumes/Macintosh\\ HD/QTCreator/5.7/clang_64/lib -F/Volumes/Macintosh\ HD/...

    which gives an error message when linking:

    clang: error: no such file or directory: 'HD/QTCreator/5.7/clang_64/lib'

    Is there a way to fix this aside from not installing QTCreator in a path without spaces?

    Best regards,
    Torsten

    edit: had to escape the '\'

    A 1 Reply Last reply
    0
    • T Torsten S.

      Hi,

      I have installed QTCreator on Mac in a path containing a space (/Volumes/Macintosh HD/). Now I have a Problem with building my application, because qmake escapes the space twice for the clang-lib (all other lib paths are properly escaped):

      ... -F/Volumes/Macintosh\\ HD/QTCreator/5.7/clang_64/lib -F/Volumes/Macintosh\ HD/...

      which gives an error message when linking:

      clang: error: no such file or directory: 'HD/QTCreator/5.7/clang_64/lib'

      Is there a way to fix this aside from not installing QTCreator in a path without spaces?

      Best regards,
      Torsten

      edit: had to escape the '\'

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @Torsten-S. Can I see the pro file? Also you could try using quotes instead of escaping the spaces.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

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

        Hi and welcome to devnet,

        The only workaround currently AFAIK is to use a symlink without space.

        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
        • A ambershark

          @Torsten-S. Can I see the pro file? Also you could try using quotes instead of escaping the spaces.

          T Offline
          T Offline
          Torsten S.
          wrote on last edited by
          #4

          Hi ambershark and SGaist,

          thanks for the answers. I have been unable to read this forum for a while so I could not reply sooner.

          @ambershark said in Space in QT install path on MacOS:

          @Torsten-S. Can I see the pro file? Also you could try using quotes instead of escaping the spaces.

          I have copied the offending line from the .pro file in my answer above. Also I tried both single and double quotes, it did not work either. But ...

          @SGaist said in Space in QT install path on MacOS:

          Hi and welcome to devnet,

          The only workaround currently AFAIK is to use a symlink without space.

          I thought that might be the case and reinstalled it on a different drive with no space in the path name. So the problem is solved for me, although it might still be a good idea to fix this in the code sometime.

          I try to mark this topic as solved next :)

          Best regards,
          Torsten

          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