| Message ID | 20251101081537.437029-1-f_l_k@t-online.de |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-oe] libtinyxml2: use cmake buildsystem | expand |
Fathi added support for generating both static and shared objects since uuu static build needed. If I accept this patch then that case breaks, if I don't then cmake based dependencies have issues. I guess we need to find some middle path. Perhaps offer a packageconfig option to build static version or shared and then default to shared it fine. On Sat, Nov 1, 2025 at 1:15 AM Markus Volk via lists.openembedded.org <f_l_k=t-online.de@lists.openembedded.org> wrote: > > Currently tinyxml2 is built with meson, which doesn't generate files in /usr/lib/cmake > Use cmake instead. This will generate files in both /usr/lib/cmake and /usr/lib/pkgconfig > and allow cmake projects to find libtinyxml2. > > Avoids errors such as: > > | CMake Error at CMakeLists.txt:11 (find_package): > | By not providing "FindTinyXML2.cmake" in CMAKE_MODULE_PATH this project has > | asked CMake to find a package configuration file provided by "TinyXML2", > | but CMake did not find one. > | > | Could not find a package configuration file provided by "TinyXML2" with any > | of the following names: > | > | TinyXML2Config.cmake > | tinyxml2-config.cmake > | > | Add the installation prefix of "TinyXML2" to CMAKE_PREFIX_PATH or set > | "TinyXML2_DIR" to a directory containing one of the above files. If > | "TinyXML2" provides a separate development package or SDK, be sure it has > | been installed. > | > | > | -- Configuring incomplete, errors occurred! > --- > meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb > index 89e6eca99b..84baeca8d9 100644 > --- a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb > +++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb > @@ -10,7 +10,7 @@ SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=http > file://run-ptest" > > > -inherit meson ptest > +inherit cmake ptest > > EXTRA_OEMESON += " \ > ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \ > -- > 2.51.0 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#121245): https://lists.openembedded.org/g/openembedded-devel/message/121245 > Mute This Topic: https://lists.openembedded.org/mt/116061822/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb index 89e6eca99b..84baeca8d9 100644 --- a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb +++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb @@ -10,7 +10,7 @@ SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=http file://run-ptest" -inherit meson ptest +inherit cmake ptest EXTRA_OEMESON += " \ ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \