I’m trying to add a new package to my buildroot. It is cmake based but I’m using generic_package module to add it. It has couple of dependencies such as boost, that I’m actually adding them.
SRSRAN_VERSION = release_23_11
SRSRAN_SITE = https://github.com/srsran/srsRAN_4G.git
SRSRAN_SITE_METHOD = git
SRSRAN_LICENSE = AGPL-3.0
SRSRAN_LICENSE_FILES = LICENSE
SRSRAN_DEPENDENCIES = boost fftw-single mbedtls lksctp-tools host-cmake
ifeq ($(BR2_PACKAGE_ZEROMQ),y)
SRSRAN_DEPENDENCIES += zeromq
SRSRAN_DEPENDENCIES += czmq
endif
SRSRAN_CONF_OPTS += -DCMAKE_INSTALL_PREFIX="/usr"
SRSRAN_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release
SRSRAN_CONF_OPTS += -DBOOST_ROOT="$(STAGING_DIR)/usr"
SRSRAN_CONF_OPTS += -DBoost_INCLUDE_DIR="$(STAGING_DIR)/usr/include"
SRSRAN_CONF_OPTS += -DBoost_LIBRARY_DIR="$(STAGING_DIR)/usr/lib"
SRSRAN_CONF_OPTS += -DBoost_NO_SYSTEM_PATHS=TRUE
SRSRAN_CONF_OPTS += -DBoost_NO_BOOST_CMAKE=TRUE
define SRSRAN_CONFIGURE_CMDS
(mkdir -p $(@D)/build &&
cd $(@D)/build &&
$(TARGET_CONFIGURE_OPTS)
$(TARGET_CONFIGURE_ARGS)
cmake ../
$(SRSRAN_CONF_OPTS)
)
endef
define SRSRAN_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build
endef
define SRSRAN_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build DESTDIR=$(STAGING_DIR) install
endef
define SRSRAN_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build DESTDIR=$(TARGET_DIR) install
endef
$(eval $(generic-package))
However, I’m getting following error:
-- Could NOT find Boost (missing: program_options) (found suitable version "1.80.0", minimum required is "1.35")
CMake Error at CMakeLists.txt:296 (message):
Boost required to build srsRAN