openbmc / phosphor-state-manager

Apache License 2.0
11 stars 21 forks source link

Unable to build due to sdbusplus dependency missing #18

Closed viggy96 closed 2 years ago

viggy96 commented 2 years ago

I've been following the OpenBMC Hello World tutorial, and I've encountered an error. When I run meson build, I get the following error:

The Meson build system
Version: 0.59.2
Source dir: /home/vignesh/Documents/source/phosphor-state-manager
Build dir: /home/vignesh/Documents/source/phosphor-state-manager/build
Build type: native build
Project name: phosphor-state-manager
Project version: 0.1
C++ compiler for the host machine: ccache c++ (gcc 11.1.0 "c++ (GCC) 11.1.0")
C++ linker for the host machine: c++ ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Found CMake: /usr/bin/cmake (3.21.3)
Run-time dependency sdbusplus found: NO (tried pkgconfig and cmake)

meson.build:59:0: ERROR: Dependency "sdbusplus" not found, tried pkgconfig and cmake

A full log can be found at /home/vignesh/Documents/source/phosphor-state-manager/build/meson-logs/meson-log.txt

I have tried installing sdbusplus from https://github.com/openbmc/sdbusplus, however, I get the same error.

I am running Manjaro GNOME.

geissonator commented 2 years ago

Hi, can you confirm you did the first step in that series of documents (https://github.com/openbmc/docs/blob/master/development/dev-environment.md)? That looks like you don't have the SDK env properly setup.

viggy96 commented 2 years ago

@geissonator Haha, I'm dumb, I forgot this bit of the tutorial:

Each time you wish to use the SDK in a new shell session, you need to source
the environment setup script e.g. $ . /...path-to-sdk.../environment-setup-arm1176jzs-openbmc-linux-gnueabi

I didn't source the setup script before trying to build.