discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: GNU radio logging


From: Xiang Ma
Subject: Re: GNU radio logging
Date: Thu, 17 Sep 2020 17:31:08 -0600

I tried the method here https://www.gnuradio.org/doc/doxygen-v3.7.13.4/page_logger.html. The OOT module can be compiled and installed, but
I find some output during the install process:

/usr/local/include/gnuradio/logger.h:80:2: warning: #warning "Log4Cpp use was requested but was not in GNU Radio, so disabling." [-Wcpp]
 #warning "Log4Cpp use was requested but was not in GNU Radio, so disabling."
  ^~~~~~~

What does it mean? Does it mean there are no Log4Cpp on my Ubuntu, or the gnuradio does not link with Log4Cpp?

Best,

On Thu, Sep 17, 2020 at 12:24 PM Xiang Ma <marxwolfs@gmail.com> wrote:
It seems not just me that has this problem. I find this issue
https://github.com/gnuradio/gnuradio/issues/1608,

But the document is still not well written.

On Thu, Sep 17, 2020 at 11:22 AM Marcus D. Leech <patchvonbraun@gmail.com> wrote:
On 09/17/2020 12:55 PM, Xiang Ma wrote:
Hi, Marucs,

I find this in the link you mentioned:

Using Logging in Out of Tree Modules

In order to use the logging interface in an out of tree module based on a gr_modtool template module, several CMake modifications are required. Without these changes, logging will be disabled.

GrMiscUtils.cmake module must be included in the OOT module top level CMakeLists.Texts file, and the GR_LOGGING() function provided by GrMiscUtils must be called from the same top level CMakeLists.txt file. This will set the appropriate build environment and during that process, attempt to find the log4cpp package using the FindLog4Cpp.cmake module. This module is not included in the module by gr_modtool, but is part of the GNU Radio codebase and can be copied directly into the cmake/Modules/ directory of the OOT module.

Once these CMake changes are made, the GR logging interface will function as documented on this page.

But I do not know how to do that.

Is it
include(GrMiscUtils.cmake)
GR_LOGGING()
?
Best,

I *think* that's correct, but I'm not a CMake expert.   Somebody else should probably comment on the correct procedure/syntax to get
  this accomplished.




--
Xiang Ma, Ph.D. Student
College of Engineering
Utah State University


--
Xiang Ma, Ph.D. Student
College of Engineering
Utah State University
E-mail:marxwolfs@gmail.com

reply via email to

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