building qt 5.x under windows developer prompt



  • 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



  • 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.


  • Lifetime Qt Champion

    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.



  • Hi SG,

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


  • Lifetime Qt Champion

    Then use the -debug option when building



  • OK Thanks



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.