Qt-interest Archive, October 2007
Moc error in Visual Studio
Message 1 in thread
Hi everyone,
This error I'm getting from VS 2005 is a little vague to me, would anyone
have an insight as to where to start? The main Qt project compiles but when
it comes time to moc, this appears:
Moc'ing TextureViewer.h
The system cannot find the path specifiied
'Project : error PRJ0019: A tool returned an error code from "Moc'ing
TextureViewer.h..."
Any starting points? I get this too, not sure if it's related to the above:
BSCMAKE: error Bk1506: cannot open file '.\Debug\DirectionVector.sbr: no
such file or directory
--
[ signature omitted ]
Message 2 in thread
I have ran across this problem several times before and from what I can tell
and have been told by others the problem seems to come from having to long a
include path and VS somehow cropping it before sending to the MOC'er
I have found a couple of solutions:
1. Check your includes. Remove any that are unnescessary or repeated
2. Change your wokring directory to a location with a shorter file path
(i.e. work from C:\)
3. Manually Moc the file and see if you have any errors
%QTDIR%\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
-DTESTING_ENABLED -DTRACE_ON -D_DEBUG -D_X86 -DQT_DLL -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_THREAD_SUPPORT "Interface\fileName.h" -o
"Intermediate\Debug\moc_fileName.cpp"
I could be wrong but I don't think that other error is related.
Hope one of those helps
Ben Shaw
-----Original Message-----
From: Jim Bancroft [mailto:babbaloo@xxxxxxxxxxx]
Sent: Thursday, 4 October 2007 7:53 AM
To: qt-interest@xxxxxxxxxxxxx
Subject: Moc error in Visual Studio
Hi everyone,
This error I'm getting from VS 2005 is a little vague to me, would anyone
have an insight as to where to start? The main Qt project compiles but when
it comes time to moc, this appears:
Moc'ing TextureViewer.h
The system cannot find the path specifiied
'Project : error PRJ0019: A tool returned an error code from "Moc'ing
TextureViewer.h..."
Any starting points? I get this too, not sure if it's related to the above:
BSCMAKE: error Bk1506: cannot open file '.\Debug\DirectionVector.sbr: no
such file or directory
--
[ signature omitted ]
Message 3 in thread
Jim Bancroft schrieb:
> Hi everyone,
> ...
> Any starting points?
Check the custom build steps of the file in question. Make sure you have
the proper paths to your Qt installation setup in the Qt Addin and/or Qt
Integration for Visual Stdudio 2005.
Cheers, Oliver
--
[ signature omitted ]
Message 4 in thread
Information about BK1506 here:
http://msdn2.microsoft.com/en-us/library/Aa228917(VS.60).aspx.
PRJ0019 means there is an error for a custom build step/event, but it's
confusing, because you get it for syntax errors in your header files. To
see the error, you have to go to the Output window and look for the line
number, something like this:
Moc'ing ..\h\MyClass.h...
..\h\MyClass.h(76): Error: syntax error
Project : error PRJ0019: A tool returned an error code: "Moc'ing
..\h\MyClass.h..."
Sam Dutton
SAM DUTTON
SENIOR SITE DEVELOPER
200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F
E SAM.DUTTON@xxxxxxxxx
WWW.ITN.CO.UK
P Please consider the environment. Do you really need to print this email?
-----Original Message-----
From: Jim Bancroft [mailto:babbaloo@xxxxxxxxxxx]
Sent: Wednesday 03 October 2007 22:53
To: qt-interest@xxxxxxxxxxxxx
Subject: Moc error in Visual Studio
Hi everyone,
This error I'm getting from VS 2005 is a little vague to me, would
anyone have an insight as to where to start? The main Qt project
compiles but when it comes time to moc, this appears:
Moc'ing TextureViewer.h
The system cannot find the path specifiied 'Project : error PRJ0019: A
tool returned an error code from "Moc'ing TextureViewer.h..."
Any starting points? I get this too, not sure if it's related to the
above:
BSCMAKE: error Bk1506: cannot open file '.\Debug\DirectionVector.sbr: no
such file or directory
--
[ signature omitted ]