Hi,
as per bug #1054707 libodsstream failed to build from source due to
/<<PKGBUILDDIR>>/test/test_ods.cpp:3:10: fatal error: catch2/catch.hpp: No such file or directory
3 | #include <catch2/catch.hpp>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
I noticed that catch2 does not contain the header file catch.hpp any
more. There is now some catch_all.hpp. So I replaced this header file
in a patch[1] but obviously this problem can't be solved by pure wild
guessing since this has lead to
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
and my manually added main() function (also in patch[2]) did not
enhanced the situation much since its now running into linker errors[2].
Any hint how to fix this catch2 issue properly would be welcome
Andreas.
[1] https://salsa.debian.org/debichem-team/libodsstream/-/blob/master/debian/patches/new_catch2_usage.patch
[2] https://salsa.debian.org/debichem-team/libodsstream/-/jobs/4898134
--
http://fam-tille.de
Hi Andreas,
catch2 is a bit complicated story. Look on GitHub, unfortunately catch2 v2.x changed headers, just for catch2 v3.x to change it back. Best is to use catch2 v3.x, but that comes with a static library you need to link ASIK.
Petr
Dne 7. 11. 2023 14:18 napsal uživatel Andreas Tille <andr...@an3as.eu>:
- Help with catch2 transition needed Andreas Tille
- Re: Help with catch2 transition needed Petr Kubánek
- Re: Help with catch2 transition needed Andreas Tille
- Re: Help with catch2 transition needed Sune Vuorela
- Re: Help with catch2 transition needed Andreas Tille
- Re: Help with catch2 transition needed Jerome BENOIT