Hi Thomas, 2012/10/3 Thomas Berg <[email protected]>: > Hi, > > 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>/our_app.exe > <install_dir>/python.exe > <install_dir>/QtGui4.dll <-- must be in the same directory as > our_app.exe, since it is a Qt4 application > <install_dir>/Lib/site-packages/PySide > > We would like PySide to work both from scripts run by our_app.exe and > from python.exe. > > 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?
Yes pyside will work when Qt libs are in 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). 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. > > 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 Regards Roman > > Thanks for any input, > - Thomas > > > On Wed, Oct 3, 2012 at 11:18 AM, ameya dambir <[email protected]> wrote: >> Hi, >> 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. >> >> Ameya >> >> >> >> On Fri, Sep 28, 2012 at 2:40 PM, Roman Lacko <[email protected]> >> wrote: >>> >>> Hi, >>> >>> 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 >>> virtualenv. >>> >>> Regards >>> R. >>> >>> 2012/9/28 Tejashri Kandolkar <[email protected]>: >>> > 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 >>> > [email protected] >>> > http://lists.qt-project.org/mailman/listinfo/pyside >>> > >>> _______________________________________________ >>> PySide mailing list >>> [email protected] >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> >> _______________________________________________ >> PySide mailing list >> [email protected] >> http://lists.qt-project.org/mailman/listinfo/pyside >> _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
