PDA

View Full Version : Problem with mingw (from msys)



lorebett
12th February 2009, 22:35
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?

jacek
13th February 2009, 01:27
How did you set MINGW_IN_SHELL and QTDIR environment variables?

lorebett
13th February 2009, 13:48
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?