Hello. Could somebody explain how to install QtMobility on Mac OS X 10.7? I have downloaded source code, installed qt 4.8.4 and xcode 4.5.2 along with xcode command line tools. According to the installation guide, from the terminal I run:
./configure -prefix /usr/local/QtMobility
make
It fails to build the sensors module:
In file included from qambienttemperaturesensor.cpp:41:
./qambienttemperaturesensor.h:44:31: error: QtSensors/qsensor.h: No such file or directory
In file included from qambienttemperaturesensor.cpp:41:
./qambienttemperaturesensor.h:48: error: expected constructor, destructor, or type conversion before ‘class’
./qambienttemperaturesensor.h:50: error: function definition does not declare parameters
./qambienttemperaturesensor.h:60: error: function definition does not declare parameters
./qambienttemperaturesensor.h:69: error: function definition does not declare parameters
./qambienttemperaturesensor.h:82: error: ‘QTM_END_NAMESPACE’ does not name a type
In file included from qambienttemperaturesensor.cpp:42:
qambienttemperaturesensor_p.h:68: error: ‘QTM_END_NAMESPACE’ does not name a type
I need only the systeminfo module, so I decided try
./configure -modules systeminfo -prefix /usr/local/QtMobility
make
make install
This time it went fine. I see QtSystemInfo.framework installed, but when I try to build quickstart sample, it can't find QSystemInfo header. Also I see xcode doesn't add QtSystemInfo.framework to the project. Even if I drag it manually, it is shown in red color like a missing file. Installation guide tells I have to expand LD_LIBRARY_PATH variable, so I tried to add the following to /etc/profile:
LD_LIBRARY_PATH=/usr/local/QtMobility/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
Also tried to expand DYLD_LIBRARY_PATH instead. Nothing helps.