[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: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] pkg-config cflags for gnuradio-uhd |
Date: |
Sat, 12 May 2012 12:26:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
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.
-Josh