Those 12GB come from temporary/object files created during compilation. You can run make clean after the build to get rid of them. The set of libraries required depends on the functionality you need in PySide.