On Thu, May 20, 2010 at 10:11 AM, Leonid Onokhov <[email protected]> wrote:

> Try running ldd
> /usr/autodesk/maya/lib/python2.6/site-packages/PyQt4/QtCore.so
>
> Most likely what your PyQt is compiled with different version of gcc. Maya
> uses still uses 4.1.
> So, I don't know if maya 2011 distributes headers for Qt it uses, I guess
> it does.
> You will need to download sources from sip and PyQt from riverbank site.
> Upack them somethere.
> Also install gcc-4.1, I'm sure ubuntu has such package.
> make a link to gcc-4.1 and g++-4.1 to your $home/bin dir.
> cd ~
> mkdir bin
> cd bin
> ln -s /usr/bin/g++-4.1 g++
> ln -s /usr/bin/gcc-4.1 gcc
>
> gcc-4.1 executable may have different name in ubuntu. We link it to your
> home dir, so we do not override system default /usr/bin/gcc and g++.
>
> cd into/sip/dir
> mayapy configure.py
> make
> sudo make install (this will install sip into
> maya/lib/python2.6/site-packages
>
> cd pyqtdir
> mayapy configure.py -q /usr/autodesk/maya/bin/qmake (I home maya has qmake
> distributed)
> make
> sudo make install (will install into maya python site-packages)
>
> mayapy -c "import PyQt.QtCore" for testing.
>

Just read the pdf on compiling pyqt. So you will need to compile Qt first,
with the same compiler as maya.

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to