Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.



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: version 5.4.1 (32 bit)
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
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.

This page has been created by the tool CodeToHtml