Results 1 to 7 of 7

Thread: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

  1. #1
    Join Date
    Jul 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    Windows7/Qt5.4 and Creator IDE/compiling on VS2010

    build message - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    Although I am sure I am pointing to the the correct libraries in the pro file. I cannot get past this message.
    Everything runs well in vs2010 using the QT5 addin but on the creator IDE nothing but this message.

    Any suggestions would be appreciated.

  2. #2
    Join Date
    Jul 2015
    Location
    Sweden
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    I'm taking a quick guess here. You've got a path containing a space (C:\Program Files...) somewhere that's not quoted in the generated makefiles.
    All paths with space chars must be quoted ("") or parts of the build system might fail.

    Easiest solution is to not have any paths with spaces in your project path. But if you want to find where it fails you need to dig down into the generated makefiles located in your build directory. Ctrl-5 in Qt Creator will take you to settings for your project and under Build Settings there you can see your current build directory.

    Never had this problem myself with Qt but the first place to look would be your .pro file. Any paths there with spaces must be quoted.

  3. #3
    Join Date
    Jul 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    Thanks for your advice - I thought it might work. But after putting all the quotes (" ") in and confirming that they were all in the makefile and the debug makefile. Nothing - just the annoying...

    NMAKE : fatal error U1073: don't know how to make 'C:\Program'.

    So here I stay....

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    Look at the actual commands being executed by Nmake because the error is there. We cannot see those so we cannot tell you exactly what the issue is.

    Also your sources and build directory should not be under that path as they may be for the examples. Windows rightly block writes there.

  5. #5
    Join Date
    Jul 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    Thanks everybody for taking the interest. But I 've got it all working by comparing notes with another example. So perhaps you could help me by explaining why

    This works

    LIBS +=$$quote(-LC:\Program Files\Basler\pylon 4\pylon\lib\Win32)\
    -lPylonBase_MD_VC100\

    and this does not

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../.."/Program Files/Basler/pylon 4/pylon/lib/Win32/ -lPylonBase_MD_VC100"
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../.."/Program Files/Basler/pylon 4/pylon/lib/Win32/ -lPylonBase_MD_VC100d"

    maybe my quotes where in the wrong place.

    Thanks again everybody.

    To ChrisW67
    You wrote "Look at the actual commands being executed by Nmake.. " I am assuming you mean in the makefile?

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    No, I meant the actual commands executed by Nmake when it processes the Makefile generated by qmake. Yes, the commands are ultimately in the Makefile, but looking at the actual command that failed removes the obscuring factor of the variable expansions etc. and may lead to the correct bit of the Makefile/PRO file faster. These should show in the Qt Creator Compiler Output tab.

    Qt Code:
    1. LIBS += -L$$PWD/../../../../../../.."/Program Files/Basler/pylon 4/pylon/lib/Win32/ -lPylonBase_MD_VC100"
    To copy to clipboard, switch view to plain text mode 
    by the time qmake and nmake are done and a Windows command shell gets the command you probably end up with:
    Qt Code:
    1. -L$$PWD/../../../../../../../Program
    2. Files/Basler/pylon
    3. 4/pylon/lib/Win32/
    4. -lPylonBase_MD_VC100
    To copy to clipboard, switch view to plain text mode 
    as 4 (not 2) arguments converted for the Microsoft linker.

    I would be inclined to try:
    Qt Code:
    1. LIBS += "-L$$PWD/../../../../../../../Program Files/Basler/pylon 4/pylon/lib/Win32/" -lPylonBase_MD_VC100
    2. // or
    3. LIBS += -L"$$PWD/../../../../../../../Program Files/Basler/pylon 4/pylon/lib/Win32/" -lPylonBase_MD_VC100
    To copy to clipboard, switch view to plain text mode 
    or an absolute path set only once (something like)
    Qt Code:
    1. PYLON_HOME="C:/Program Files/Basler/pylon 4/pylon"
    2. win32:CONFIG(release, debug|release): LIBS += -L"$$PYLON_HOME/lib/Win32" -lPylonBase_MD_VC100
    3. else:win32:CONFIG(debug, debug|release): LIBS += -L"$$PYLON_HOME/lib/Win32" -lPylonBase_MD_VC100d
    To copy to clipboard, switch view to plain text mode 

  7. #7
    Join Date
    Jul 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: build mesage - NMAKE : fatal error U1073: don't know how to make 'C:\Program'

    ChrisW67 - many thanks for the trouble you have taken in explaining what these commands mean. Greatly appreciated.

Similar Threads

  1. Replies: 0
    Last Post: 28th June 2014, 02:55
  2. Qt won't build: Fatal error C1902, need help.
    By Lonatico in forum Installation and Deployment
    Replies: 0
    Last Post: 25th August 2013, 20:54
  3. nmake Error when build qwt
    By Jörg Kunath in forum Qwt
    Replies: 2
    Last Post: 20th February 2013, 09:32
  4. win 7 vs2010 nmake fatal error U1077
    By danca226 in forum Installation and Deployment
    Replies: 3
    Last Post: 10th September 2011, 15:23
  5. Qt nmake error - can I continue with build?
    By QPlace in forum Installation and Deployment
    Replies: 0
    Last Post: 7th April 2009, 18:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.