Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 6.8.1 :-1: error: Unknown module(s) in QT: serialport
Forum Updated to NodeBB v4.3 + New Features

Qt 6.8.1 :-1: error: Unknown module(s) in QT: serialport

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 800 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Semeckiy
    wrote on last edited by
    #1

    Hi.
    I'm trying to run a project that uses

    TARGET = 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.

    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Qt has to stay free or it will die.

      S 1 Reply Last reply
      2
      • aha_1980A aha_1980

        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

        S Offline
        S Offline
        Semeckiy
        wrote on last edited by
        #3

        @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

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Semeckiy: Did you read what I wrote?

          Then you have to install QtSerialport with the online installer / maintainance tool also

          Qt has to stay free or it will die.

          S 1 Reply Last reply
          1
          • aha_1980A aha_1980

            @Semeckiy: Did you read what I wrote?

            Then you have to install QtSerialport with the online installer / maintainance tool also

            S Offline
            S Offline
            Semeckiy
            wrote on last edited by Semeckiy
            #5

            @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?!
            c98f59d2-2274-4402-8e32-d4e8c271c56e-изображение.png

            jsulmJ 1 Reply Last reply
            0
            • A Offline
              A Offline
              aliks-os
              wrote on last edited by
              #6

              in your pro file

              QT += serialport

              1 Reply Last reply
              0
              • S Semeckiy

                @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?!
                c98f59d2-2274-4402-8e32-d4e8c271c56e-изображение.png

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @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.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 1 Reply Last reply
                1
                • S Semeckiy has marked this topic as solved on
                • jsulmJ jsulm

                  @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.

                  S Offline
                  S Offline
                  Semeckiy
                  wrote on last edited by
                  #8

                  @jsulm I have already managed to delete what I installed manually just in case. And then reinstalled qt with the necessary libraries using the online installer.
                  Thanks for your help.

                  1 Reply Last reply
                  1
                  • S Semeckiy has marked this topic as solved on

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved