[mythtv] lame_decode_init and lame_decode unresolved symbols

Nigel Pearson nigel at ind.tansu.com.au
Sun Jul 11 21:44:14 EDT 2004


> g++ -Wl,-rpath,/opt/qt/lib -o mythepg main.o   -L/opt/qt/lib 
> -L/usr/X11R6/
> lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavcodec
> -L../../libs/libavformat -lmythtv-0.15 -lmythavformat-0.15
> -lmythavcodec-0.15 -lmyth-0.15 -lfreetype -lmp3lame -L/usr/X11R6/lib
> -lXinerama -lXv -lXxf86vm -lqt-mt -lXext -lX11 -lm -lpthread
> ../../libs/libmythtv/libmythtv-0.15.so: undefined reference to
> `lame_decode_init'
> ../../libs/libmythtv/libmythtv-0.15.so: undefined reference to 
> `lame_decode'
> collect2: ld returned 1 exit status
> make[2]: *** [mythepg] Error 1
> make[2]: Leaving directory `/usr/src/mythtv-0.15.1/programs/mythepg'
> make[1]: *** [sub-mythepg] Error 2
> make[1]: Leaving directory `/usr/src/mythtv-0.15.1/programs'
> make: *** [sub-programs] Error 2
>
> I have libmp3lame and lame.h installed from version 3.93 of lame:
>
> $ ls -l /usr/lib/libmp3lame*
>
> -rw-r--r-- 1 root root 206150 2003-09-30 22:36 /usr/lib/libmp3lame.a
...
> I don't understand why there are undefined references to 
> lame_decode_init
> and lame_decode during the compile.

	The compiler & linker do not know to look in /usr/lib for libraries.
(i.e. there is no -L/usr/lib on that compile/link line)

	You probably need to edit settings.pro from:

EXTRA_LIBS = -lfreetype -lmp3lame

	to

EXTRA_LIBS = -lfreetype -lmp3lame -L/usr/lib

--
Nigel Pearson, nigel at ind.tansu.com.au | "People say I'm strange, does it
Telstra BI&D, Sydney, Australia       |        make me a stranger?
Office: 8255 4222    Fax:  8255 3153  |  My best friend was born
Mobile: 0408 664435  Home: 9792 6998  |         in a manger"    -DC Talk



More information about the mythtv-dev mailing list