Building PyQt for Maya 2012 ( Linux x64 )

                   

SIP needs to be built prior to building PyQt.

Download SIP from here

Maya 2012 uses Qt 4.7.1.

Download it from here

Download PyQt from here

First step is to build qt from source. Extract the tarball and CD in to the directory

./configure

While running configure, if you get the following error

Basic XLib functionality test failed!

You might need to modify the include and library search paths by editing

QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/anoop/apps/sources/qt-everywhere-opensource-src-4.7.1 /mkspecs/linux-g++-64.

install teh libXext development package. I used zypper to install the package from the web

zypper install xorg-x11-libXext-devel

executing the configure after the installation gave the following error

cannot find -lXrender

this was happening because configure couldn’t find libXrender.so. This can be fixed by creating a symlink to libXrender.so.1 in the /usr/lib64 directory

ln -s /usr/lib64/libXrender.so.1 /usr/lib64/libXrender.so

After successful configuration run the following to install Qt to /usr/local/Trolltech/Qt-4.7.1 directory

make

make install

Building SIP

Extract the SIP zip archive to /home/username/SIP

cd /home/username/SIP

After setting the variables, run the following

/usr/autodesk/maya2012/bin/mayapy configure.py

make

make install

Building PyQt

Extract the archive to /home/username/PyQt-x11-gpl-4.7.4

cd PyPyQt-x11-gpl-4.7.4

/usr/autodesk/maya2012/bin/mayapy configure.py -q /usr/local/Trolltech/Qt-4.7.1/bin/qmake

make -j4

make install

PyQt4 for Maya2011 on Windows XP x64

Finally got some time to get back to python after a long break, only to find that I don’t have a working copy of PyQt4. Instead of spending time on google trying to figure out whether anyone has decided to share a copy of PyQt built against Qt4.5.3, decided to build one myself. Having Windows SDK already installed on my XP proved out to be handy since the Visual Studio version I was running was still 32-bit one. Downloaded SIP4.12 source and Qt4.5.3 SDK and within few seconds the PyQt4 module was successfully added to the site-packages.

Thought of sharing the build for those of you who are planning ahead to design awesome GUIs in Maya.You may download it here

Qt 4.5.3 SDK for Maya 2011

My search for a compatible version of Qt SDK for Maya 2011 Hotfix3 x64 ended up with a few results which I thought of sharing with you guys in case you need any. Maya 2011 Hotfix 3 uses Qt 4.5.3 to draw the interface. Below are a list of links to Qt 4.5.3 for Linux, Mac OS and Windows.

Qt 4.5.3 OpenSource Edition SDK

