[Top][All Lists]

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

Re: [Discuss-gnuradio] pkg-config cflags for gnuradio-uhd

From: Alexandru Csete
Subject: Re: [Discuss-gnuradio] pkg-config cflags for gnuradio-uhd
Date: Sun, 13 May 2012 14:45:51 +0200

On Sat, May 12, 2012 at 9:26 PM, Josh Blum <address@hidden> wrote:
> On 05/12/2012 11:10 AM, Alexandru Csete wrote:
>> On Sat, May 12, 2012 at 7:41 PM, Josh Blum <address@hidden> wrote:
>>> On 05/12/2012 04:42 AM, Alexandru Csete wrote:
>>>> Greetings,
>>>> Lets say I am trying to compile a C++ application that uses gnuradio-core
>>>> and gnuradio-uhd. I have gnuradio installed in /opt/gnuradio/some-version
>>>> and uhd installed in /opt/uhd/some-version - both of these paths are within
>>>> pkg-config reach. The problem is if I do:
>>>> pkg-config --cflags gnuradio-core gnuradio-uhd
>>> Just add uhd to the list of pkg config dependencies.
>>> Does it work?
>> Yes, that works for the pkg-config part, but not when compiling
>> gr-osmosdr using cmake. I guess we can also include uhd as dependency
>> in the gr-osmosdr cmake files, but I'm curious if that is the right
>> way to do it?
> Probably since gr-uhd public headers expose stuff in uhd public headers.
> You might as well grab FindUHD.cmake from gnuradio and copy it into
> gr-osmosdr cmake source tree.

Thanks for the tip.
UHD has now been added as dependency and it compiles fine now.


reply via email to

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