[Qgis-developer] Re: INSTALL.t2t edits

John C. Tull jctull at gmail.com
Wed Nov 18 16:07:27 EST 2009


On Nov 18, 2009, at 12:41 PM, William Kyngesburye wrote:

> On Nov 18, 2009, at 11:00 AM, John C. Tull wrote:
> 
>> On Nov 18, 2009, at 8:54 AM, William Kyngesburye wrote:
>> 
>>> OK, comments and questions:
>>> 
>>> - what is the 32bit python/qt issue with cmake?  configuration?  compilation?  I guess I need to check on the cmake compilation occassionally ;)
>> 
>> Basically, when you try the cmake installation with qt-carbon (either 4.5.3 or 4.6.0-rc/beta), a complaint about not finding pyqt4 is generated and python bindings are not enabled. I cannot seem to find much out about why this happens or how to get around it. That was where the -m32 settings came from; a shot in the dark to see if it would work. So, the problem is in configuration.
> 
> OK, looks like I had checked this a while back, and the only workaround I found that works is a bit ugly.
> 
> The SIP/PyQt checking code in cmake tries to run python, as found by cmake, and import SIP/PyQt.  It's supposed to accept a compound command, so it should be possible to set PYTHON_EXECUTABLE to "arch -i386 /usr/bin/python2.6", but I could not get that to work.
> 
> So, ugly hack:
> 
> sudo cat >/usr/local/bin/python32 <<EOF
> #!/bin/sh
> exec arch -i386 /usr/bin/python2.6 \${1+"\$@"}
> EOF
> 
> sudo chmod +x /usr/local/bin/python32
> 
> 
> Then configure Qgis with 
> 
> -D PYTHON_EXECUTABLE=/usr/local/bin/python32

Oh, and I was so close!

Would you be able to work that into the install doc?



More information about the Qgis-developer mailing list