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. Building terminal demo
Forum Updated to NodeBB v4.3 + New Features

Building terminal demo

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    paul424
    wrote on last edited by
    #1

    "http://qt-project.org/doc/qt-5/qtserialport-terminal-example.html":http://qt-project.org/doc/qt-5/qtserialport-terminal-example.html
    Ends up with :
    @In file included from main.cpp:45:0:
    mainwindow.h:50:36: fatal error: QtSerialPort/QSerialPort: No such file or directory
    #include <QtSerialPort/QSerialPort>
    ^
    compilation terminated.
    @
    @tom@oberon:~/qt/qt-qtserialport> more qtserialport.pro
    lessThan(QT_MAJOR_VERSION, 5) {
    TEMPLATE = subdirs
    SUBDIRS = src examples tests
    CONFIG += ordered

    !infile&#40;$$OUT_PWD/.qmake.cache, QTSERIALPORT_PROJECT_ROOT&#41; {
        system("echo QTSERIALPORT_PROJECT_ROOT = $$PWD >> $$OUT_PWD/.qmake.cache"&#41;
        system("echo QTSERIALPORT_BUILD_ROOT = $$OUT_PWD >> $$OUT_PWD/.qmake.cache"&#41;
    }
    

    } else {
    load(qt_parts)
    }
    @

    How to set the include header path to qmake ?
    Using qt 5.3 @ OpenSuse 12.3

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

      Hi and welcome to devnet,

      Did you add

      @QT += serialport@

      to your pro file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paul424
        wrote on last edited by
        #3

        Well there are several pro files. I just added that to the one in
        tom@oberon:~/qt/qt-qtserialport/src/serialport> more serialport.pro
        @QT = core

        QMAKE_DOCS = $$PWD/doc/qtserialport.qdocconf
        include($$PWD/serialport-lib.pri)

        greaterThan(QT_MAJOR_VERSION, 4) {
        load(qt_build_config)
        QT += core-private
        QT += serialport
        TARGET = QtSerialPort
        load(qt_module)
        } else {
        TEMPLATE = lib
        TARGET = $$qtLibraryTarget(QtSerialPort$$QT_LIBINFIX)
        include($$PWD/qt4support/install-helper.pri)
        CONFIG += module create_prl
        mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
        }@

        Now I see that it also ships include headers ; absolute path :
        tom@oberon:~/qt/qt-qtserialport/include/QtSerialPort>
        But why it won't work I cannot tell .
        Still the same error.

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

          It looks like you are trying to modify the modules pro file. If you want to build the example you should open the terminal/terminal.pro file

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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