Markus Neteler wrote:
> Compiling NVIZ from SVN trunk, I get following problem:
....
>
/home/neteler/svngrass/dist.x86_64-unknown-linux-gnu/lib/libgrass_ogsf.so:
> undefined reference to `guess_format'
>
/home/neteler/svngrass/dist.x86_64-unknown-linux-gnu/lib/libgrass_ogsf.so:
> undefined reference to `av_destruct_packet_nofree'
....
> collect2: ld returned 1 exit status
> make[1]: *** [nvwish] Error 1
> make[1]: Leaving directory
> `/home/neteler/svngrass/visualization/nviz/src'
> make: *** [default] Error 2
> 
> If I manually add -lavformat, the compilation works ok.
...
> Any ideas how to automate that -lavformat is included?


the new ffmpeg movie format-by-extension code needs libavformat which
may come in a separate package to libavcodec.
(libavformat-dev and libavcodec-dev packages on Debian)

I don't know much about ./config scripts, but the attached is an
untested cut & paste job which might work. (I don't know about
-lavutil,..)


Hamish



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
Index: configure.in
===================================================================
--- configure.in	(revision 29450)
+++ configure.in	(working copy)
@@ -999,6 +999,7 @@
 LOC_CHECK_INC_PATH(ffmpeg, FFMPEG, FFMPEGINCPATH)
 
 LOC_CHECK_INCLUDES(avcodec.h,FFMPEG,$FFMPEGINCPATH)
+LOC_CHECK_INCLUDES(avformat.h,FFMPEG,$FFMPEGINCPATH)
 
 AC_DEFINE(HAVE_FFMPEG)
 
@@ -1011,6 +1012,7 @@
 LOC_CHECK_LIB_PATH(ffmpeg, FFMPEG, FFMPEGLIBPATH)
 
 LOC_CHECK_LIBS(avcodec, avcodec_init, FFMPEG, $FFMPEGLIBPATH, FFMPEGLIB,,,,-lavutil $MATHLIB)
+LOC_CHECK_LIBS(avformat, av_set_parameters, FFMPEG, $FFMPEGLIBPATH, FFMPEGLIB,,,,-lavutil $MATHLIB)
 
 fi # $USE_FFMPEG
 
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to