discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Re: Building/linking your own module


From: Demijan Klinc
Subject: [Discuss-gnuradio] Re: Building/linking your own module
Date: Wed, 28 Apr 2010 18:31:09 -0400

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 <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]