[Interest] I can't build qtsvg of Qt5 in windows 7 x64, msvc 2010

Rohan McGovern rohan.mcgovern at nokia.com
Mon Jan 16 03:05:36 CET 2012


liang jian said:
> 
>     I grab the Qt5 source from gitorious and configure it as follows:
>     configure -debug-and-release -platform win32-msvc2010 -no-dsp
> -no-webkit -opensource -nomake examples -nomake tests
> 
>     Build failed when it start to build qtsvg module, the error
> message is listed below:
> 
>     qsvggraphics.cpp
> e:\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include
> file: 'qdebug.h': No such file or directory
> qsvghandler.cpp
> e:\qt5\qtbase\mkspecs\win32-msvc2010\../win32-msvc2005/qplatformdefs.h(53) : fat
> al error C1083: Cannot open include file: 'qglobal.h': No such file or directory
> 
> qsvgnode.cpp
> e:\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include
> file: 'qdebug.h': No such file or directory
> qsvgstructure.cpp
> e:\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include
> file: 'qdebug.h': No such file or directory
> qsvgstyle.cpp
> e:\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include
> file: 'qdebug.h': No such file or directory
> qsvgfont.cpp
> e:\qt5\qtsvg\src\svg\qsvgfont_p.h(56) : fatal error C1083: Cannot open include f
> ile: 'qpainterpath.h': No such file or directory
> qsvgtinydocument.cpp
> e:\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include
> file: 'qdebug.h': No such file or directory
> qsvgrenderer.cpp
> e:\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include
> file: 'qdebug.h': No such file or directory
> qsvgwidget.cpp
> .\qsvgwidget.cpp(48) : fatal error C1083: Cannot open include file: 'qpainter.h'
> : No such file or directory
> qgraphicssvgitem.cpp
> .\qgraphicssvgitem.cpp(45) : fatal error C1083: Cannot open include file: 'qpain
> ter.h': No such file or directory
> qsvggenerator.cpp
> .\qsvggenerator.cpp(46) : fatal error C1083: Cannot open include file: 'qpainter
> path.h': No such file or directory
> Generating Code...
> NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 10.0
> \VC\BIN\amd64\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 10.0
> \VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> 
>     How can I avoid this build error?

This kind of error usually means that syncqt has failed.
And syncqt failing on Windows is usually caused by a missing or
broken perl.

Please check that you have a working perl >= 5.10 in PATH.

If you still have problems, please show the full build log (at least we
should see the part where syncqt is run).



More information about the Interest mailing list