Results 1 to 6 of 6

Thread: Error compiling qt5.01 on windows

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Error compiling qt5.01 on windows

    I have following configure options:
    configure -platform win32-msvc2010 -debug-and-release -opensource -c++11 -shared -make libs -make tools -no-accessibility -plugin-sql-sqlite -qt-zlib -mp -opengl desktop

    nmake gives me the error in the middle of the compilation:

    qplatformscreenpageflipper.cpp
    qplatformsystemtrayicon_qpa.cpp
    qplatformopenglcontext.cpp
    c:\libraries\qt\qt-5\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(55) : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or directory
    qopenglcontext.cpp
    c:\libraries\qt\qt-5\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(55) : fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or direc
    tory
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    Help will be much appreciated, thanksl

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Error compiling qt5.01 on windows

    I've same problem with opengl desktop then i've installed directX binary and add its path into environment var

  3. The following 2 users say thank you to alizadeh91 for this useful post:

    tahayassen (3rd April 2013), TorAn (17th March 2013)

  4. #3
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    1
    Thanked 4 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error compiling qt5.01 on windows


    I have the same problem but can someone explain what alizadeh91 means please?

    Edit1: Never mind. Got it http://qt-project.org/wiki/Building-...6ebb28e0cda430

    Just pass -opengl desktop to configure

    Edit2: Never mind again. http://qt-project.org/forums/viewthread/23189 Use DirectX SDK
    Last edited by tahayassen; 3rd April 2013 at 08:06.

  5. #4
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Error compiling qt5.01 on windows

    From here :
    http://qt-project.org/wiki/Building-Qt-5-from-Git

    Windows Graphics Drivers
    QML2 requires OpenGL 2.1 or higher or Open GL ES 2.0 to work.

    In Windows, two options are available:

    Use the ANGLE-library [code.google.com] to translate OpenGL calls into DirectX (default)
    Use the native OpenGL driver for your graphics card
    A copy of ANGLE is bundled in Qt 5. To use Option 1, you need to install the DirectX SDK [msdn.microsoft.com] (Note: Starting from Windows Kit 8, this is included in the Windows SDK).

    To use Option 2, you need to ensure that your graphics card driver supports OpenGL 2.1 or higher (Note: The stock Windows driver only supports OpenGL 1.1, which is insufficient), and pass `-opengl desktop’ to configure.exe.


    and here is directX:
    http://msdn.microsoft.com/library/wi.../hh452744.aspx

  6. #5
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    1
    Thanked 4 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error compiling qt5.01 on windows

    Thank you!

  7. #6
    Join Date
    Jan 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Error compiling qt5.01 on windows

    Thank you.. It works.

Similar Threads

  1. dshow.h not found error on compiling Qt for Windows CE 5.0
    By thanuj in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 21st October 2010, 08:52
  2. Error compiling in Windows Vista
    By Maluko_Da_Tola in forum Newbie
    Replies: 5
    Last Post: 11th September 2010, 22:41
  3. Error compiling Qt Creator src on windows
    By munna in forum Installation and Deployment
    Replies: 2
    Last Post: 18th May 2009, 13:58
  4. Error when compiling for static version in windows
    By que in forum Installation and Deployment
    Replies: 4
    Last Post: 28th October 2008, 21:41
  5. Replies: 1
    Last Post: 25th October 2008, 20:18

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.