[Buildroot] [PATCH] package/poco: convert to CMake package
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Sep 10 19:27:02 UTC 2026
Hello Yegor,
On Wed, Jul 01, 2026 at 03:56:40PM +0200, yegorslists--- via buildroot wrote:
> From: Yegor Yefremov <yegorslists at googlemail.com>
>
> Currently when building with make, the cmake config files are not
> generated. This leads to problems when integrating the package in an
> application built with cmake.
>
> This patch is based on this one:
> https://lists.buildroot.org/pipermail/buildroot/2026-April/801019.html
>
> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
Sorry for the delay in getting back to you. Unfortunately, this patch
breaks the build.
I've tested this configuration:
BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_POCO=y
BR2_PACKAGE_POCO_ACTIVERECORD=y
BR2_PACKAGE_POCO_CPP_PARSER=y
BR2_PACKAGE_POCO_DATA_MYSQL=y
BR2_PACKAGE_POCO_DATA_PGSQL=y
BR2_PACKAGE_POCO_DATA_SQLITE=y
BR2_PACKAGE_POCO_JWT=y
BR2_PACKAGE_POCO_MONGODB=y
BR2_PACKAGE_POCO_NETSSL_OPENSSL=y
BR2_PACKAGE_POCO_PDF=y
BR2_PACKAGE_POCO_PROMETHEUS=y
BR2_PACKAGE_POCO_REDIS=y
BR2_PACKAGE_POCO_ZIP=y
# BR2_TARGET_ROOTFS_TAR is not set
which basically has all Poco sub-options enabled. And it fails with:
CMake Error at /home/thomas/projets/buildroot/output/host/share/cmake-4.4/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Call Stack (most recent call first):
/home/thomas/projets/buildroot/output/host/share/cmake-4.4/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
/home/thomas/projets/buildroot/output/host/share/cmake-4.4/Modules/FindPNG.cmake:218 (find_package_handle_standard_args)
PDF/CMakeLists.txt:93 (find_package)
So it seems like it now needs libpng? Not sure under what conditions.
Same build, but without your patch: the build completes successfully.
Could you have a look and submit a v2?
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
More information about the buildroot
mailing list