Results 1 to 3 of 3

Thread: Problem with mingw (from msys)

  1. #1
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with mingw (from msys)

    I'm trying to compile a qt program from the tutorial (tutorial 7 which also uses moc), and if I generate makefile using qmake, and then run make

    I get the error upon running moc.exe:

    C:\Qt\4.4.3\bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -I'c:/Qt/4.4.3/include/QtCore' -I'c:/Qt/4.4.3/include/QtCore' -I'c:/Qt/4.4.3/include/QtGui' -I'c:/Qt/4.4.3/include/QtGui' -I'c:/Qt/4.4.3/include' -I'debug' -I'.' -I'c:/Qt/4.4.3/mkspecs/default' -D__GNUC__ -DWIN32 lcdrange.h -o debug/moc_lcdrange.cpp
    make: C:Qt4.4.3bin/moc.exe: Command not found
    of course this is due to the way moc.exe path is generated in the makefile, using windows path...

    note that this happens also if running

    qmake -unix

    am I missing something?
    Last edited by jacek; 12th February 2009 at 22:18. Reason: changed [code] to [quote]

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with mingw (from msys)

    How did you set MINGW_IN_SHELL and QTDIR environment variables?

  3. #3
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with mingw (from msys)

    Quote Originally Posted by jacek View Post
    How did you set MINGW_IN_SHELL and QTDIR environment variables?
    by reading another thread I had also tried setting MINGW_IN_SHELL to 1 and QTDIR to the actual qt directory, but nothing changes...

    is there a way to set these variables appropriately in order to make it work from within msys?

Similar Threads

  1. Qt 4.4.0 + MinGW + MySQL installation problem
    By jambrek in forum Installation and Deployment
    Replies: 2
    Last Post: 1st December 2008, 11:02
  2. Qt 4.3.1 & MinGW 5.1.3 & MSYS 1.0 qmake problem
    By mdecandia in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd October 2008, 16:52
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Qt with MinGW, compiling problem
    By nileshsince1980 in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2007, 09:00
  5. Problem to compile with MinGW + Qt 4 + winpcap
    By jlbrd in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2006, 16:32

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.