[PySide] Can PySide run with Qt DLLs in another location other than Lib\site-packages\PySide\
merlin66b at gmail.com
Wed Oct 3 21:36:22 CEST 2012
I am working together with Ameya on this problem. To tell the whole
story: we are developing an application that embeds Python. We also
include the python executable in our distribution. Our file layout
mirrors that of a python distro. On Windows it looks like this:
<install_dir>/QtGui4.dll <-- must be in the same directory as
our_app.exe, since it is a Qt4 application
We would like PySide to work both from scripts run by our_app.exe and
It is acceptable for us to modify the environment before running our python.exe.
We prefer not to duplicate the Qt libraries into the site-packages
directory. From what I read here, this should be possible: PySide can
still be loaded from our python.exe as long as our application
directory is added to PATH?
If possible we would like to avoid having a qt.conf, since that
complicates the installation process. (it needs to work automatically
both when developers compile it on their machines, and when our app
gets installed to custom locations by the users).
Similarly, shouldn't it be sufficient that the location of the Qt
libraries are added to LD_LIBRARY_PATH on Linux?
Thanks for any input,
On Wed, Oct 3, 2012 at 11:18 AM, ameya dambir <ameyadambir at gmail.com> wrote:
> I am trying to do same thing on linux but it didn't work.
> There is one thing which bothering me. Inside my qt/lib there I have made
> two folders debug and release as per the version requirement and place
> respective file versions in it. Should I mention that in this conf file? If
> yes then where?
> Thanks in advance.
> On Fri, Sep 28, 2012 at 2:40 PM, Roman Lacko <backup.rlacko at gmail.com>
>> just one note on sharing Qt DLLs, I don't recommend to share Qt DLLs
>> in one directory because you need to add that dir to PATH environment
>> variable so PySide can find the DLLs.
>> If Qt DLLs are in PySide dir you can install more PySide versions
>> built against different Qt versions. And You can install PySide in
>> 2012/9/28 Tejashri Kandolkar <tejashri.kandolkar at gmail.com>:
>> > Hi,
>> > After installing PySide1.1.2, I see that all the qt DLL's are getting
>> > copied
>> > in the ...\python_3_2\release\Lib\site-packages\PySide\ directory
>> > Can I have PySide run without the Qt DLL's in the
>> > ...\Lib\site-packages\PySide\ directory, but some\other\directory\...
>> > If yes, then whats the change that needs to be taken care of while
>> > building
>> > PySide? (There should be some change in cmake scripts I suppose but not
>> > sure
>> > where.)
>> > I am interested in this because I already have the Qt DLLs present in a
>> > top
>> > level directory, and copying the same DLLs again in the PySide dir is a
>> > duplication.
>> > Regards,
>> > Tej
>> > _______________________________________________
>> > PySide mailing list
>> > PySide at qt-project.org
>> > http://lists.qt-project.org/mailman/listinfo/pyside
>> PySide mailing list
>> PySide at qt-project.org
> PySide mailing list
> PySide at qt-project.org
More information about the PySide