Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Using nmake to build a static version qt
QtWS25 Last Chance

Using nmake to build a static version qt

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aidin
    wrote on last edited by
    #1

    I want to build a static version of qt 5.1.1 using microsoft visual studio. I executed configure -static -release -platform win32-msvc and then I executed nmake but these errors occured:
    @
    c:\qt\qtbase\include\qtgui../../src/gui/opengl/qopengl.h(82) : fatal error C108
    3: Cannot open include file: 'GLES2/gl2.h': No such file or directory
    qopenglcontext.cpp
    c:\qt\qtbase\include\qtgui../../src/gui/opengl/qopengl.h(82) : fatal error C108
    3: Cannot open include file: 'GLES2/gl2.h': No such file or directory
    Generating Code...
    NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.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.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    @
    and at the end there is no qmake.exe file in directory. what is the problem?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Did you run nmake from a msvc command prompt?

      msvc sets the environment differently for its command prompt. If you run nmake from a plain command with adapting the environment you get errors.

      Did you check, if this include file is available?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aidin
        wrote on last edited by
        #3

        thank you
        yes I ran nmake from msvc command prompt
        and this include file is not available. I just downloaded qt 5.1.1 source package and I tried to build it. what is the problem?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Can you check if you have gl2.h in your Qt sources ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved