2017-10-04 1 views
1

에 경로를 포함 할 수 없습니다 내가 시도했던 .pro 파일의 맨 아래에 경로를 포함 추가 : 윈도우

INCLUDEPATH += "C:\Users\Alexandre\Desktop\meshlab-2016.12\vcglib-1.0.1" 

는 다음 나는 qmake를 달렸다. 이것에

C:\Users\Alexandre\Desktop\meshlab-2016.12\src\common\filterparameter.cpp:28: error: C1083: Cannot open include file: 'vcg/math/matrix44.h': No such file or directory 

그리고 많은 다른 사람과 유사한

는하지만 난 여전히 오류가 있습니다.

코드는 다음과 같습니다 : 나는 또한 상대 경로를 변경 시도

#include <vcg/math/matrix44.h> 

, 정상 슬래시 두 번 백 슬래시를 사용하여. 이 같은

+0

내가 전에 그것을 시도 이것을 사용 :'INCLUDEPATH + = $$ PWD /../../ 프로젝트/qmenu' – aghilpro

+2

시도의 INCLUDEPATH + = "C : \\ 사용자 \\ Alexandre \\ Desktop \\ meshlab-2016.12 \\ vcglib-1.0.1 "또는 INCLUDEPATH + ="/c/Users/Alexandre/Desktop/meshlab-2016.12/vcglib-1.0.1 " –

답변

0
프로젝트 디렉토리 확실하지

하지만 디렉토리이

projectFolder/vcg/math/matrix44.h 

같은 경우 추가 할 수있는 헤더 파일 경로 :

:

INCLUDEPATH += $$PWD/vcg/math 

그런 다음 경로없이 헤더 파일을 포함

#include <matrix44.h> 

또한 $ PWD를 사용하여 현재 프로젝트 디렉토리를 참조하십시오. PWD에 대한

상세 정보 :

The PWD variable specifies the full path leading to the directory containing the current file being parsed. This can be useful to refer to files within the source tree when writing project files to support shadow builds.

+0

@Alexandre Severino 내 대답이 도움이 되었다면 대답을 받아들이거나 upvote, 감사합니다. – aghilpro