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?
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?