PDA

View Full Version : Well, this is discouraging!



mdavidjohnson
7th September 2016, 20:13
I installed mingw and Qt 5.7.0 on my Windows 7 machine and made sure both were properly added to the PATH variable.

I then created hello.cpp as follows:

-----


#include <QtDebug>

int main( )
{

qDebug() << "Hello Qt World!";

return 0;
}

-----

"qmake -project" worked fine.

"qmake" worked fine.

but then "make" returned:

make -f Makefile.Release
make[1]: Entering directory `c:/work/Qt5Work/Qt570/Hello'
Makefile.Release:62: *** missing separator. Stop.
make[1]: Leaving directory `c:/work/Qt5Work/Qt570/Hello'
make: *** [release] Error 2

The offending line 62 appears to be simply:

<<

the entire four-line section being:


{.}.cpp{release\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
$<
<<

Any suggestions?

mdavidjohnson
8th September 2016, 00:57
Nevermind...

I appear to have found the problem.

My versions of g++ and Qt5 were apparently not compatible.

I had a 64-bit version of g++ and a 32-bit version of Qt5 on my system.

I deleted them both and then installed the 32-bit MinGW and the 32-bit qt-opensource-windows-x86-mingw530-5.7.0.exe - after that, everything worked fine.