discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] log4cpp library not found


From: U L
Subject: Re: [Discuss-gnuradio] log4cpp library not found
Date: Sat, 1 Apr 2017 21:30:07 -0700

On opensuse tumbleweed I needed to install the log4cpp-devel package.  The FindLog4cpp.cmake file looks for Category.hh and liblog4cpp.so.   The log4cpp-devel has the files

/usr/include/log4cpp/Category.hh
/usr/lib64/liblog4cpp.so
/usr/lib64/pkgconfig/log4cpp.pc

Unfortunately it appears that the cmake script doesn't look in /usr/lib64 for the lib, that may be the problem.  I'm a little surprised my CMakeCache.txt has HAVE_LOG4CPP=TRUE.  Perhaps there's another mechanism to find the libs.

Jared.


On Sat, Apr 1, 2017 at 3:40 PM, address@hidden <address@hidden> wrote:

find / -name "FindLog4cpp.cmake"
/usr/local/src/gnuradio/cmake/Modules/FindLog4cpp.cmake
/usr/local/lib/cmake/gnuradio/FindLog4cpp.cmake

That file is found twice. Is that the problem? If not, which do I
replace? Or perhaps both. Or does one file cause the other file to be
updated?


On Sat, 1 Apr 2017 19:03:52 +0200
Marcus Müller <address@hidden> wrote:

> That's very interesting, considering that I believe the CMake script
> that looks for log4cpp uses the same pkg-command to look for it...
>
> Ok. So there's something strange going on with that
> cmake/Modules/FindLog4cpp.cmake, probably.
>
> Can you replace that Find...cmake with the one I've attached and give
> it a try?
>
> Cheers,
>
> Marcus
>
>
> On 01.04.2017 18:27, address@hidden wrote:
> > Hyphen instead of underscore.
> >
> > pkg-config --libs log4cpp
> > -L/usr/local/lib64 -llog4cpp
> >
> > So pkg-config finds the library. Note I got the same problem
> > regarding not finding log4cpp when I used the opensuse package
> > manager version instead of making my own in /usr/src.
> >
> >
> >
> >
> > On Sat, 1 Apr 2017 11:19:14 +0200
> > Marcus Müller <address@hidden> wrote:
> >
> >> Hi,
> >>
> >> if you've built it yourself, chances are that automatic tools like
> >> CMake's find_package or the general pkg_config can't find it,
> >> because you didn't put the right files in the distro-typical
> >> places.
> >>
> >> Try running
> >>
> >> pkg_config --libs log4cpp
> >>
> >> If that fails: Please make sure the installation put the
> >> packageconfig files in a place that packageconfig looks into.
> >>
> >> Best regards,
> >> Marcus
> >>
> >> On 04/01/2017 11:13 AM, address@hidden wrote:
> >>> I built it myself in usr local.
> >>>
> >>> The source exists at github and sourceforge. Apparently SF is the
> >>> original. I built both versions and neither is found by gnuradio
> >>> in the build process.
> >>>
> >>> The contents /usr/local/include/log4cpp is at this pastebin.
> >>> https://pastebin.com/fw6NUR6x
> >>> This is the after the SF build.
> >>>
> >>>
> >>>
> >>> On Fri, 31 Mar 2017 22:07:59 -0400
> >>> "Marcus D. Leech" <address@hidden> wrote:
> >>>
> >>>> On 03/31/2017 09:13 PM, address@hidden wrote:
> >>>>> opensuse 42.2
> >>>>>
> >>>>> This is the only "missing" thing I can find in the cmake ..:
> >>>>>
> >>>>>
> >>>>>
> >>>>> -- Configuring volk support...
> >>>>> --   Enabling volk support.
> >>>>> --   Override with -DENABLE_VOLK=ON/OFF
> >>>>> --   Override with -DENABLE_INTERNAL_VOLK=ON/OFF
> >>>>> -- ENABLE_GR_LOG set to ON.
> >>>>> -- HAVE_LOG4CPP set to False.
> >>>>> -- LOG4CPP_LIBRARIES set to .
> >>>>>
> >>>>> Though the library is there. Perhaps it has a different name in
> >>>>> other distributions? I can make symbolic links if need be.
> >>>>>
> >>>>> /usr/lib64 # ls
> >>>>> liblog4cpp* liblog4cpp.so  liblog4cpp.so.5  liblog4cpp.so.5.0.6
> >>>>>
> >>>>>
> >>>>>
> >>>> It may be the case that you don't have the matching #include
> >>>> files, which is what code being compiled needs in addition to the
> >>>> libraries.
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Discuss-gnuradio mailing list
> >>>> address@hidden
> >>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >>> _______________________________________________
> >>> Discuss-gnuradio mailing list
> >>> address@hidden
> >>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >>
> >> _______________________________________________
> >> Discuss-gnuradio mailing list
> >> address@hidden
> >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


_______________________________________________
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]