Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Windows EXE - nmake Errors
Forum Updated to NodeBB v4.3 + New Features

Building Windows EXE - nmake Errors

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.3k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mjsbbs
    wrote on 23 Nov 2016, 23:08 last edited by
    #1

    Hi all, I'm a new user to QT and this forum. I am attempting to follow these instructions to build a Windows exe. Running the code within the IDE works. Running "qmake" within my project folder works. Running "nmake" within my project did not work. I attempted to follow these instructions and installed Visual Studio 2015. I have opened the "VS2015 x86 x64 Cross Tolls Command Prompt", navigated to my project folder, and run the "nmake" command. The command runs, but with errors, shown below. I do not know what the error means or what next steps are. I would be very grateful if someone could guide me in the right direction. Thank you.

    command prompt error message

    • Mike
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Nov 2016, 23:11 last edited by
      #2

      Hi and welcome to devnet,

      You are trying to build a MinGW configured project using Visual Studio's tools in a command line configured for Visual Studio rather than for MinGW.

      If you really want to build your application on the command line, then you have start one configured for MinGW.

      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
      2
      • M Offline
        M Offline
        mjsbbs
        wrote on 23 Nov 2016, 23:57 last edited by
        #3

        Thank you, SGaist. I would like to build a standalone exe of my project. I would like to do this in the simplest, most straightforward manner possible. The tutorial I referenced mentions using the "qmake" command first. The "qmake.exe" is found in my local MinGW bin folder: "C:\Qt\5.6\mingw49_32\bin". However, the next command referenced in the tutorial, "nmake" does not have a corresponding "nmake.exe" in this folder. Searching for a solution led me to someone suggesting installing Visual Studio, and after installing it, "nmake.exe" is found in this local folder on my computer, "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin".

        I'm pretty confused by this. The MinGW bin folder does not contain "nmake.exe", which is referenced in the tutorial. Do you have any suggestions of next steps?

        • Mike
        J 1 Reply Last reply 24 Nov 2016, 05:23
        0
        • M mjsbbs
          23 Nov 2016, 23:57

          Thank you, SGaist. I would like to build a standalone exe of my project. I would like to do this in the simplest, most straightforward manner possible. The tutorial I referenced mentions using the "qmake" command first. The "qmake.exe" is found in my local MinGW bin folder: "C:\Qt\5.6\mingw49_32\bin". However, the next command referenced in the tutorial, "nmake" does not have a corresponding "nmake.exe" in this folder. Searching for a solution led me to someone suggesting installing Visual Studio, and after installing it, "nmake.exe" is found in this local folder on my computer, "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin".

          I'm pretty confused by this. The MinGW bin folder does not contain "nmake.exe", which is referenced in the tutorial. Do you have any suggestions of next steps?

          • Mike
          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 24 Nov 2016, 05:23 last edited by
          #4

          @mjsbbs This tutorial is based on Visual Studio. You installed MinGW. So, you need to adapt (or install Visual Studio + Qt for Visual C++ compiler). What you need to do is:

          • Start MinGW console - in Start/All Programs/Qt/5.6 there should be an entry for MinGW
          • Run qmake.exe
          • run mingw32-make.exe

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply 25 Nov 2016, 16:17
          4
          • J jsulm
            24 Nov 2016, 05:23

            @mjsbbs This tutorial is based on Visual Studio. You installed MinGW. So, you need to adapt (or install Visual Studio + Qt for Visual C++ compiler). What you need to do is:

            • Start MinGW console - in Start/All Programs/Qt/5.6 there should be an entry for MinGW
            • Run qmake.exe
            • run mingw32-make.exe
            M Offline
            M Offline
            mjsbbs
            wrote on 25 Nov 2016, 16:17 last edited by
            #5

            @jsulm This worked. Thank you, jsulm!

            1 Reply Last reply
            0

            1/5

            23 Nov 2016, 23:08

            • Login

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