From: <mingli.yu@windriver.com>
To: <openembedded-core@lists.openembedded.org>,
<ross.burton@intel.com>, <randy.macleod@windriver.com>,
<richard.purdie@linuxfoundation.org>
Subject: [PATCH] boost.inc: make libboost_python3.so available
Date: Tue, 16 Oct 2018 02:00:54 -0700 [thread overview]
Message-ID: <20181016090054.122374-1-mingli.yu@windriver.com> (raw)
From: Mingli Yu <mingli.yu@windriver.com>
Currently boost provides ${libdir}/libboost_python35.so,
but there is some logic as below in CMakeLists.txt
of package cv-bridge under meta-ros layer.
[snip]
if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
find_package(Boost REQUIRED python)
else()
find_package(Boost REQUIRED python3)
endif()
[snip]
And comes below do_configure error for cv-bridge:
meta-ros/recipes-ros/vision-opencv/cv-bridge_1.11.16.bb:do_configure
| CMake Error at $Prj/cv-bridge/1.11.16-r0/recipe-sysroot-native/usr/share/cmake-3.12/Modules/FindBoost.cmake:2048 (message):
| Unable to find the requested Boost libraries.
|
| Boost version: 1.68.0
|
| Boost include path:
| $Prj/cv-bridge/1.11.16-r0/recipe-sysroot/usr/include
|
|
| Could not find the following Boost libraries:
|
| boost_python3
|
| No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
| directory containing Boost libraries or BOOST_ROOT to the location of
| Boost.
| Call Stack (most recent call first):
| CMakeLists.txt:11 (find_package)
Can update CMakeLists.txt of cv-bridge as below
to remove the configure error:
- find_package(Boost REQUIRED python3)
+ find_package(Boost REQUIRED python35)
But once the python version changes such as
python37, it fails again. So make boost provides
libboost_python3.so to make the fix flexibly.
[YOCTO #12833]
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
meta/recipes-support/boost/boost.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index c4faea211f0..98f0b71d73a 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -198,6 +198,10 @@ do_install() {
ln -s libboost_${lib}.so ${D}${libdir}/libboost_${lib}-mt.so
fi
done
+ if [ -e ${D}${libdir}/libboost_python3[0-9].so ] && [ ! -e ${D}${libdir}/libboost_python3.so ]; then
+ lib_python3_so=$(basename `ls ${D}${libdir}/libboost_python3[0-9].so`)
+ ln -s ${lib_python3_so} ${D}${libdir}/libboost_python3.so
+ fi
}
--
2.17.1
next reply other threads:[~2018-10-16 9:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-16 9:00 mingli.yu [this message]
2018-10-16 10:00 ` [PATCH] boost.inc: make libboost_python3.so available richard.purdie
2018-10-16 10:38 ` Burton, Ross
2018-10-16 11:18 ` Burton, Ross
2018-10-16 12:05 ` Burton, Ross
2018-10-17 5:46 ` Yu, Mingli
2018-10-17 9:39 ` Burton, Ross
2018-10-18 2:28 ` Yu, Mingli
2018-10-18 9:22 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181016090054.122374-1-mingli.yu@windriver.com \
--to=mingli.yu@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=randy.macleod@windriver.com \
--cc=richard.purdie@linuxfoundation.org \
--cc=ross.burton@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox