openbmc / docs

OpenBMC Documentation
Creative Commons Attribution 4.0 International
277 stars 307 forks source link

ERROR: Dependency "sdbusplus" not found when meson build #66

Closed victorwang-tw closed 3 years ago

victorwang-tw commented 3 years ago

Hi, I'm new to OpenBMC. I followed the steps in "OpenBMC Hello World in SDK" I cloned the phosphor-state-manager repo and edited bmc_state_manager_main.cpp. When I try to "meson build", I got a error message below.

`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/victorwang/Code/phosphor-state-manager/build/meson-logs/meson-log.txt ` (Please tell me if it is useful to show full contents of "meson_log.txt")

I'm not sure what the problem is, should I "install" the sdbusplus dependency? If so, could anyone tell me how to "install" that?

Thanks!

williamspatrick commented 3 years ago

This dependency should have been installed in the SDK. Did you source the environment file to set up everything for the SDK?

victorwang-tw commented 3 years ago

This dependency should have been installed in the SDK. Did you source the environment file to set up everything for the SDK?

It works after I do "Download and Install SDK" in OpenBMC Development Environmenthttps://github.com/openbmc/docs/blob/master/development/dev-environment.md again. It seems that I didn't source the new SDK after I restart my virtual machine. Thanks!