ceres-solver: add new recipe
PATCH v3 1/1 ceres-solver: add new recipe
From: Bartosz Golaszewski <[email protected]>
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems.
It's often used in 3D computer vision applications.
---
v1 -> v2:
- now fetching the source from git, not github archives
- only add a specific directory (cmake files) to FILES_${PN}-dev
- don't create the ${PN} package as the project is not building a shared library
v2 -> v3:
- instead of not creating the ceres-solver package, just allow it to be empty
.../ceres-solver/ceres-solver_1.13.bb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb
meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb new file +20 -0
@@ -0,0 +1,20 @@ +DESCRIPTION = "Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems." +AUTHOR = "Sameer Agarwal and Keir Mierle and Others" +HOMEPAGE = "http://ceres-solver.org/" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=35e00f0c4c96a0820a03e0b31e6416be" + +SRC_URI = "git://github.com/ceres-solver/ceres-solver.git" +SRCREV = "19333b0f55c8462381038e70d42af43b52941128" + +S = "${WORKDIR}/git" + +DEPENDS = "libeigen glog" + +inherit cmake + +# Only a static library and headers are created +ALLOW_EMPTY_${PN} = "1" + +FILES_${PN}-dev += "${libdir}/cmake/*"
Signature · 1 line
2.7.4
Why do you prefer useless empty package to be installed together with the ${PN}-dev?
RDEPENDS_${PN}-dev = ""
was IMHO better.
Quoted 57 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems.
It's often used in 3D computer vision applications.
Signed-off-by Bartosz Golaszewski <[email protected]>---
v1 -> v2:
- now fetching the source from git, not github archives
- only add a specific directory (cmake files) to FILES_${PN}-dev
- don't create the ${PN} package as the project is not building a shared libraryv2 -> v3:
- instead of not creating the ceres-solver package, just allow it to be empty.../ceres-solver/ceres-solver_1.13.bb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb
meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb new file +1
-0@@ -0,0 +1,20 @@ +DESCRIPTION = "Ceres Solver is an open source C++ library for modelingand solving large, complicated optimization problems."
meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb new file +19
-1+AUTHOR = "Sameer Agarwal and Keir Mierle and Others" +HOMEPAGE = "http://ceres-solver.org/" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=35e00f0c4c96a0820a03e0b31e6416be" + +SRC_URI = "git://github.com/ceres-solver/ceres-solver.git" +SRCREV = "19333b0f55c8462381038e70d42af43b52941128" + +S = "${WORKDIR}/git" + +DEPENDS = "libeigen glog" + +inherit cmake + +# Only a static library and headers are created +ALLOW_EMPTY_${PN} = "1" + +FILES_${PN}-dev += "${libdir}/cmake/*" --2.7.4
2017-09-14 12:53 GMT+02:00 Martin Jansa <[email protected]>:
Quoted 7 lines
Why do you prefer useless empty package to be installed together with the ${PN}-dev?
RDEPENDS_${PN}-dev = ""
was IMHO better.
Because then you can simply add ceres-solver to INSTALL_IMAGE and the headers from ${PN}-dev are nicely added to the SDK, otherwise you cannot select ceres-solver for the main image but instead must explicitly add the dev package to SDK. IMHO it's simpler that way.
Best regards,
Bartosz Golaszewski