Qt 4.5.3 SDK for Open Source C++ development on Windows [178Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.04.exe

Qt 4.5.3 SDK for Open Source C++ development on Linux/X11 32-bit [275Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86-opensource-2009.04.bin

Qt 4.5.3 SDK for Open Source C++ development on Linux/X11 64-bit [353Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86_64-opensource-2009.04.bin

Qt 4.5.3 SDK for Open Source C++ development on Mac OS [442Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-mac-opensource-2009.04.dmg

Qt 4.5.3 OpenSource Edition Framework Only

Qt 4.5.3 for Open Source C++ development on Windows [166Mb]

http://get.qt.nokia.com/qt/source/qt-win-opensource-4.5.3-mingw.exe

http://get.qt.nokia.com/qt/source/qt-win-opensource-src-4.5.3.zip

Qt 4.5.3 for Open Source C++ development on Linux/X11 [120Mb]

http://get.qt.nokia.com/qt/source/qt-x11-opensource-src-4.5.3.tar.gz

Qt 4.5.3 for Open Source C++ development on Mac OS [132Mb]

http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.5.3.dmg

http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.5.3-debug-libs.dmg

http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.5.3.dmg

http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.5.3-debug-libs.dmg

http://get.qt.nokia.com/qt/source/qt-mac-opensource-src-4.5.3.tar.gz

Transition to Open Source (read openSUSE)

Finally got my linux distro equipped with full functionality to resume my work on open source platforms. Configuring the network using YaST was just a piece of cake with a really interactive UI that included every information for even the novice user to get the job done. This was the third time I was installing SUSE within a span of 6 months and I had switched back to good old windows every time because of the lack of fully functional drivers for my Radeon 4200. But this time the ATI repository came handy. Last two times I had tried the conventional  ”windows-user style“: Download drivers>run the file>and there you go, which proved out to be the most stupid thing on the earth to do. I had just neglected the need for a xorg-x11-server which I finally downloaded using YaST.

The next thing was to get the X Window display driver for the ATI graphics accelerators and also ATI “fglrx” driver kernel module. Both packages could be found at:

http://www2.ati.com/suse/11.3/

After successful installation of the drivers the configuration can be set using the command aticonfig –initial which will save the xorg.conf with the new settings. Display modes can also be specified optionally using the command aticonfi –resolution=0,1280×1024,1024×768. I was planning to go with 1280×1024 resolution by default which left me with the need to specify just these two display modes.

The drivers can also be downloaded from:

X Window display driver for the ATI graphics accelerators

ATI “fglrx” driver kernel module

The next requisite was a screen capture tool that would help me prepare demos of the tools and also let me compile future tutorials which I intend to share in this space. Got hold of a simple and yet powerful screen capture App called recordMyDesktop. It provides two frontend options, one built on Gtk and the other on PyQT4. My love for Qt urged me to go for the Qt-based one.

Here is a screenshot of the recordMyDesktop App

The packages can be downloaded here

recordMyDesktop

qt-recordMyDesktop

recordMyDesktop-gtk

Gearing up for opensource film making using blender

blenderlogo

Finally, an end to the silence.For those of you who paid visit to this page more often, I hope the passive state that existed for more than two weeks didn’t disappoint you. Been there at the python conference that was conducted for the first time in India, the enthusiasm from the open source fraternity urged me to explore new realms of film making too. The days that followed were spend at the doors of google with just one goal; To come up with the best available tool set for open source film making. And all the doors led to one ultimate tool, BLENDER!!!. Even though I used to keep track of the recent advances in this wonderful animation package, the enthusiasm couldn’t be carried over to the next level since once you get back to work, you were always provided with the ones from software giants like Autodesk. But Pycon ignited a new fire in me to explore more in this direction and come up with a feasible solution for use in production. It was quite inspiring to find lot of actvity going on in this direction in online forums. Among those the one which caught my attention the most was the Blender to Renderman Artist Tools. I had a tough time getting a copy of the same since there were torrent links that were having very few seeders and also the ISO link that was provided was not working at all. Anyways now that I got a copy with me I thought it would be better to make it available for the ones who are already looking for a copy.Below listed are the contents of brat .5 rc2.

Compiled and sources of Blender 2.48, Aqsis 1.4.2, Pixie 2.2.5
Mosaic 0.2 Beta
Python 2.5.4 (installation for Windows – Linux already has it)
CGKit 2.0
Shaderman 0.7 and ShadermanNEXT
SLer
Shader sources (hundreds of them!!)
Shaderman shader projects
OpenEXR 1.4.0 (Windows install, Windows and Linux source)
OpenEXR 1.4.0 sample images
Dr. Queue (compiled and source)
Cutter
GIMP
Cinepaint (Linux only!! There is no recent Windows build)
Documentation from Pixars Online Research library as well as SIGGRAPH papers
Crimson Editor (Windows code editor)
Dev C++ and MinGW (Windows only, Linux has gcc which is the basis for all Linux builds)
Python scripts for Blender (various usefull ones not released with Blender)
Voodoo (for visual effects camera matchmoving)
Blender files (examples and test files)
Some usefull textures

You can download the ISO here or using the  the widget  on the sidebar