Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#42206 - [jsoncpp] No way of guessing the custom include path
Attached to Project:
Arch Linux
Opened by ux (ubitux) - Wednesday, 01 October 2014, 15:45 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 10 January 2015, 11:28 GMT
Opened by ux (ubitux) - Wednesday, 01 October 2014, 15:45 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 10 January 2015, 11:28 GMT
|
DetailsUsing jsoncpp 0.6.0rc2-1, no .pc file are deployed by the package, even though it seems to be deployed by the project (https://github.com/open-source-parsers/jsoncpp/tree/master/pkg-config).
This is problematic because the headers are copied in a custom Archlinux specific directory (a "jsoncpp" directory), so the official way of including the header (#include <json/json.h> according to https://github.com/open-source-parsers/jsoncpp#using-jsoncpp-in-your-project) doesn't work. pkg-config --cflags jsoncpp should raise -I/usr/include/jsoncpp, or simply make the headers deployed in the standard location (though, a "json" directory kind of sucks). A pkg-config would be extremely welcome anyway. |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Saturday, 10 January 2015, 11:28 GMT
Reason for closing: Fixed
Additional comments about closing: jsoncpp 0.7.1-1
Saturday, 10 January 2015, 11:28 GMT
Reason for closing: Fixed
Additional comments about closing: jsoncpp 0.7.1-1
Headee location isn't archlinux specific, just the default as shipped from upstream release.
install -d "${pkgdir}"/usr/include/jsoncpp
cp -r include/json "${pkgdir}"/usr/include/jsoncpp/json
This path looks very archlinux specific to me.
But indeed, pkg-config support was added only recently.
# grep include /usr/lib/pkgconfig/jsoncpp.pc
includedir=${prefix}/include/jsoncpp
Cflags: -I${includedir}
I have no other distribution to compare with, but they probably do something very similar.