hi list,

This is my first message to the qgis-developer mailing list. Thanks for creating Quantum GIS!


I've a question about compiling qgis (using Windows, MSVC 2008). I've followed the instructions on the wiki page but still get some errors:

1) Many messages about updateMicroFocus(). I've commented (most of) those lines to continue. Googled it and found it as a "non fixed issue" on Qt
http://bugreports.qt.nokia.com/browse/QTBUG-9578
The listing below still contains one of them.

2) No module named py_compile (see complete listing below). It is on my disk c:\OSGeo4W\apps\Python25\Lib\py_compile.py but cannot be found somehow.

3) Cannot open include file: 'qnetworkconfiguration.h': indeed not in my Qt 4.6.2 distribution. But it is in Qt 4.7.1, will upgrade. Only used by sip.

4) cannot open file 'python25_d.lib', it is indeed not on my disk in c:\OSGeo4W. Also in listing below. Probably I've to build in release mode but my intent was to be able to debug things

All this is (AFAIK) related to Python, SIP. Can I skip this somehow? Or what else am I doing wrong or would be a solution? Does sip need another Qt than qgis needs?


Regards, Barend





1>------ Build started: Project: compile_python_files, Configuration: Debug Win32 ------
1>Performing Post-Build Event...
1>'import site' failed; use -v for traceback
1>Traceback (most recent call last):
1>  File "c:/_svn/qgis_trunk/cmake/PythonCompile.py", line 3, in <module>
1>    import py_compile
1>ImportError: No module named py_compile
1>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." 1>Build log was saved at "file://c:\_svn\qgis_trunk\build\python\compile_python_files.dir\Debug\BuildLog.htm"
1>compile_python_files - 1 error(s), 0 warning(s)
2>------ Build started: Project: python_module_qgis_gui, Configuration: Debug Win32 ------ 3>------ Build started: Project: python_module_qgis_core, Configuration: Debug Win32 ------
3>Compiling...
2>Compiling...
2>sipguipart3.cpp
3>sipcorepart1.cpp
4>------ Build started: Project: python_module_qgis_analysis, Configuration: Debug Win32 ------ 5>------ Build started: Project: pyspatialite, Configuration: Debug Win32 ------
5>Linking...
4>Linking...
5>LINK : fatal error LNK1104: cannot open file 'python25_d.lib'
4>LINK : fatal error LNK1104: cannot open file 'python25_d.lib'
4>Build log was saved at "file://c:\_svn\qgis_trunk\build\python\python_module_qgis_analysis.dir\Debug\BuildLog.htm" 5>Build log was saved at "file://c:\_svn\qgis_trunk\build\python\pyspatialite\pyspatialite.dir\Debug\BuildLog.htm"
5>pyspatialite - 1 error(s), 0 warning(s)
4>python_module_qgis_analysis - 1 error(s), 0 warning(s)
3>c:/_svn/qgis_trunk/python/core/conversions.sip(633) : warning C4005: 'sipClass_QVariant' : macro redefinition 3> c:\_svn\qgis_trunk\build\python\core\sipAPIcore.h(6402) : see previous definition of 'sipClass_QVariant' 3>C:/OSGeo4W/apps/Python25/sip/PyQt4/QtNetwork/qnetworkconfiguration.sip(38) : fatal error C1083: Cannot open include file: 'qnetworkconfiguration.h': No such file or directory 2>c:\osgeo4w\apps\gdal-17\include\cpl_config.h(16) : warning C4005: 'HAVE_SNPRINTF' : macro redefinition 2> c:\osgeo4w\apps\python25\include\pyerrors.h(320) : see previous definition of 'HAVE_SNPRINTF' 2>c:\osgeo4w\apps\gdal-17\include\cpl_config.h(60) : warning C4005: 'HAVE_DIRECT_H' : macro redefinition 2> c:\osgeo4w\apps\python25\include\pyconfig.h(383) : see previous definition of 'HAVE_DIRECT_H' 2>.\gui\sipguipart3.cpp(26684) : error C2039: 'updateMicroFocus' : is not a member of 'QGraphicsItem' 2> c:\software\libraries\qt\4.6.2\include\qtgui\../../src/gui/graphicsview/qgraphicsitem.h(90) : see declaration of 'QGraphicsItem' 2>.\gui\sipguipart3.cpp(26684) : error C3861: 'updateMicroFocus': identifier not found 2>Build log was saved at "file://c:\_svn\qgis_trunk\build\python\python_module_qgis_gui.dir\Debug\BuildLog.htm"
2>python_module_qgis_gui - 2 error(s), 2 warning(s)
3>Build log was saved at "file://c:\_svn\qgis_trunk\build\python\python_module_qgis_core.dir\Debug\BuildLog.htm"
3>python_module_qgis_core - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 5 failed, 58 up-to-date, 0 skipped ==========

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to