HelloCanvas on Qt app using ROOT with VC2010&Qt 4.8.1

[quote=“fine”]I’ ve tried to repeat my own receipt Locate like command from the scratch and found no Qt/Root/QtRoot related issue.

However, there is a problem that is caused by some bug from cygiwn/make package. Sometimes the shell script to compile the long C++ package (like ROOT) can stop abruptly . In this case one just should restart the process. To do that do

source set_environment.sh cd root make Normally one [-o< attempt suffices to complete =D> the build.[/quote]

Hi,
thanks to your help I was finally able to build Root and QtRoot. All in all I had to repeat three times: make
to finish the INSTALL_QTROOT-Script.

Anyway, I could not successfully build the qtExamples:

[code]Setting up a Qt environment…
– QTDIR set to C:\Qt\4.8.3
– Added C:\Qt\4.8.3\bin to PATH
– QMAKESPEC set to “win32-msvc2010”
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

Christoph@Christoph-PC ~
$ cd C:

Christoph@Christoph-PC /cygdrive/c
$ cd QTR2/

Christoph@Christoph-PC /cygdrive/c/QTR2
$ source set_environment.sh

Christoph@Christoph-PC /cygdrive/c/QTR2
$ cd qtRoot/qtExamples/

Christoph@Christoph-PC /cygdrive/c/QTR2/qtRoot/qtExamples
$ qmake
Project MESSAGE: This project us to build HelloCanvas HelloWord HelloClick Hello
QPainter HelloZoomer Qt4/CustomWidgets Qt4/HelloFileBrowser Qt4/HelloSignal Qt/R
oot examples

Christoph@Christoph-PC /cygdrive/c/QTR2/qtRoot/qtExamples
$ nmake

Microsoft ® Program Maintenance Utility, Version 10.00.30319.01
Copyright © Microsoft Corporation. Alle Rechte vorbehalten.

    cd HelloCanvas\ && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\

VC\BIN\nmake.exe" -f Makefile

Microsoft ® Program Maintenance Utility, Version 10.00.30319.01
Copyright © Microsoft Corporation. Alle Rechte vorbehalten.

    "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -

f Makefile.Debug

Microsoft ® Program Maintenance Utility, Version 10.00.30319.01
Copyright © Microsoft Corporation. Alle Rechte vorbehalten.

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189

-DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_WARNINGS -DQT_DLL -DQ
T_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAV
E_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"…
…\Qt\4.8.3\include\QtCore" -I"…\Qt\4.8.3\include\QtGui" -I"…
…\Qt\4.8.3\include\Qt3Support" -I"…\Qt\4.8.3\include" -I"/cygdri
ve/c/QTR2/root\include" -I"…\Qt\4.8.3\include\ActiveQt" -I"debug" -I".
…\Qt\4.8.3\mkspecs\win32-msvc2010" -Fodebug\ @C:\cygwin\tmp\nm35A5.tmp
HelloCanvas.cxx
.\HelloCanvas.cxx(8) : fatal error C1083: Datei (Include) kann nicht geöffnet we
rden: “TGraph.h”: No such file or directory
NMAKE : fatal error U1077: ““C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE””: Rückgabe-Code “0x2”
Stop.
NMAKE : fatal error U1077: ““C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe””: Rückgabe-Code “0x2”
Stop.
NMAKE : fatal error U1077: “cd”: Rückgabe-Code “0x2”
Stop.
[/code]

Does anyone have an idea??
Thanks in advance!