[mythtv-commits] Ticket #9447: MacOS X - Qt binaries log spam
MythTV
noreply at mythtv.org
Fri Mar 2 17:55:07 UTC 2012
#9447: MacOS X - Qt binaries log spam
-------------------------------------------------+-------------------------
Reporter: Craig Treleaven <ctreleaven@…> | Owner:
Type: Bug Report | jyavenard
Priority: minor | Status:
Component: Ports - OSX | assigned
Severity: medium | Milestone: unknown
Keywords: | Version:
| 0.24-fixes
| Resolution:
| Ticket locked: 0
-------------------------------------------------+-------------------------
Changes (by jyavenard):
* owner: nigel => jyavenard
* status: accepted => assigned
Comment:
I'm almost done with the rewrite.
The new code let you compile in all mac supported architecture, as well as
full universal (32/64) or Intel/PPC whatever
The error about Qt loading to set of libraries is due to a bug still
existing in Qt 4.8
which I've logged into QTBUG-24541. Even if you properly set a qt.conf, it
won't read it.
Note that the patch I've provided in QTBUG-24541 isn't sufficient to fully
fix the problem. There's another problem in which the running directory
isn't properly calculated, so the relative path put in qt.conf do not work
Basically, Qt always ignores the Qt plugins found in the application
bundle, even if a qt.conf file was properly corrected.
So what occurs is that the MythFrontend application is loaded, then Qt
loads the plugins found in the Qt system directory or wherever it was
first installed. As this has dependencies on the set of Qt libraries
outside the bundle, they too are loaded and you end up with some
nastiness.
Usually it crashes.
There are currently only three ways to fix it.
1- Move where the original Qt were stored (if using osx-packager.pl it
will be .osx-packager)
2- Set an environment variable: export
QT_PLUGIN_PATH=~/Work/mythtv/MythFrontend.app/Contents/PlugIns/
Where ~/Work/mythtv is the installation where the MythFrontend.app is
installed.
3-In MythFrontend.app/Content/MacOs create a link to ../Resources/Plugins
The best is to start it from the command line with
{{{
QT_PLUGIN_PATH=`pwd` MythFrontend.app/Content/MacOs/MythFrontend
}}}
It's not pretty :(
If you apply the patch I posted in QTBUG-24541
You could created a qt.conf file in:
MythFrontend.app/Content/Resources/qt.conf
containing the following info:
{{{
[Paths]
Prefix = /Home/Users/jyavenard/Work/mythtv/MythFrontend.app/Content
Plugins = Plugins
}}}
no more crash after that...
I have resolved most of the issues in the new packager, you still get the
warning, but nowhere near as bad, and more importantly:
it doesn't crash
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9447#comment:9>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list