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. How to have path names that include spaces in .pro file?
Qt 6.11 is out! See what's new in the release blog

How to have path names that include spaces in .pro file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 521 Views
  • 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.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by
    #1

    I'm trying to compile a third party library that stores .cpp and .h files in a subdirectory that contains spaces. This is causing the compiler not to find them. Is there a way to specify paths with spaces for the HEADERS and SOURCES section?

    aha_1980A 1 Reply Last reply
    0
    • K kitfox

      I'm trying to compile a third party library that stores .cpp and .h files in a subdirectory that contains spaces. This is causing the compiler not to find them. Is there a way to specify paths with spaces for the HEADERS and SOURCES section?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kitfox Putting the path in quotes is usually enough.

      But the best advice I can give you: avoid spaces at all. Rename the directories to have proper ASCII names without spaces will save you a lot of trouble.

      Also blame the library vendor so he becomes aware of the problem.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      6

      • Login

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