Build command used with files installed by qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe into folder C:\Apps\Qt
i686-w64-mingw32-g++.exe -Wall -g -IC:\Apps\Qt\Qt5.1.1\5.1.1\mingw48_32\include -IC:\Apps\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtGui -IC:\Apps\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtWidgets -c V:\SourceCode\CBProjects\TestProjects\testqt5\main.cpp -o obj\Debug\main.o
i686-w64-mingw32-g++.exe -LC:\Apps\Qt\Qt5.1.1\5.1.1\mingw48_32\lib -o bin\Debug\testqt5.exe obj\Debug\main.o -lQt5Core -lQt5Gui -lQt5Widgets
Tim S.
Anyway my qt installations (self compiled 4.8.4 and the official 4.7.3 installer) both lack 'QtBase' and 'activeqtversion.h'. Can you pls direct me to the actual locations of these files so I may be of help.
In the two copies of 5.1.1 I installed the file activeqtversion.h in these paths.
5.1.1\mingw48_32\include\ActiveQt
5.1.1\msvc2010_opengl\include\ActiveQt
I found no file called "QtBase" in the two installations; I did find files like this one "qtbase_uk.qm" under this folder "translations".
Build command; it fails to run but it does compile and link. I am using "C:\Apps\Qt\Qt5.1.1msvc" as the base install folder location.
cl.exe /nologo /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\include /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\include\QtGui /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\include\QtWidgets /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\bin /I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include" /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /c main.cpp /Foobj\Release\main.obj
main.cpp
link.exe /nologo /LIBPATH:C:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\lib /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 10.0\VC\lib" /out:bin\Release\testqt5msvc.exe Qt5Core.lib Qt5Gui.lib Qt5Widgets.lib obj\Release\main.obj
Output file is bin\Release\testqt5msvc.exe with size 32.50 KB
FYI: I wasted enough time on helping the OP out; so, I am back to doing other things in my free time.
Did you include the QtWidgets folder in the search path as I needed to do to get MinGW GCC to compile?
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Tim S.
Edit: added quote to the request.
The OP seems to be ignoring the post build log request of mine a few posts back without it it is nearly impossible to help, anyway.
Tim S.