[mythtv] libmythupnp build problem

Mark Spieth mark at digivation.com.au
Sat Apr 5 13:56:28 UTC 2008

not sure what Im doing wrong but on the link phase of libmythupnp I get the 

g++ -shared -Wl,-soname,libmythupnp-0.22.so.0 -o libmythupnp-0.22.so.0.22.0 
version.o httprequest.o upnp.o ssdp.o taskqueue.o upnputil.o upnpdevice.o 
upnptasknotify.o upnptasksearch.o threadpool.o httpserver.o upnpcds.o 
upnpcdsobjects.o bufferedsocketdevice.o eventing.o upnpcmgr.o upnpmsrr.o 
upnptaskevent.o ssdpcache.o configuration.o soapclient.o mythxmlclient.o 
moc_ssdpcache.o   -L/usr/lib -lmp3lame -lasound -L/usr/lib -lartsc -lgmodule-2.0 
 -ldirectfb -lfusion -ldirect -L/usr/X11R6/lib -lXv -lXxf86vm -lXvMCW -lXvMC 
 -lQt3Support -L/usr/lib/mysql -pthread -pthread -pthread -pthread -pthread  
-pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread 
 -pthread -pthread -pthread -pthread -lQtSql -lpq -lmysqlclient_r -lsqlite -lsqlite3 
 -pthread -pthread -lQtXml -pthread -pthread -lQtOpenGL -pthread -pthread -pthread 
 -pthread -pthread -pthread -lQtGui -laudio -lXt -lpng -lSM -lICE -pthread -pthread 
 -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lXext -lX11 
 -lQtNetwork -pthread -pthread -lQtCore -lfontconfig -lz -lm -pthread -lgthread-2.0 
 -lrt -lglib-2.0 -lpthread -ldl -lGLU -lGL
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status

libGL.so.1 is installed and present in /usr/lib (nvidia version). never was 
a problem previously.
If I remove the trailing -lGL, it links fine and ldd shows that libGL is 
linked with no unresolveds!!!!
This is too bizarre for me as it should find it and not care if it doesnt 
use any of it.
qmake-qt4 is my default (had to set update-alternatives to fix that).
g++ (GCC) 4.2.3 20080114 (prerelease) (Debian 4.2.2-7),
GNU ld (GNU Binutils for Debian)
if that makes any difference, which it shouldnt.

any ideas? its stopping me from testing more audio code.
also I hope Im not being overly obtuse.

Note I also get the odd hang during playback and its annoying me :-).


More information about the mythtv-dev mailing list