discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] CMake error related to log4cpp in non-standard lo


From: Bastian Bloessl
Subject: Re: [Discuss-gnuradio] CMake error related to log4cpp in non-standard location
Date: Fri, 28 Apr 2017 23:38:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Hi,

are you talking about building in-tree modules or OOTs?

On 04/28/2017 11:13 PM, Michael Dickens wrote:
> Hi Eugene - What you write looks to be true about the current GR
> codebase. Bastian Bloessl has a commit that adds in LOG4CPP_INCLUDE_DIR
> & related to those in-tree areas that need it (branch "ugly_cmake"): <
> https://github.com/bastibl/gnuradio/commit/16d8e8cb9bd658991dabbc253c74850248b80f83
>> .  I don't know the best solution, but it seems like there's got to be
> a better way than manually including variables for logging as done right
> now. Cheers! - MLD

This branch was supposed to demonstrate what ugly cmake stuff we would
have to add if we don't add the includes of dependencies to a module's
exported includes.

To avoid this mess, we added LOG4CPP_INCLUDE_DIRS to
GNURADIO_RUNTIME_INCLUDE_DIRS, which should be added by all modules:

https://github.com/gnuradio/gnuradio/pull/1195/commits/51e565532f1f867baacc004222971fcf3703773b

That means the problem should be fixed for in-tree modules and the
ugly_cmake branch should be obsolete. If you have problems in-tree
please let me know which module doesn't compile.

A similar mechanism should, in my opinion, also be adopted for OOT
modules. Currently, GNURADIO_ALL_INCLUDE_DIRS (which is set by
find_package(gnuradio)) do not include the folders of its dependencies
(i.e., the headers references from the public includes, like log4cpp).

For that reason it is currently not possible to compile OOTs with
non-standard log4cpp location. You would have to patch the module (add
findlog4cpp.cmake and configure the patch appropriately).

See the discussion here:
https://github.com/gnuradio/gnuradio/issues/1045

Best,
Bastian

> 
> On Fri, Apr 28, 2017, at 02:46 PM, Eugene Grayver wrote:
>> The current GR CMakeFile(s) apparently do not add the include path 
>> LOG4CPP_INCLUDE_DIR to the compile.  Can't build w/ log4cpp in non-standard 
>> location.
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 



reply via email to

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