[mythtv-commits] Ticket #5177: qt4 link libdir order incorrect

MythTV mythtv at cvs.mythtv.org
Tue Jun 24 06:17:19 UTC 2008


#5177: qt4 link libdir order incorrect
------------------------+---------------------------------------------------
 Reporter:  markspieth  |        Owner:  awithers
     Type:  patch       |       Status:  assigned
 Priority:  minor       |    Milestone:  unknown 
Component:  mythtv      |      Version:  unknown 
 Severity:  medium      |   Resolution:          
  Mlocked:  0           |  
------------------------+---------------------------------------------------

Comment(by nigel):

 1) This is only a problem for people who use --prefix=/usr (''e.g.''
 KnoppMyth)
 [[BR]]
 2) After some recent lib changes, programs/* linking had a several
 problems (lots of globalsettings.o:(.rodata._ZTV12HostComboBox[vtable for
 HostComboBox]+0x8c): undefined reference to
 `SelectSetting::ReplaceLabel(QString const&, QString const&)'). I could
 have purged /usr/lib/libmyth*, but remembered this ticker, and
 experimented a little. The following got me a clean build, and is a much
 simpler way to exclude /usr/lib:
 {{{
 Index: settings.pro
 ===================================================================
 --- settings.pro        (revision 17609)
 +++ settings.pro        (working copy)
 @@ -109,6 +109,10 @@
  }
  QMAKE_LIBDIR_OPENGL =

 +# Qt 4 has /usr/libs early in the link line, which can cause link errors
 +# (due to old libmyth* in there).  # This works around that:
 +QMAKE_LIBDIR_QT =
 +
  EXTRA_LIBS = $$FREETYPE_LIBS -lmp3lame
  EXTRA_LIBS += $$CONFIG_AUDIO_OSS_LIBS
  EXTRA_LIBS += $$CONFIG_AUDIO_ALSA_LIBS
 }}}
 Mark + others, can you tell me if it works for you?

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5177#comment:2>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list