Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] How to fix QtCreator and add QtSerialPort?

[SOLVED] How to fix QtCreator and add QtSerialPort?

Scheduled Pinned Locked Moved Installation and Deployment
qtcreatorubuntuserialport
4 Posts 2 Posters 4.3k 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.
  • G Offline
    G Offline
    Gaspard
    wrote on 14 Jun 2015, 08:03 last edited by Gaspard
    #1

    I've been trying to add the SerialPort-library to my pre-installed Qt-packages (Ubuntu 14.04). It failed: QtCreator threw an error on "QT += serialport" and "#include <QSerialPort>" lacked highlighting.

    Next, I decided to try an installation from scratch. Being an amateur, I deleted the folders /usr/include/qt4 and /usr/include/qt5. Subsequently, I've used the apt-get functionalities to delete and install packages.

    At this stage I've got my two deleted directories back (or: I installed 'qt-sdk' and some other packages), but things don't work as they used to do. When I open QtCreator, I'm getting the following error message:

    "file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
    import QtQuick 2.1
    ^ "
    ,
    although there is a QtQuick-folder in /usr/include/qt5. QtCreator opens next but the screen freezes. After opening a project, I'm able to go through its code but when I try to build it, I don't receive any response.

    In the meantime I've found a broken 'plugins' link in /usr/share/qt4 that used to refer to /usr/lib/qt4/plugins. I've replaced this symbolic link with one that refers to the existing /usr/lib/x86_64-linux-gnu/qt4/plugins hoping that this would magically solve my problem. It didn't.

    Any suggestions on how I would be able to a) get QtCreator back up and running, b) add the QtSerialPort-library?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on 14 Jun 2015, 15:05 last edited by
      #2

      add the QtSerialPort-library?

      Just install the qtserialport library from the Ubuntu's repo. Or try to read the WIKI in case you want to have a fresh version of QSerialPort.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gaspard
        wrote on 17 Jun 2015, 14:14 last edited by
        #3

        In the meantime, I've fixed a). The package 'qtcreator' depends on:

        qtdeclarative5-qtquick2-plugin
        qtdeclarative5-controls-plugin
        qtdeclarative5-window-plugin
        qtdeclarative5-localstorage-plugin,

        which aren't automatically installed while installing 'qtcreator. Check also https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1339628.

        Thanks for the response, Kuzulis. Now i'll try (again) to tackle b).

        1 Reply Last reply
        0
        • G Offline
          G Offline
          Gaspard
          wrote on 18 Jun 2015, 16:57 last edited by
          #4

          Ok, following the wiki worked.

          1 Reply Last reply
          0

          2/4

          14 Jun 2015, 15:05

          • Login

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