[PySide] Can PySide run with Qt DLLs in another location other than Lib\site-packages\PySide\

Thomas Berg merlin66b at gmail.com
Thu Oct 4 10:01:30 CEST 2012


On Thu, Oct 4, 2012 at 9:39 AM, Roman Lacko <backup.rlacko at gmail.com> wrote:
>
> Yes pyside will work when Qt libs are in PATH

Ok, great.

> PySide will not work without qt,conf, as you can read here
> http://doc-snapshot.qt-project.org/4.8/qt-conf.html,
> you need to override the hardcoded paths in Qt library.
>
> I would generate qt.cong with build tool (cmake or whatever) when
> compiling on dev machine.
> When instaling on users machie, the qt.conf can (and should) be
> generated by app installer.

Actually, this is not in agreement with our experience. Our own
application also depends on finding Qt plugins for example, and it
does indeed work if the Qt files are carefully placed in correct
locations relative to the application. We will add a qt.conf if
needed.

>
>>
>> Similarly, shouldn't it be sufficient that the location of the Qt
>> libraries are added to LD_LIBRARY_PATH on Linux?
>
> Yes adding Qt libs to LD_LIBRARY_PATH shoud work + you need change
> paths in qt.conf

LD_LIBRARY_PATH seems to have solved the problem we had.

Thanks!
- Thomas



More information about the PySide mailing list