trying to build project from chapter 8 MultithreadedCV in QtCreator under Archlinux I got :
/usr/bin/uic ../MultithreadedCV/mainwindow.ui -o ui_mainwindow.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../MultithreadedCV -I. -isystem /usr/local/include/opencv -isystem /usr/local/include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o main.o ../MultithreadedCV/main.cpp
../MultithreadedCV/main.cpp:26:16: error: stray ‘\342’ in program
return “”;
^
../MultithreadedCV/main.cpp:26:17: error: stray ‘\200’ in program
return “”;
^
../MultithreadedCV/main.cpp:26:18: error: stray ‘\234’ in program
return “”;
^
../MultithreadedCV/main.cpp:26:19: error: stray ‘\342’ in program
return “”;
^
../MultithreadedCV/main.cpp:26:20: error: stray ‘\200’ in program
return “”;
^
../MultithreadedCV/main.cpp:26:21: error: stray ‘\235’ in program
return “”;
^
../MultithreadedCV/main.cpp:32:31: error: stray ‘\342’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp:32:32: error: stray ‘\200’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp:32:33: error: stray ‘\234’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp:32:34: error: stray ‘\’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp:32:35: error: stray ‘\342’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp:32:36: error: stray ‘\200’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp:32:37: error: stray ‘\235’ in program
QString(“\”).toStdWString().c_str(),
^
../MultithreadedCV/main.cpp: In function ‘QString getVersionString(QString)’:
../MultithreadedCV/main.cpp:18:5: error: ‘DWORD’ was not declared in this scope
DWORD dwHandle;
^~~~~
../MultithreadedCV/main.cpp:19:11: error: expected ‘;’ before ‘dwLen’
DWORD dwLen = GetFileVersionInfoSize(fName.toStdWString().c_str(), &dwHandle);
^~~~~
../MultithreadedCV/main.cpp:21:5: error: ‘LPVOID’ was not declared in this scope
LPVOID lpData = new BYTE[dwLen];
^~~~~~
../MultithreadedCV/main.cpp:22:58: error: ‘dwHandle’ was not declared in this scope
if(!GetFileVersionInfo(fName.toStdWString().c_str(), dwHandle, dwLen, lpData))
^~~~~~~~
../MultithreadedCV/main.cpp:22:58: note: suggested alternative: ‘drand48’
if(!GetFileVersionInfo(fName.toStdWString().c_str(), dwHandle, dwLen, lpData))
^~~~~~~~
drand48
../MultithreadedCV/main.cpp:22:68: error: ‘dwLen’ was not declared in this scope
if(!GetFileVersionInfo(fName.toStdWString().c_str(), dwHandle, dwLen, lpData))
^~~~~
../MultithreadedCV/main.cpp:22:75: error: ‘lpData’ was not declared in this scope
if(!GetFileVersionInfo(fName.toStdWString().c_str(), dwHandle, dwLen, lpData))
^~~~~~
../MultithreadedCV/main.cpp:22:75: note: suggested alternative: ‘QMapData’
if(!GetFileVersionInfo(fName.toStdWString().c_str(), dwHandle, dwLen, lpData))
^~~~~~
QMapData
../MultithreadedCV/main.cpp:22:9: error: ‘GetFileVersionInfo’ was not declared in this scope
if(!GetFileVersionInfo(fName.toStdWString().c_str(), dwHandle, dwLen, lpData))
^~~~~~~~~~~~~~~~~~
../MultithreadedCV/main.cpp:25:18: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
delete[] lpData;
^~~~~~
../MultithreadedCV/main.cpp:26:9: error: return-statement with no value, in function returning ‘QString’ [-fpermissive]
return “”;
^~~~~~
../MultithreadedCV/main.cpp:29:5: error: ‘VS_FIXEDFILEINFO’ was not declared in this scope
VS_FIXEDFILEINFO *lpBuffer = NULL;
^~~~~~~~~~~~~~~~
../MultithreadedCV/main.cpp:29:23: error: ‘lpBuffer’ was not declared in this scope
VS_FIXEDFILEINFO *lpBuffer = NULL;
^~~~~~~~
../MultithreadedCV/main.cpp:29:23: note: suggested alternative: ‘setbuffer’
VS_FIXEDFILEINFO *lpBuffer = NULL;
^~~~~~~~
setbuffer
../MultithreadedCV/main.cpp:30:5: error: ‘UINT’ was not declared in this scope
UINT uLen;
^~~~
../MultithreadedCV/main.cpp:30:5: note: suggested alternative: ‘MIN’
UINT uLen;
^~~~
MIN
../MultithreadedCV/main.cpp:31:23: error: ‘lpData’ was not declared in this scope
if(!VerQueryValue(lpData,
^~~~~~
../MultithreadedCV/main.cpp:31:23: note: suggested alternative: ‘QMapData’
if(!VerQueryValue(lpData,
^~~~~~
QMapData
../MultithreadedCV/main.cpp:33:31: error: expected primary-expression before ‘)’ token
(LPVOID*)&lpBuffer,
^
../MultithreadedCV/main.cpp:34:24: error: ‘uLen’ was not declared in this scope
&uLen))
^~~~
../MultithreadedCV/main.cpp:34:24: note: suggested alternative: ‘QPen’
&uL``en))
^~~~
QPen
../MultithreadedCV/main.cpp:31:9: error: ‘VerQueryValue’ was not declared in this scope
if(!VerQueryValue(lpData,
^~~~~~~~~~~~~
../MultithreadedCV/main.cpp:42:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Makefile:603: main.o] Error 1
16:51:15: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project MultithreadedCV (kit: Desktop)
When executing step "Make"
16:51:15: Elapsed time: 00:03.