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. building qt 5.x under windows developer prompt
QtWS25 Last Chance

building qt 5.x under windows developer prompt

Scheduled Pinned Locked Moved Installation and Deployment
5.5windowsdeveloper commavisual studiobuildnmake
6 Posts 2 Posters 2.6k 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.
  • O Offline
    O Offline
    osssome
    wrote on 1 Oct 2015, 22:46 last edited by
    #1

    Hi,

    I'm new to buliding Qt so I don't know how to debug build issues. Here's what I have:

        nmake clean & configure.bat -developer-build -opensource -nomake examples -nomake tests -no-openssl & nmake
    

    .
    .
    .
    (much, much later)

        Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
        Copyright (C) Microsoft Corporation.  All rights reserved.
    
                cd preprocessor\ && ( if not exist Makefile c:\Users\me\qt5\qtbase\bin\qmake.exe C:\Users\me\qt5\qtbase\src\angle\src\compiler\preprocessor\preprocessor.pro -o Makefile ) && nmake -f Makefile
    
        Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
        Copyright (C) Microsoft Corporation.  All rights reserved.
    
                nmake -f Makefile.Debug all
    
        Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
        Copyright (C) Microsoft Corporation.  All rights reserved.
    
                (set PATH=C:/Users/me/qt5/gnuwin32/bin;%PATH:)=^)%) & flex --noline --nounistd --outfile=Tokenizer.cpp ..\..\..\..\3rdparty\angle\src\compiler\preprocessor\Tokenizer.l
        flex: unknown flag '-'.  For usage, try
                flex --help
        NMAKE : fatal error U1077: '(set' : return code '0x1'
        Stop.
        NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 12.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.
        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.
    

    What can I look at to help me solve this? Thanks

    1 Reply Last reply
    0
    • O Offline
      O Offline
      osssome
      wrote on 2 Oct 2015, 06:52 last edited by
      #2

      Solved.

      In this case the build config created something that gave double dash options to flex, which expected single dash options.

      The 5.5.0 source was pulled from git. It's possible I ran "perl init-rrepository" in the wrong environment. Not sure.

      Deleted all of the source and used the source zip instead. Everything went smoothly.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 2 Oct 2015, 07:08 last edited by
        #3

        Hi and welcome to devnet,

        Out of curiosity and since you used the developer-build option, are you intending to develop a feature or a bug fix for Qt ? If not you shouldn't use it.

        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
        • O Offline
          O Offline
          osssome
          wrote on 2 Oct 2015, 21:12 last edited by
          #4

          Hi SG,

          I need .pdb files. Looking to track down a bug in a project that uses Qt.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Oct 2015, 21:19 last edited by
            #5

            Then use the -debug option when building

            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
            • O Offline
              O Offline
              osssome
              wrote on 2 Oct 2015, 21:22 last edited by
              #6

              OK Thanks

              1 Reply Last reply
              0

              5/6

              2 Oct 2015, 21:19

              • Login

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