Results 1 to 8 of 8

Thread: Qt command prompt - "'make' is not recognized as an internal or external command..."

  1. #1
    Join Date
    Jan 2009
    Posts
    21
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt command prompt - "'make' is not recognized as an internal or external command..."

    I recently uninstalled Qt 4.4.3 (or perhaps it was 4.3.3) and installed the latest Qt. 'make' used to work from my older Qt command prompt, but now when trying to use 'make' I get the message
    'make' is not recognized as an internal or external command, operable program or batch file.
    This older thread says that there is a make.bat file, but there is no make.bat (or make.exe) file in the Qt\2009.03\qt\bin folder or the Qt\2009.03\mingw\bin folder. I searched for make.bat in file explorer and it couldn't find such a file on my hard drive. Don't know if that only applies to older versios of Qt.

    I placed %QTDIR%\bin is in my system path (also tried %QTDIR%/bin as the thread says). Also when I start the Qt command prompt it says:
    Setting up a MinGW/Qt only environment...
    -- QTDIR set to C:\Qt\2009.03\qt
    -- PATH set to C:\Qt\2009.03\qt\bin
    -- Adding C:\Qt\2009.03\bin to PATH
    -- Adding C:\Windows\System32 to PATH
    -- QMAKESPEC set to win32-g++
    So I don't know why make fails. 'qmake' works fine, and I can make my program by entering c:\Qt\2009.03\mingw\bin\mingw32-make.exe. But I can't figure out why 'make' is not working fine.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    Create a make.bat file that will simply call mingw32-make.exe and pass it all arguments it receives (or rename mingw32-make.exe to make.exe). As far as I remember, there is no "make.exe" in mingw, only mingw43-make.exe.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    Quote Originally Posted by wysota View Post
    ... there is no "make.exe" in mingw, only mingw43-make.exe.
    Should be mingw32-make.exe, not 43.
    I'm a rebel in the S.D.G.

  4. #4
    Join Date
    Oct 2012
    Posts
    2
    Platforms
    MacOS X Windows

    Arrow Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    'make' is not recognized as an internal or external command.
    An alternative to qmake if it is not working:
    CREATENEW> <filename>.<extension>
    This creates any type of file within a directory. It may say it is not an internal or external command, but it does as told anyway!

  5. #5
    Join Date
    Oct 2012
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    Untitled.jpg

    This is the error shown when i try to use mingw32-make command. Plzz help urgently..

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    I think the error is pretty much self explanatory -- the compiler can't find a file you are trying to include.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. The following user says thank you to wysota for this useful post:

    Karan (20th October 2012)

  8. #7
    Join Date
    Oct 2012
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    I deleted the qwt folder and the installed again:

    This is how the error goes -- pls explain explicitly as i am a newbie..

    C:\Program Files (x86)\Qwt>qmake qwt.pro

    C:\Program Files (x86)\Qwt>mingw32-make
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Program Files (x86)/Qwt'
    g++ -c -g -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -
    DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_THREAD_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_C
    ORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_S
    SE2 -I"..\..\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCor e" -I"..\..\QtSDK\Desktop
    \Qt\4.7.4\mingw\include\QtGui" -I"..\..\QtSDK\Desktop\Qt\4.7.4\mingw\include" -I
    "include" -I"..\..\QtSDK\Desktop\Qt\4.7.4\mingw\include\Activ eQt" -I"src\moc" -I
    "..\..\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\defaul t" -o src\obj\qwt_autoscl.o sr
    c\qwt_autoscl.cpp
    In file included from include/qwt_scldiv.h:14,
    from include/qwt_autoscl.h:14,
    from src\qwt_autoscl.cpp:11:
    include/qwt_array.h:25:23: error: qmemarray.h: No such file or directory
    In file included from src\qwt_autoscl.cpp:10:
    include/qwt_math.h: In function 'void qwtShiftArray(T*, int, int)':
    include/qwt_math.h:162: error: there are no arguments to 'QABS' that depend on a
    template parameter, so a declaration of 'QABS' must be available
    include/qwt_math.h:162: note: (if you use '-fpermissive', G++ will accept your c
    ode, but allowing the use of an undeclared name is deprecated)
    In file included from include/qwt_autoscl.h:14,
    from src\qwt_autoscl.cpp:11:
    include/qwt_scldiv.h: At global scope:
    include/qwt_scldiv.h:18: error: 'QMemArray' is not a template
    include/qwt_scldiv.h:18: error: explicit instantiation of non-template type 'QMe
    mArray'
    include/qwt_scldiv.h:128: error: 'QMemArray' is not a template
    include/qwt_scldiv.h:128: error: field 'd_majMarks' has incomplete type
    include/qwt_scldiv.h:129: error: 'QMemArray' is not a template
    include/qwt_scldiv.h:129: error: field 'd_minMarks' has incomplete type
    include/qwt_scldiv.h: In member function 'uint QwtScaleDiv::minCnt() const':
    include/qwt_scldiv.h:91: error: 'd_minMarks' was not declared in this scope
    include/qwt_scldiv.h: In member function 'uint QwtScaleDiv::majCnt() const':
    include/qwt_scldiv.h:96: error: 'd_majMarks' was not declared in this scope
    include/qwt_scldiv.h: In member function 'double QwtScaleDiv::majMark(int) const
    ':
    include/qwt_scldiv.h:105: error: 'd_majMarks' was not declared in this scope
    include/qwt_scldiv.h: In member function 'double QwtScaleDiv::minMark(int) const
    ':
    include/qwt_scldiv.h:107: error: 'd_minMarks' was not declared in this scope
    In file included from src\qwt_autoscl.cpp:11:
    include/qwt_autoscl.h: At global scope:
    include/qwt_autoscl.h:114: error: 'QMemArray' is not a template
    src\qwt_autoscl.cpp:131: error: 'QMemArray' is not a template
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::adjust(const QMemArr
    ay&, int)':
    src\qwt_autoscl.cpp:133: error: invalid use of incomplete type 'const struct QMe
    mArray'
    include/qwt_scldiv.h:18: error: forward declaration of 'const struct QMemArray'
    src\qwt_autoscl.cpp:133: error: invalid use of incomplete type 'const struct QMe
    mArray'
    include/qwt_scldiv.h:18: error: forward declaration of 'const struct QMemArray'
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::adjust(double, doubl
    e, int)':
    src\qwt_autoscl.cpp:152: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:153: error: 'QMIN' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::buildLinScale()':
    src\qwt_autoscl.cpp:241: error: 'QABS' was not declared in this scope
    src\qwt_autoscl.cpp:241: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::buildLogScale()':
    src\qwt_autoscl.cpp:315: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:332: error: 'QABS' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setMargins(double, d
    ouble)':
    src\qwt_autoscl.cpp:463: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setMaxMajor(int)':
    src\qwt_autoscl.cpp:479: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:480: error: 'QMIN' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setMaxMinor(int)':
    src\qwt_autoscl.cpp:491: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:491: error: 'QMIN' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setRange(double, dou
    ble)':
    src\qwt_autoscl.cpp:512: error: 'QMIN' was not declared in this scope
    src\qwt_autoscl.cpp:513: error: 'QMAX' was not declared in this scope
    src\qwt_autoscl.cpp: In member function 'void QwtAutoScale::setReference(double)
    ':
    src\qwt_autoscl.cpp:675: error: 'QMIN' was not declared in this scope
    mingw32-make[1]: *** [src/obj/qwt_autoscl.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Program Files (x86)/Qwt'
    mingw32-make: *** [debug] Error 2

  9. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt command prompt - "'make' is not recognized as an internal or external command.

    Are you trying to build Qwt or did you include Qwt into your own project and trying to build that? If the former then Qwt comes with instructions how to build it. If you can't handle it, download an already compiled version.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Q3ScrollView resists to scroll down to the garbage bin
    By sivrisinek in forum Qt Programming
    Replies: 0
    Last Post: 5th February 2009, 17:50
  2. Replies: 16
    Last Post: 23rd May 2008, 10:12
  3. Replies: 15
    Last Post: 17th June 2007, 17:41
  4. 'make' is not recognized as an internal or external command
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 9th June 2007, 15:55

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.