I have written a crossplatform Qt4/PyQt4/python application, namely MyGreatApp, whose last version requires the Phonon module. MyGreatApp runs just fine on my own machine under Mac OS X 10.6 Snow Leopard, and more generally on any mac where Qt4.4 happens to be installed. However, innocent machines miserably fail to load Phonon: WARNING: bool Phonon::FactoryPrivate::createBackend phonon backend plugin could not be loadedIt seems obvious that some dependancies remain in the executable. Here's the included phonon stuff: $ find. If you look in the source distribution of Qt (you may just have to download it and build it yourself), there's a little utility it builds called 'macdeployqt'. If you set up a application bundle with your executable (i.e.
![]() ![]()
Packaging PyQt5 apps with fbs. Fbs is a cross-platform PyQt5 packaging system which supports building desktop applications for Windows, Mac and Linux. The right place to load from a distributed app across all platforms is usually one of the faffiest bits of distributing PyQt applications. Pyqtdeploy is a tool that, in conjunction with other tools provided with Qt, enables the deployment of PyQt applications written with either Python v2.7 or Python.
Make a myapp.app and put the 'myapp' executable in myapp.app/Contents/MacOS) and run 'macdeployqt myapp.app', it'll analyze do all of the installnametool runs and framework-to-Resources moving for you, handing you back an app bundle that should 'just work' (heavy on the quotes there:) ). 'macdeployqt' is actually included in Qt 4.5, not in Qt 4.4, and I have not succeeded in building it myself.
![]()
May be I should upgrade my installation to Qt 4.5. However, rebuilding the whole mess (Qt + SIP + PyQT) on Snow Leopard is quite scary for me, especially as long as 'Support for this version of Mac OS X is still preliminary'. Well, in fact, I'm trying this since yesterday, only to have PyQt failing at the configuration step. I guess it's another question:-( Anyway, thank you for your kind answer!–Oct 9 '09 at 13:19.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |