# HelloCanvas on Qt app using ROOT with VC2010&Qt 4.8.1

**URL:** <https://root-forum.cern.ch/t/hellocanvas-on-qt-app-using-root-with-vc2010-qt-4-8-1/14153>\
**Category:** ROOT\
**Created:** [April 16, 2012, 7:24pm UTC](https://root-forum.cern.ch/t/hellocanvas-on-qt-app-using-root-with-vc2010-qt-4-8-1/14153 "2012-04-16T19:24:56Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![christoph.mi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@christoph.mi](https://root-forum.cern.ch/u/christoph.mi)\
**Post date:** [March 17, 2013, 2:00pm UTC](https://root-forum.cern.ch/t/hellocanvas-on-qt-app-using-root-with-vc2010-qt-4-8-1/14153/28 "2013-03-17T14:00:27Z")

</div>

[quote=“fine”]I’ ve tried to repeat my own receipt [Locate like command](https://root-forum.cern.ch/t/locate-like-command/65/1) 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<](https://root-forum.cern.ch/uploads/default/original/1X/1566ef0d78260b997b270229fbe0e2bf7bbab46f.gif "Pray") attempt suffices to complete ![=D>](https://root-forum.cern.ch/uploads/default/original/1X/5f3a3a760e968ea2ee514dec344708ab389591b9.gif "Applause") 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!

---

_[View the full topic](https://root-forum.cern.ch/t/hellocanvas-on-qt-app-using-root-with-vc2010-qt-4-8-1/14153)._
