2013-04-21 67 views
0

我想編譯一個QtMobility的示例 - hapticsplayer,但我甚至無法編譯它,因爲編譯器找不到Qt Mobility的頭文件。qmobilityglobal.h:沒有這樣的文件或目錄

由於這是Qt SDK附帶的示例之一,我假定所有關於項目配置/資源/等。是正確的。所以我一定是在我的Qt安裝中丟失了Qt Mobility,或者類似的東西。

這裏的維護的Qt SDK的包管理器的截圖:

enter image description here

在這裏我粘貼編譯器錯誤:

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構建的原因。

相關問題