[Solved] Help with library not found

Hi,

I am struggling with a library not found at build stage.

Building fails at:

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- c flags:  -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall;
-- asm flags:  
-- c flags:  -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall;
-- asm flags:   
-- Loading version 1.4.1git into constants...
-- Using install prefix: 
-- 
-- Configuring volk support...
--   Enabling volk support.
--   Override with -DENABLE_VOLK=ON/OFF
--   Override with -DENABLE_INTERNAL_VOLK=ON/OFF
-- Looked for LOG4CPP libraries named .
CMake Error at cmake/Modules/FindLOG4CPP.cmake:46 (message):
  Could NOT find LOG4CPP library
Call Stack (most recent call first):
  CMakeLists.txt:449 (find_package)

I have the relevant LOG4CPP library installed:

parts:
  gnuradio:
    source: https://github.com/gnuradio/gnuradio.git
    #source-tag: v3.7.13.5
    source-branch: master
    plugin: cmake
    build-packages:
      - g++
      - libboost-date-time-dev
      - libboost-filesystem-dev
      - libboost-program-options-dev
      - libboost-regex-dev
      - libboost-system-dev
      - libboost-test-dev
      - libboost-thread-dev
      - libcppunit-dev
      - libfftw3-dev
      - libgsl-dev
      - liborc-0.4-dev
      - libqt4-dev
      - libsdl1.2-dev
      - libusb-1.0-0-dev
      - libzmq5
      - python-cheetah
      - python-dev
      - python-numpy
      - python-mako
      - qt4-dev-tools
      - swig
      - python-six
      - liblog4cpp5v5
      - liblog4cpp5-dev
      - libfontconfig1-dev

It is based on:

base: core18
confinement: strict

I built the exact same version on my Ubuntu 18.04 host and it compiles without issue.

Any idea?

Is it possible to set the LDCONFIG path for the build stage ?

Problem solved with:

    build-environment:
      - LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/
1 Like