I am following up on my previous post (see below). I've noticed that if I
add
a -static flag under _LDFLAGS in Makefile.am, it compiles fine.

I am wondering if it's ok to compile with the -static flag.

In an attempt to be able to compile without the static flag, I reinstalled
the ffmpeg libs with the --enable-shared option, so the .so libs are
installed
as well. But even with that if I do 'make' without the '-static' flag in
Makefile.am,
it fails to compile, much like it did earlier...

Anyone knows what might be happening?

Demijan

On Wed, Apr 28, 2010 at 3:44 PM, Demijan Klinc <d...@ece.gatech.edu> wrote:

> Hi everyone,
>
> I am trying to implement a video player block for gnuradio, which uses
> various
> ffmpeg libraries. Unfortunately, I've been having difficulty linking to the
> ffmpeg libraries within
> the gnuradio framework.
>
> My approach so far has been to include the libraries in the
> 'module/lib/Makefile.am'
> as follows:
>
> ...
> libgnuradio_module_la_LIBADD =    \
>     -lavformat -lavcodec -lavutil -lswscale   \
>     $(GNURADIO_CORE_LA)
> ...
>
> where '-lavformat -lavcodec -lavutil -lswscale' are the libs I need to link
>
> against.
>
> When compiling I get errors of the following type:
> /usr/local/src/gnuradio/gr-module/lib/.libs/libgnuradio-module.so:
> undefined reference to `av_register_all()'
>
> Note that the libraries are static and installed properly.
>
> Any help on how I should go about linking this would be greatly
> appreciated.
>
> Thanks,
> Demijan
>
>
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to