Important: Please read the Qt Code of Conduct -

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

  • 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?

  • Lifetime Qt Champion

    @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.


Log in to reply