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. Static build - NMAKE: don't know how to make 'sub-src' error?
Forum Updated to NodeBB v4.3 + New Features

Static build - NMAKE: don't know how to make 'sub-src' error?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 5.1k 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
    muzo
    wrote on last edited by
    #1

    I'm following this tutorial - http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html#static-linking

    and I succesfully configured QT 5 statically with platform win32-MSVC2012.

    After configuration i call;
    @nmake sub-src@

    but got this error;

    NMAKE: fatal error u1073: dont't know how to make 'sub-src'

    I'm new on qt so i can't handle it. What does 'sub-src' refer here.

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

      Did you start nmake through the command line of msvc?

      If not you do not have the complete environment settings. That might be an explanation.

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        muzo
        wrote on last edited by
        #3

        I'm using visual studio's command prompt

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

          The tutorial you are referring to is not a tutorial for building static Qt libs.

          Did you use source code supplied with an SDK for recompilation?
          For building Qt libs on Windows you should download the source code as .zip from "here":http://download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.zip AFAIK the tar.gz is meant for linux distros and has different line endings. Possibly there also other differences.
          In general the use of source code supplied with a pre-build has been discouraged in the past.

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            muzo
            wrote on last edited by
            #5

            yes im using this source code..

            1 Reply Last reply
            0
            • P Offline
              P Offline
              postb99
              wrote on last edited by
              #6

              Did you solve it?

              I followed http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC also for static build: set up my %QTDIR%, %OPENSSL%, %PATH% values, added -MP2 compilation option as stated, ran propose "configure" and get the same error when running "nmake sub-src".

              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