Thursday, May 23, 2019

Re: [Discuss-gnuradio] building 3.8

probably your log4cpp installation fine; at first I thought
"waaaitaminute, the actual liblog4cpp.so is missing", but then I
realized that the find search string wouldn't look for that.
To check, do the following:

1. run

pkg-config --libs --cflags log4cpp

This should yield something like "-llog4cpp -lnsl"

2. Do something like

cd /tmp
echo "int main(){}" > empty.cc
g++ $(pkg-config --libs --cflags log4cpp) empty.cc

Does that work?

Best regards,
Marcus

PS: what Linux Distro are we talking about? I see you're on ARM, so I'm
naturally curious.
On Wed, 2019-05-22 at 17:45 +0200, Hans Kurscheidt wrote:
> Hi,
>
> I abandonned my previous thread, because I was building 3.7.
>
> I cloned 3.8 (I hope) from https://github.com/gnuradio/gnuradio
>
> Now trying to build 3.8, I ran into the following problem:
>
> CMake Error at cmake/Modules/FindLOG4CPP.cmake:46 (message):
> Could NOT find LOG4CPP library
>
> I had previously installed log4cpp and the following was installed:
>
> sudo find / -name log4cpp*
> /usr/include/log4cpp
> /usr/bin/log4cpp-config
> /usr/lib/arm-linux-gnueabihf/pkgconfig/log4cpp.pc
> /usr/share/man/man1/log4cpp-config.1.gz
> /usr/share/aclocal/log4cpp.m4
>
> These are the only pkg, I can find in my Linux distro. Do I need
> something different? where 2find??
>
> Rgds
>
> hk
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

2 comments:

  1. I have the same problem trying to install gnuradio from sources.

    My system:

    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.3 LTS
    Release: 18.04
    Codename: bionic

    uname -a
    Linux Gita014755 5.0.0-25-lowlatency #26~18.04.1-Ubuntu SMP PREEMPT Thu Aug 1 14:35:26 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

    Now the library:

    sudo find /usr -iname *log4cpp*
    /usr/share/man/man1/log4cpp-config.1.gz
    /usr/share/doc/liblog4cpp5v5
    /usr/share/doc/liblog4cpp5-dev
    /usr/share/aclocal/log4cpp.m4
    /usr/bin/log4cpp-config
    /usr/lib/x86_64-linux-gnu/liblog4cpp.so.5
    /usr/lib/x86_64-linux-gnu/liblog4cpp.a
    /usr/lib/x86_64-linux-gnu/pkgconfig/log4cpp.pc
    /usr/lib/x86_64-linux-gnu/liblog4cpp.so.5.0.6
    /usr/lib/x86_64-linux-gnu/liblog4cpp.so
    /usr/include/log4cpp

    pkg-config --libs --cflags log4cpp
    -llog4cpp -lpthread -lnsl

    So any ideas to overcoming this?

    ReplyDelete
  2. Solved!

    Just needed to remove the file "CMakeCache.txt" from de "build" directory and rerun cmake

    The solution comes from this thread: http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/2015-June/042503.html

    ReplyDelete