Results 1 to 4 of 4

Thread: Strange shell error (Qmake, Win32, MinGW)

  1. #1
    Join Date
    Aug 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Strange shell error (Qmake, Win32, MinGW)

    I have a problem with a Qt project that specifies install commands. My build toolkit is a standard, recent MinGW installation, external to Qt 4.6. The install part of the build fails with this message:
    zsh: command not found: mkdir
    Which is weird since I can't find any zsh executable on my system.

    I got exactly the same result from running "make install" from the MS shell in the build directory, which is also weird as it is not supposed to know about make. But it did, because some old install of Hugin had put a dir containing gnu make on PATH (but that dir has no zsh.exe either). I removed that dir from PATH.

    However, the build continues to fail when run from Qt Creator, but works fine if I run "make install" from the Msys shell.

    I _think_ this project worked with a previous installation of Qt -- 4.4 or 4.5.

    Any insights?

    And can anyone point me at documentation of how Qt Creator decides what shell to run, and how it sets that shell's environment?

    Thanks, Tom

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Strange shell error (Qmake, Win32, MinGW)

    I don't know any settings of MingW, but it seems you set the default shell of MingW to zsh and not bash (if that is at all possible).

  3. #3
    Join Date
    Aug 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Strange shell error (Qmake, Win32, MinGW)

    I don't think it is, especially since zsh does not exist on this system.

    The root problem was clearly that unsuitable version of gnu make found in the Hugin directory. After I took that off the path, _and_ rebooted, and ran "rebuild all" in Qt Creator, the install still failed, but the error message was from MS command shell, saying that it could not find "test".

    Then I ran qmake, after which the build now works. Evidently qmake has somehow enabled the MingGW shell environment, that the Makefile expected all along. Why it did not do so before (and why "rebuild all" doesn't run qmake) I will leave to the Qt internal gurus.

    -- Tom

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Strange shell error (Qmake, Win32, MinGW)

    mkdir is not a standard command in zsh. It is available if you install the files module.

    I'm very sure that error means that you're using zsh and it can not find the command mkdir.

Similar Threads

  1. win32, how to modify the manifest with qmake?
    By andres in forum Installation and Deployment
    Replies: 4
    Last Post: 13th July 2012, 08:09
  2. Shadow build QT for the win32-g++ (MinGw) platform.
    By Avrohom in forum Installation and Deployment
    Replies: 0
    Last Post: 20th January 2009, 23:10
  3. Replies: 2
    Last Post: 20th February 2008, 20:48
  4. Qt 4.3.3 MinGW (win32) - MMX/SSE/SSE2
    By pokey909 in forum Installation and Deployment
    Replies: 1
    Last Post: 17th January 2008, 07:19
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.