2013-04-21 4 views
0

QtMobility의 샘플 중 하나 인 hapticsplayer을 컴파일하려고하는데 컴파일러가 Qt Mobility의 헤더를 찾을 수 없기 때문에 컴파일 할 수 없습니다.qmobilityglobal.h : 해당 파일이나 디렉토리가 없습니다.

Qt SDK와 함께 제공되는 샘플 중 하나이기 때문에 프로젝트 구성/소스/etc에 관한 모든 내용이 있다고 가정합니다. 맞다. 따라서 Qt 설치시 Qt Mobility이 누락되었거나 이와 같아야합니다.

다음

enter image description here

내가 붙여있어 컴파일러 오류 : 여기

는 Qt는 SDK의 패키지 관리자 유지의 스크린 샷이다

In file included from ..\hapticsplayer\hapticsplayer.cpp:41: 
..\hapticsplayer\/hapticsplayer.h:41:29: error: qmobilityglobal.h: No such file or directory 
..\hapticsplayer\/hapticsplayer.h:45:31: error: qfeedbackactuator.h: No such file or directory 
..\hapticsplayer\/hapticsplayer.h:46:29: error: qfeedbackeffect.h: No such file or directory 
In file included from ..\hapticsplayer\hapticsplayer.cpp:41: 
..\hapticsplayer\/hapticsplayer.h:53: error: expected constructor, destructor, or type conversion before 'class' 

답변

0

내가 문제를 발견을 - 그것 때문에 빌드이었다 내가 선택한 대상.

나는 Symbian Anna를 위해 건물을 짓고 있었지만 Symbian S60 (실제로 어쨌든 구축하고 싶었던 타겟 임)로 전환했을 때 프로젝트가 성공적으로 컴파일되었습니다. Symbian Anna는 새 프로젝트를 만들 때 기본적으로 선택되었으므로 S60 대신에이 프로젝트를 구축했습니다.

관련 문제