Qt 6.8.1 :-1: error: Unknown module(s) in QT: serialport
-
wrote on 11 Dec 2024, 12:30 last edited by
Hi.
I'm trying to run a project that usesTARGET = QSerialPort
But I get the
error :-1: error: Unknown module(s) in QT: serialport
I installed Ubuntu 22.04.5 LTS, then installed Qt 6.8.1, Qt Creator 15.0.0.. I looked for solutions to the problem and installed it using the console:
apt-get install libqt6serialport6 apt-get install libqt6serialport6-dev
But the project still gives the same error. Just in case, I gave the rights to the current user:
adduser nikolay dialout
At the same time, if I switch the project kit to Qt 5.15.16, then the project starts. With other problems, but it starts.
Did I screw up somewhere while installing Qt and my dependencies are broken? Why can this happen and how can I fix it?
I need to be able to work with this project on both Qt 6.8.1 and Qt 5.15.16.I installed Qt 6.8.1, Qt Creator 15.0.0 using synaptic.
I built Qt 5.15.16 from the source code for the kit. -
Hi @Semeckiy
I installed Ubuntu 22.04.5 LTS, then installed Qt 6.8.1, Qt Creator 15.0.0..
How did you install Qt 6.8.1? Via the online installer? Then you have to install QtSerialport with the online installer / maintainance tool also (I think it is not installed by default).
The apt-get version can only be used with a Qt installed by apt-get.
Regards
-
Hi @Semeckiy
I installed Ubuntu 22.04.5 LTS, then installed Qt 6.8.1, Qt Creator 15.0.0..
How did you install Qt 6.8.1? Via the online installer? Then you have to install QtSerialport with the online installer / maintainance tool also (I think it is not installed by default).
The apt-get version can only be used with a Qt installed by apt-get.
Regards
wrote on 11 Dec 2024, 12:51 last edited by@aha_1980 Yes, I installed Qt 6.8.1 using the online installer.
libqt5serialport5 was already installed, and libqt5serialport5-dev I'm not sure, I haven't checked it. But Qt 5.15 started normally without errors.When I started checking the project on Qt 6.8 I encountered an error.
After that, using the console, I installed: libqt6serialport6, libqt6serialport6-dev -
@Semeckiy: Did you read what I wrote?
Then you have to install QtSerialport with the online installer / maintainance tool also
-
@Semeckiy: Did you read what I wrote?
Then you have to install QtSerialport with the online installer / maintainance tool also
wrote on 11 Dec 2024, 13:07 last edited by Semeckiy 12 Nov 2024, 13:08@aha_1980 Sorry, got carried away answering the question.
Should I clean up what I installed manually before doing this?
Am I right in thinking that if I run the same online installer again and choose custom installation, the selected libraries will automatically be linked to the Qt that is already installed?!
-
wrote on 11 Dec 2024, 15:54 last edited by
in your pro file
QT += serialport
-
@aha_1980 Sorry, got carried away answering the question.
Should I clean up what I installed manually before doing this?
Am I right in thinking that if I run the same online installer again and choose custom installation, the selected libraries will automatically be linked to the Qt that is already installed?!
@Semeckiy said in Qt 6.8.1 :-1: error: Unknown module(s) in QT: serialport:
Should I clean up what I installed manually before doing this?
No, just install that module using Qt Installer/maintenance tool.
-
-
@Semeckiy said in Qt 6.8.1 :-1: error: Unknown module(s) in QT: serialport:
Should I clean up what I installed manually before doing this?
No, just install that module using Qt Installer/maintenance tool.
-
1/8