I'm trying to compile this code where the .pro
file includes a
QT += serialport
gives me a
Project MESSAGE: Warning: unknown QT: serialport
error. Without Qt, I would use CMake and install the package via vcpkg, Conan, HomeBrew, or something like that. But not sure if Qt has its own package manager. I would appreciate it if you could help me know what is the most canonical way to install and include this library.
P.S.1. In the comments, I'm being told that I need to use Qt's Maintenance Tool, which is sorta the internal package manager for Qt, to install QtSerialPort
module. Given that I don't know how to install that via HomeBrew, I installed Qt Creator from the Qt website. I found the Maintenance Tool in <install_dir>
the installation folder /Users/<user>/Qt/MaintenanceTool.app
which I could open from the terminal by open MaintenanceTool.app
while being in that folder. However, I can not see any QtSerialPort
module in the options, nor a way to search.
P.S.2. Posted a new question here.
P.S.3. I think this issue arises because I had multiple versions of Qt installed. once I searched for locate qmake
and found out the other versions I have installed (e.g., /System/Volumes/Data/usr/local/Cellar/qt/5.14.1/bin/qmake
) I could just run that and the MakeFile
was generated.
serialport
,network
,printing
are optional but core parts .. However , are you sure of the error ... I checked the repo .. its also using Qtscript
which requires installing the option .. , as final check , it could happen that you have 2 Qt installations and one is broken. – Mohammad Kanan Apr 25 '20 at 6:52QtSerialPort
module. Any idea how/where it should be found/installed? – Foad Apr 25 '20 at 10:16serialport
was separate package in Qt4 or not .. I mean this could be the problem – Mohammad Kanan Apr 25 '20 at 10:45