Skip to content

Latest commit

 

History

History
122 lines (69 loc) · 4.09 KB

CppQmakeErrorUnknownModulesInQtLocationSensors.md

File metadata and controls

122 lines (69 loc) · 4.09 KB

 

 

 

 

 

 

QtQt CreatorLubuntu

 

Unknown module(s) in QT: location sensors is a qmake error.

 


# :-1: error: Unknown module(s) in QT: location sensors

 

Technical facts

 

Application type(s)

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

  • Qt Qt: version 5.4.1 (32 bit)
  • STL STL: GNU ISO C++ Library, version 4.9.2

 

 

 

 

 

Qt project file: ./CppQmakeErrorUnknownModulesInQtLocationSensors/CppQmakeErrorUnknownModulesInQtLocationSensors.pro

 


QT += core gui #To show I compile with Qt5 greaterThan(QT_MAJOR_VERSION, 4) {   #Add webkitwidgets give the following error under Lubuntu   # :-1: error: Unknown module(s) in QT: location sensors   #Under native Windows, however, this works fine   QT += widgets webkitwidgets #Gives error under Lubuntu } # Solution provided by Xiao: #   sudo apt-get install aptitude #   sudo aptitude search sensors5|grep dev #   sudo apt-get install qtsensors5-dev #   sudo apt-get install qtsensors5-private-dev #   sudo aptitude search location5|grep dev #   sudo apt-get install qtlocation5-dev #   sudo apt-get install qtlocation5-private-de SOURCES += \     main.cpp

 

 

 

 

 

./CppQmakeErrorUnknownModulesInQtLocationSensors/main.cpp

 


int main() {}