Tuesday, March 29, 2011

Re: [Discuss-gnuradio] compiling gnuradio with gcc-4.5

On 24-03-11 15:33, Tom Rondeau wrote:
> On 24-03-11 08:56, Sim IJskes wrote:
>
> I've tried to build gnuradio under debian sid, and it fails
> during
> linking. Debian has changed the DSO linking defaults:
>
> http://wiki.debian.org/ToolChain/DSOLinking
>
> My first guess is, this is causing the linkage problem.
> Compiling with
> gcc-4.4 is no option, because it will not link with libboost
> then.
>
> If you have compiled with gcc-4.5 already, and found a quick
> fix, or no
> problems, or any other outcome, please let us know?
>
>
> I've identified the missing libraries and put them in the makefile:
>
> gnuradio/gr-usrp/apps/Makefile:
>
> LIBS =
> //home/sim/gnuradio/gnuradio/gnuradio-core/src/lib/.libs/libgnuradio-core-3.3.1.so.0
> //home/sim/gnuradio/gnuradio/usrp/host/lib/.libs/libusrp-3.3.1.so.0
>
> I'm sure this is not the way to do it, but i'm no libtool autoconf
> master, so i'm hoping for help here...
>
> After this 'fix' gnuradio compiles under debian sid with gcc-4.5

A solution somewhat higher up the automake logic:

LDADD = \
$(USRP_LA) \
$(GNURADIO_CORE_LA) \
$(GR_USRP_LA) \
$(BOOST_LDFLAGS) \
$(BOOST_PROGRAM_OPTIONS_LIB)

Maybe i can paste this directly into Makefile.am. Does anybody know how
to have automake regenerate the Makefile.in / Makefile again, locally in
the directory?

Gr. Sim

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment