non-qt project cxxflags include path declaration on windows
-
Hi All,
I imported a non-qt project in qt creator on windows and I cannot figure out why certain includes (outside the project directory) aren't found. I added a line to the project.cxxflags file to specify the external include path the project needs like:
-I../path/to/relative/include/directory
which does not work so I tried changing the forward slashes to backward ones but that does not work either. Can anyone give me a hint what am I doing wrong?
Thanks,
r0ller -
Hi All,
I imported a non-qt project in qt creator on windows and I cannot figure out why certain includes (outside the project directory) aren't found. I added a line to the project.cxxflags file to specify the external include path the project needs like:
-I../path/to/relative/include/directory
which does not work so I tried changing the forward slashes to backward ones but that does not work either. Can anyone give me a hint what am I doing wrong?
Thanks,
r0ller@r0ller said in non-qt project cxxflags include path declaration on windows:
Can anyone give me a hint what am I doing wrong?
Please show your project file (pro or CMakeLists.txt).
-
@r0ller said in non-qt project cxxflags include path declaration on windows:
Can anyone give me a hint what am I doing wrong?
Please show your project file (pro or CMakeLists.txt).
@jsulm As this is a generic, non-qt project (https://doc.qt.io/qtcreator/creator-project-generic.html) there's no project file but a bunch of others (like <projectname>.cflags, <projectname>.cxxflags, <projectname>.config, <projectname>.files, <projectname>.includes, etc.). But now as of writing this, it seems I found the solution on the page I linked although not by using the -I flag: if I add any relative/absolute path to the <projectname>.includes file, qt creator finds the relevant files. However, I remember having successfully using the -I flag earlier in the <projectname>.cxxflags as well. Concerning the windows specifics: I used forward slashes in the includes file.