discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Can't link against libgnuradio-core (cmake)


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Can't link against libgnuradio-core (cmake)
Date: Mon, 31 Oct 2011 15:44:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


On 10/31/2011 01:50 PM, Alexandru Csete wrote:
> Greetings,
> 
> I'm trying to rebuild my gr-fcd block
> (https://github.com/csete/gr-fcd) with gnuradio v3.5.0rc0-1-g037c5f60
> When I build gnuradio using the autotools everything is fine and I can
> build gr-fcd without problems.
> When I build using cmake gnuradio still builds and install fine, but
> when I try to build gr-fcd I get:
> 
> libtool: link: `/opt/gnuradio/v3.5.0rc0-1-g037c5f60/lib/libgnuradio-core.la'
> is not a valid libtool archive
> make[3]: *** [libgnuradio-fcd.la] Error 1
> make[3]: Leaving directory `/home/alexc/gnuradio/gr-fcd.git/lib'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/alexc/gnuradio/gr-fcd.git/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/alexc/gnuradio/gr-fcd.git'
> make: *** [all] Error 2
> 
> Looking at the contents of gnuradio-core.la from the two builds I can
> indeed see many differences, actually they seem to be more different
> than similar.
> 

Basically, the build system is generating .la files for each library
using this macro: http://www.vtk.org/Wiki/CMakeMacroLibtoolFile
I dont know why we are doing this or why we want it.

If you link against libraries in the normal way, everything should be
fine. So my best guess is that the generated la files are confusing for
autotools.

Try deleting the la files. You can also turn the generation off w/
-DLIBRARY_EXTRAS=OFF

-Josh



reply via email to

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