0
我想編譯一個QtMobility的示例 - hapticsplayer,但我甚至無法編譯它,因爲編譯器找不到Qt Mobility的頭文件。qmobilityglobal.h:沒有這樣的文件或目錄
由於這是Qt SDK附帶的示例之一,我假定所有關於項目配置/資源/等。是正確的。所以我一定是在我的Qt安裝中丟失了Qt Mobility,或者類似的東西。
這裏的維護的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'