[mythtv] build failure on win32 - caused by incorrect LIBS declaration in Makefile.Debug?

buzz davidbuzz at gmail.com
Sat Apr 12 03:42:38 UTC 2008


hi guys, any ideas on this one?
When building the libs, I get two similar fatal build errors, which are
resolved by copying the .dll down one folder, outside the debug folder, and
running the make again.

Ie doing this allows the build to continue past this point:

make
copy
C:\mythtv\mythtv\libs\libavutil\debug\mythavutil-0.22.dll
C:\mythtv\mythtv\libs\libavutil\
make
copy C:\mythtv\mythtv\libs\libavcodec\debug\mythavcodec-0.22.dll
C:\mythtv\mythtv\libs\libavcodec
make


here's one of the outputs (the other is very similar):

g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -shared -mthreads -Wl
-Wl,--out-implib,debug/libmythavformat-0.22.a -o debug/
mythavformat-0.22.dll object_script.mythavformat-0.22.Debug  -lws2_32 -lz
-lpthread -lm -lpthread -L../libavcodec -lmythavcodec-0.22 -L../libavutil
-lmythavutil
-0.22 -lz
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot
find -lmythavcodec-0.22
collect2: ld returned 1 exit status
make[3]: *** [debug/mythavformat-0.22.dll] Error 1
make[3]: Leaving directory `/C/mythtv/mythtv/libs/libavformat'
make[2]: *** [debug] Error 2
make[2]: Leaving directory `/C/mythtv/mythtv/libs/libavformat'
make[1]: *** [sub-libavformat-make_default-ordered] Error 2
make[1]: Leaving directory `/C/mythtv/mythtv/libs'
make: *** [sub-libs-make_default-ordered] Error 2

I got as far as determining that the Makefile.Debug in two places needs the
LIBS line changed :
eg:
"LIBS        =        -L../debug/libavutil...etc... "
  instead of
"LIBS        =        -L../libavutil  ...etc..."

but I don't know the magic qmake incantation/s to make this survive a 'make
distclean' ?

Anyone?

Buzz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080412/787819a3/attachment.htm 


More information about the mythtv-dev mailing list