[Solved] Error installing QSerialPort on Qt 4.8.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 2Any suggestion? Thanks
-
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] -
The patch here: https://codereview.qt-project.org/#change,70613
-
[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 :)