How to compile Qt ui and resource files on Windows

Hi, i know is a little bit late but here is my solution to compile the Qt ui for the apps:

I use git on my PC so i have the git bash so from there i run the command “sh build_resources.sh”,

there are this commands inside the script:

  • pyside-uic
  • pyside-rcc

the first one is located in the Scripts folder of python ** X: \ python27 \ Scripts ** so if you config environment variables with this path there is no problem here, the problem is the second file that is not in the same folder , this command is on ** X: \ Python27 \ Lib \ site-packages \ PySide ** so if we add the path to the environment variables all work fine.

by the way, i change the sed command too, just remove the -i parametter, now looks like this:

 sed -e "s / from PySide import / from tank.platform.qt import / g" -e "/ # Created: / d" $ UI_PYTHON_PATH / $ 3.py

this script works for me, hope it helps.

build_resources.zip (839 Bytes)

Python 2.7
Pyside (installed with pip)
Windows 10 x64
Shotgun desktop 1.6.1

3 Likes