everyone.
I installed qt creator 2.4.1 under Ubuntu 12.04 LTS using its software centre.
The qmake shows the following weird error:
/usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile test3.pro
/home/paul/Documents/workplace/test3/test3.pro:1: Parse Error ('')
Error processing project file: test3.pro
A parse error of no error ……
But the error is not presented when a new project is just created without editing the the pro file at all.
Pro file editing includes any thing such as typing a space in the comment or changing a character to itself.
The error has no relationship with the content of the code or the pro file.
Since the warning refers to a nonexistent or invisible character on line 1, this might be a Unicode BOM, and qmake might not be able to read it for whatever reason.
Try dumping
test3.prousinghexdump -C test3.pro— is the first character an ASCII printable character (between hex 0x20 and 0x7e), or is it outside of that range (such as 0xef,0xbb,0xbf)? If it’s outside that range, try openingtest3.proin a Unicode-compliant text editor, and saving it without a BOM.