Results 1 to 8 of 8

Thread: cant ceate makefile

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: cant create makefile

    Quote Originally Posted by raphaelf
    i am trying to make the MAKEFILE of qwtplot3d.pro and i was not able because i get this error message:
    NMAKE : fatal error U1064: MAKEFILE not found and no target specified
    Stop.
    Are you used qmake?

    You must do this
    $qmake -o Makefile <name>.pro
    $make
    A camel can go 14 days without drink,
    I can't!!!

  2. #2
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: cant ceate makefile

    hi mcosta,

    i tried:
    qmake qwtplot3d.pro
    nmake


    if i try your example i get a Makefile and a error:
    qmake -o Makefile qwtplot3d.pro
    nmake

    Error:
    Qt Code:
    1. This is not a valid makefile. To build this project using NMAKE,
    2. use the Export Makefile command and run
    3.  
    4. NMAKE /f "qwtplot3d.mak".
    5.  
    6. You can specify a configuration when running NMAKE
    7. by defining the macro CFG on the command line. For example:
    8.  
    9. NMAKE /f "qwtplot3d.mak" CFG="qwtplot3d - Win32 Debug"
    10.  
    11. Possible choices for configuration are:
    12.  
    13. "qwtplot3d - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
    14. "qwtplot3d - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
    15.  
    16. NMAKE : fatal error U1073: don't know how to make '""'
    17. Stop.
    To copy to clipboard, switch view to plain text mode 

    Bevor i have allways used qmake <name>.pro and nmake to compile everything
    Think DigitalGasoline

  3. #3
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: cant ceate makefile

    Try
    qmake -makefile -spec win32-msvc [name].pro
    or
    qmake -makefile -spec win32-msvc.net [name].pro
    If it works then your QMAKESPEC env var is not set correctly.
    Could you post the Makefile that does not build?

  4. #4
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: cant ceate makefile

    hi yop

    My QMAKESPEC env var is set = "win32-msvc" and i have compiled more then 100 examples
    Its just amazing that i am not able to compile qwtplot3d.pro ;(

    I have tried:
    qmake -makefile -spec win32-msvc [name].pro
    and
    qmake -makefile -spec win32-msvc.net [name].pro
    and i get this:
    Qt Code:
    1. This is not a valid makefile. To build this project using NMAKE,
    2. use the Export Makefile command and run
    3.  
    4. NMAKE /f "qwtplot3d.mak".
    5.  
    6. You can specify a configuration when running NMAKE
    7. by defining the macro CFG on the command line. For example:
    8.  
    9. NMAKE /f "qwtplot3d.mak" CFG="qwtplot3d - Win32 Debug"
    10.  
    11. Possible choices for configuration are:
    12.  
    13. "qwtplot3d - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
    14. "qwtplot3d - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
    15.  
    16. NMAKE : fatal error U1073: don't know how to make '""'
    17. Stop.
    To copy to clipboard, switch view to plain text mode 

    if i run:
    qmake -o Makefile qwtplot3d.pro
    nmake

    i get this makefile:
    Attached Files Attached Files
    Think DigitalGasoline

  5. #5
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: cant ceate makefile

    My experience is with gnu make makefiles so you should keep in mind that I might be mistaking. The only line that seems that could fail is: $(SOURCE) "$(INTDIR)" "$(OUTDIR)" when generating the moced sources. Could you try setting the MOC_DIR in your .pro file?

  6. #6
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: cant ceate makefile

    hi!

    how should i set the MOC_Dir and wich values? Or where could i read about?
    Think DigitalGasoline

  7. #7
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: cant ceate makefile

    Quote Originally Posted by raphaelf
    hi!

    how should i set the MOC_Dir and wich values? Or where could i read about?
    Just write
    Qt Code:
    1. MOC_DIR = mocs
    To copy to clipboard, switch view to plain text mode 
    in your .pro file. See your Qt documentation for the "qmake User Guide" I find this a must if you are developing using Qt

Similar Threads

  1. install help nedded.
    By aj2903 in forum Installation and Deployment
    Replies: 9
    Last Post: 13th November 2008, 07:57
  2. Add Librabries in Makefile on Linux
    By nasty81 in forum Qt Programming
    Replies: 5
    Last Post: 21st April 2008, 15:58
  3. not able to change Makefile
    By shamik in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2007, 12:00
  4. Replies: 5
    Last Post: 13th March 2006, 20:22
  5. Problem with a makefile
    By Tweety in forum Qt Programming
    Replies: 16
    Last Post: 15th February 2006, 19:34

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
  •  
Qt is a trademark of The Qt Company.