Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Space in QT install path on MacOS

    Tools
    3
    4
    1042
    Loading More Posts
    • 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
      Torsten S. last edited by 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 1 Reply Last reply Reply Quote 0
      • A
        ambershark @Torsten S. last edited by

        @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 Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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 Reply Quote 1
          • T
            Torsten S. @ambershark last edited by

            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 Reply Quote 0
            • First post
              Last post