[vtkusers] Cannot open include file: 'QVTKWidget': No such file or directory

Ahmad falahatpisheh at gmail.com
Tue Feb 14 21:40:20 EST 2012


Hi All,

I have a problem in using QVTKWidget in Visual Studio. Although QVTKWidget.h
is in the directory C:\VTK\Include\vtk-5.8.0, VS cannot open it. I already
put that directory in the VC++ directories. But it does not work. Could
someone kindly help me? Below is the build log. Thanks a lot.
******************************************************
Build Log      Rebuild started: Project: QtTest, Configuration: Debug|x64
 Command Lines      Creating temporary file "c:\Users\Ahmad\Documents\Visual
Studio 2008\Projects\QtTest\QtTest\x64\Debug\BAT00002B49841188.bat" with
contents
[
@echo off

"C:\Qt\4.8.0_x64\\bin\uic.exe" -o ".\GeneratedFiles\ui_qttest.h"
"c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\qttest.ui"



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Uic'ing
qttest.ui..."

exit 1

:VCEnd
]
Creating command line """c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\BAT00002B49841188.bat"""
Creating temporary file "c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\BAT00002C49841188.bat" with contents
[
@echo off

"C:\Qt\4.8.0_x64\\bin\moc.exe"   -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_LARGEFILE_SUPPORT -DUNICODE -DWIN32  "-I.\GeneratedFiles"
"-IC:\Qt\4.8.0_x64\\include" "-I.\GeneratedFiles\Debug\."
"-IC:\Qt\4.8.0_x64\\include\QtCore" "-IC:\Qt\4.8.0_x64\\include\QtGui" "-I."
"c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\qttest.h" -o
".\GeneratedFiles\Debug\moc_qttest.cpp" "-fStdAfx.h" "-f../../qttest.h"



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Moc'ing
qttest.h..."

exit 1

:VCEnd
]
Creating command line """c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\BAT00002C49841188.bat"""
Creating temporary file "c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\BAT00002D49841188.bat" with contents
[
@echo off

"C:\Qt\4.8.0_x64\\bin\rcc.exe" -name "qttest" -no-compress
"c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\qttest.qrc" -o .\GeneratedFiles\qrc_qttest.cpp



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Rcc'ing
qttest.qrc..."

exit 1

:VCEnd
]
Creating command line """c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\BAT00002D49841188.bat"""
Creating temporary file "c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\RSP00002E49841188.rsp" with contents
[
/Od /I ".\GeneratedFiles" /I "C:\Qt\4.8.0_x64\\include" /I
".\GeneratedFiles\Debug" /I "C:\Qt\4.8.0_x64\\include\QtCore" /I
"C:\Qt\4.8.0_x64\\include\QtGui" /I "." /D "QT_CORE_LIB" /D "QT_GUI_LIB" /D
"QT_LARGEFILE_SUPPORT" /D "UNICODE" /D "WIN32" /FD /EHsc /MDd /Zc:wchar_t-
/Yu"StdAfx.h" /Fp"x64\Debug\QtTest.pch" /Fo"x64\Debug\\"
/Fd"x64\Debug\vc90.pdb" /c /Zi /TP ".\GeneratedFiles\Debug\moc_qttest.cpp"

".\qttest.cpp"

".\main.cpp"
]
Creating command line "cl.exe @"c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\RSP00002E49841188.rsp" /nologo
/errorReport:prompt"
Creating temporary file "c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\RSP00002F49841188.rsp" with contents
[
/Od /I ".\GeneratedFiles" /I "C:\Qt\4.8.0_x64\\include" /I
".\GeneratedFiles\Debug" /I "C:\Qt\4.8.0_x64\\include\QtCore" /I
"C:\Qt\4.8.0_x64\\include\QtGui" /I "." /D "QT_CORE_LIB" /D "QT_GUI_LIB" /D
"QT_LARGEFILE_SUPPORT" /D "UNICODE" /D "WIN32" /FD /EHsc /MDd /Zc:wchar_t-
/Yc"StdAfx.h" /Fp"x64\Debug\QtTest.pch" /Fo"x64\Debug\\"
/Fd"x64\Debug\vc90.pdb" /c /Zi /TP ".\stdafx.cpp"
]
Creating command line "cl.exe @"c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\RSP00002F49841188.rsp" /nologo
/errorReport:prompt"
Creating temporary file "c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\RSP00003049841188.rsp" with contents
[
/Od /I ".\GeneratedFiles" /I "C:\Qt\4.8.0_x64\\include" /I
".\GeneratedFiles\Debug" /I "C:\Qt\4.8.0_x64\\include\QtCore" /I
"C:\Qt\4.8.0_x64\\include\QtGui" /I "." /D "QT_CORE_LIB" /D "QT_GUI_LIB" /D
"QT_LARGEFILE_SUPPORT" /D "UNICODE" /D "WIN32" /FD /EHsc /MDd /Zc:wchar_t-
/Fp"x64\Debug\QtTest.pch" /Fo"x64\Debug\\" /Fd"x64\Debug\vc90.pdb" /c /Zi
/TP ".\GeneratedFiles\qrc_qttest.cpp"
]
Creating command line "cl.exe @"c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\x64\Debug\RSP00003049841188.rsp" /nologo
/errorReport:prompt"
 Output Window      Uic'ing qttest.ui...
Moc'ing qttest.h...
Rcc'ing qttest.qrc...
RCC: Warning: No resources in 'c:\Users\Ahmad\Documents\Visual Studio
2008\Projects\QtTest\QtTest\qttest.qrc'.
Compiling...
stdafx.cpp
c:\users\ahmad\documents\visual studio
2008\projects\qttest\qttest\stdafx.h(2) : fatal error C1083: Cannot open
include file: 'QVTKWidget': No such file or directory
 Results      Build log was saved at "file://c:\Users\Ahmad\Documents\Visual
Studio 2008\Projects\QtTest\QtTest\x64\Debug\BuildLog.htm"
QtTest - 1 error(s), 0 warning(s)
  


--
View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-open-include-file-QVTKWidget-No-such-file-or-directory-tp5484687p5484687.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list