Re [Qgis-developer] compile python bindings with msvc
Marco Hugentobler
marco at hugis.net
Sat Nov 14 07:50:36 EST 2009
Hi Jürgen and Tim
Thanks for your hints. From Jürgens scripts, I saw, that it is necessary to
set the variables PYTHONPATH, PYTHONHOME and to add the path to python.exe to
PATH.
Additionally, I found, that in OSGEO4W bin/pyuic4.bat, the path C:\Programs is
hardcoded (should be H:\ for me). Maybe this could be changed such that there
is no confusion for other people compiling QGIS themselves on windows.
Regards,
Marco
Am Donnerstag, 12. November 2009 12.36:26 schrieb Tim Sutton:
> Sent from my mobile phone.
>
> -----Original Message-----
> From: "Tim Sutton" <lists at linfiniti.com>
> Date: Thu, 12 Nov 2009 11:33:52
> To: Marco Hugentobler<marco at hugis.net>
> Subject: Re: [Qgis-developer] compile python bindings with msvc
>
> Hi
>
> You need to compile from in vcexpress launched from an osgeo4w shell. Also
> need to use cmake advanced options to set python lib etc.
>
> Another option that Juergen was showing me at the hackfest is to compile
> using his package builder - however the process does not build cleanly for
> me yet. I have kept some notes on the procedure which I will post to my
> blog once it is working properly.
>
> Regards
>
> Tim
> ------Original Message------
> From: Marco Hugentobler
> Sender: qgis-developer-bounces at lists.osgeo.org
> To: QGIS Developer
> Subject: [Qgis-developer] compile python bindings with msvc
> Sent: Nov 12, 2009 11:08 AM
>
> Hi devs
>
> I'm trying to build the python bindings on windows with msvc, using Qt and
> the python classes from OSGEO4W.
> cmake tells me that 'PyQt4 development files are missing'. Obviously, the
> statement 'from PyQt4 import QtCore, QtGui, QtNetwork, QtSvg, QtXml' in
> Python.cmake fails.
>
> Do I need to set an environment variable such that python finds the PyQt4
> files? Or is there a cmake variable that I can set?
>
> Thanks for your help,
> Marco
>
--
Dr. Marco Hugentobler
HUGIS - GIS programming and consulting
Honrainweg 5
CH-8038 Zürich
marco at hugis.net
http://homepage.hispeed.ch/hugis/
More information about the Qgis-developer
mailing list