<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
I can't seem to find where cmake's python checker magically
decides the name of the shared object, but I did find an override,
so you can drop the patch. I had even gone so far as to simply
make a zero length file instead of the symlink, and everything
still built and run. It is just some cmake detection which is
broken. The ubuntu/debian systems where this code is heavily
tested all provide a link for the libboost_python.so which
explains why this never turned up previously. They don't get the
option to pick python2 or python3 for boost, they always get both
for now.<br>
<br>
The override to build with python boost for cmake and caffe is as
follows:<br>
<br>
cmake -DBoost_PYTHON_LIBRARY_DEBUG=/usr/lib64/libboost_python3.so
\<br>
-DBoost_PYTHON_LIBRARY_RELEASE=/usr/lib64/libboost_python3.so \<br>
-DBLAS=Open \<br>
..<br>
<br>
<br>
Cheers,<br>
Jason. <br>
<br>
<br>
On 03/14/2018 09:55 AM, Jason Wessel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:060154ee-65b6-0c17-0f62-2af30a736456@windriver.com">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<div class="moz-cite-prefix">Perhaps a bug in the cmake detect
which is part of boost, because I am not using python2 for
caffe.<br>
<br>
I used the path of least resistance because as far as I could
tell boost only let you build one or the other and in my case it
was the python3 boost api. In the end caffe was working and all
the python3 tests with the Movidius SDK pass (which use
python3).<br>
<br>
Jason. <br>
<br>
On 03/14/2018 09:50 AM, Burton, Ross wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJTo0La0oaau5ugOzT=k9fdGQx3PpgsPQxm+KGiGJyU06kwoKg@mail.gmail.com">
<div dir="ltr">I thought that boost_python was the py2 binary,
and boost_python3 was the py3 one? Is this not a bug in
caffe?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 13 March 2018 at 03:08, Jason
Wessel <span dir="ltr"><<a
href="mailto:jason.wessel@windriver.com" target="_blank"
moz-do-not-send="true">jason.wessel@windriver.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote">When using an image built
with the Yocto Project which has a compiler<br>
and all the required libraries, projects such as caffe for
the<br>
Movidius SDK which use python3 and boost fail to build
because they<br>
look for libboost_python.so. The error that cmake returns
doesn't<br>
even point to the fact that this is why the configuration
fails.<br>
<br>
Example showing the problem with the missing symlink:<br>
================<br>
git clone <a
href="https://github.com/weiliu89/caffe.git"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/weiliu89/<wbr>caffe.git</a><br>
cd caffe<br>
mkdir build<br>
cd build<br>
cmake -DBLAS=Open ..<br>
<br>
-- Configuring done<br>
CMake Error at CMakeLists.txt:85 (add_dependencies):<br>
The dependency target "pycaffe" of target "pytest" does
not exist.<br>
================<br>
<br>
Conditionally creating the link when building python3
support into<br>
boost is all that is needed.<br>
<br>
Signed-off-by: Jason Wessel <<a
href="mailto:jason.wessel@windriver.com"
moz-do-not-send="true">jason.wessel@windriver.com</a>><br>
---<br>
meta/recipes-support/boost/<wbr>boost.inc | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/meta/recipes-support/boost/<wbr>boost.inc
b/meta/recipes-support/boost/<wbr>boost.inc<br>
index 0461ec6..c53edf7 100644<br>
--- a/meta/recipes-support/boost/<wbr>boost.inc<br>
+++ b/meta/recipes-support/boost/<wbr>boost.inc<br>
@@ -195,6 +195,9 @@ do_install() {<br>
fi<br>
done<br>
<br>
+ if [ -e ${D}${libdir}/libboost_<wbr>python3.so ];
then<br>
+ ln -s libboost_python3.so
${D}${libdir}/libboost_python.<wbr>so<br>
+ fi<br>
}<br>
<br>
BBCLASSEXTEND = "native nativesdk"<br>
<span class="HOEnZb">--<br>
2.7.4<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a
href="mailto:Openembedded-core@lists.openembedded.org"
moz-do-not-send="true">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a
href="http://lists.openembedded.org/mailman/listinfo/openembedded-core"
rel="noreferrer" target="_blank"
moz-do-not-send="true">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</span></blockquote>
</div>
<br>
</div>
</blockquote>
<p><br>
</p>
</blockquote>
<p><br>
</p>
</body>
</html>