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] Error installing QSerialPort on Qt 4.8.1
Forum Updated to NodeBB v4.3 + New Features

[Solved] Error installing QSerialPort on Qt 4.8.1

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 3.7k 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.
  • M Offline
    M Offline
    moratilla
    wrote on last edited by
    #1

    Hi, I'm following the instructions there: http://qt-project.org/wiki/QtSerialPort to install QserialPort on Ubuntu, but when i execute make command, i have an error that i'm not able to solve. I searched on google about the error and i found nothing usefull. The terminal shows me the next messages:

    edu@edu-VirtualBox:~/Downloads/serialport-build$ qmake ../serialport-src/qtserialport.pro
    edu@edu-VirtualBox:~/Downloads/serialport-build$ make
    cd src/ && make -f Makefile
    make[1]: Entering directory /home/edu/.local/share/Trash/files/serialport-build.3/src' cd serialport/ && /usr/bin/qmake /home/edu/Downloads/qt-qtserialport/src/serialport/serialport.pro -o Makefile /home/edu/Downloads/qt-qtserialport/src/serialport/qt4support/install-helper.pri:14: Parse Error ('$$PWD/src/qlockfile_unix.cpp') /home/edu/Downloads/qt-qtserialport/src/serialport/qt4support/install-helper.pri:14: Unterminated conditional block at end of file Project LOAD(): Feature /home/edu/Downloads/qt-qtserialport/src/serialport/qt4support/install-helper.pri cannot be found. make[1]: *** [serialport//Makefile] Error 3 make[1]: Leaving directory /home/edu/.local/share/Trash/files/serialport-build.3/src'
    make: *** [sub-src-make_default-ordered] Error 2

    Any suggestion? Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      Oops, seems it is bug, please just add an '', after $$PWD/src/qlockfile.cpp e.g.:

      [code]
      unix:!symbian {
      SOURCES +=
      $$PWD/src/qlockfile.cpp
      $$PWD/src/qlockfile_unix.cpp
      }
      [/code]

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kuzulis
        Qt Champions 2020
        wrote on last edited by
        #3

        The patch here: https://codereview.qt-project.org/#change,70613

        1 Reply Last reply
        0
        • M Offline
          M Offline
          moratilla
          wrote on last edited by
          #4

          [quote author="kuzulis" date="1383825290"]Oops, seems it is bug, please just add an '', after $$PWD/src/qlockfile.cpp e.g.:

          [code]
          unix:!symbian {
          SOURCES +=
          $$PWD/src/qlockfile.cpp
          $$PWD/src/qlockfile_unix.cpp
          }
          [/code]

          [/quote]

          It worked, thanks a lot :)

          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