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: Alexandru Csete
Subject: Re: [Discuss-gnuradio] Can't link against libgnuradio-core (cmake)
Date: Tue, 1 Nov 2011 00:53:14 +0100

On Mon, Oct 31, 2011 at 11:44 PM, Josh Blum <address@hidden> wrote:
>
> 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
>

Thanks for the tip! Using -DLIBRARY_EXTRAS=OFF works :)

Alex



reply via email to

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