[QScintilla] building qscintilla on win32, problem with moc files

Phil Thompson phil at riverbankcomputing.com
Fri Jun 19 21:53:44 BST 2009


On Fri, 19 Jun 2009 23:11:23 +0400, "Andrey Bezrukov"
<bezrukov at southural.ru> wrote:
> Hello everyone!
> 
> I am trying to build qscintilla on win32 using this cmd commands
> --------------------
> set QTDIR=C:\Qt\2009.02\qt
> set PATH=%PATH%;C:\Qt\2009.02\qt\bin
> cd D:\QScintilla-gpl-2.4\Qt4
> D:
> qmake.exe qscintilla.pro
> set QMAKESPEC=win32-g++
> set PATH=%PATH%;C:\Qt\2009.02\mingw\bin
> nmake
> --------------------
> 
> 
> nmake gives me this error:
> 
> --------------------
>  -I"c:\Qt\2009.02\qt\include\QtCore"
> -I"c:\Qt\2009.02\qt\include\QtGui"
> -I"c:\Qt\2009.02\qt\include" -I"." -I"..\include"
> -I"..\src" -I"c:\Qt\2009.02\qt\include
> \ActiveQt" -I"release" -I"."
> -I"c:\Qt\2009.02\qt\mkspecs\win32-g++" -o
> release\moc_qsciscintilla.o release\moc_qsciscintilla.cpp
> g++: release\moc_qsciscintilla.cpp: No such file or directory
> g++: no input files
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return
> code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return
> code '0x2'
> Stop.
> --------------------
> 
> Indeed, in "Qt4\release\ folder" I have only "*.o" files. Why MOC
> files failed to be created?
> 
> Could anyone help me? What I'm doing wrong?

Set QMAKESPEC before you run qmake, not after.

Phil


More information about the QScintilla mailing list