Results 1 to 2 of 2

Thread: Well, this is discouraging!

  1. #1
    Join Date
    Apr 2016
    Posts
    23
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Well, this is discouraging!

    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:

    -----

    Qt Code:
    1. #include <QtDebug>
    2.  
    3. int main( )
    4. {
    5.  
    6. qDebug() << "Hello Qt World!";
    7.  
    8. return 0;
    9. }
    To copy to clipboard, switch view to plain text mode 

    -----

    "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:

    Qt Code:
    1. {.}.cpp{release\}.obj::
    2. $(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
    3. $<
    4. <<
    To copy to clipboard, switch view to plain text mode 

    Any suggestions?
    Last edited by mdavidjohnson; 7th September 2016 at 21:30.

  2. #2
    Join Date
    Apr 2016
    Posts
    23
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Well, this is discouraging!

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.