Why are you trying to put your class into the Qt Mobility namespace? Did you perhaps intend this:
Qt Code:
  1. #ifndef QGEOPOSITIONINFOSOURCELINUX_H
  2. #define QGEOPOSITIONINFOSOURCELINUX_H
  3. #include "qgeopositioninfosource.h"
  4.  
  5. QTM_USE_NAMESPACE
  6. // ^^^^^^^^^^^^^^ this
  7.  
  8. class QGeoPositionInfoSourceLinux : public QGeoPositionInfoSource
  9. {
  10. ...
  11. };
  12.  
  13. #endif
To copy to clipboard, switch view to plain text mode 
as described here. Is Qt Mobility enabled in your Pro file?