- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
hi,
I am having a problem doing a clean install of NCSDK2 on ubuntu 16.04. I found 2 threads describing similar issues, one where they suggested specifying the pythonpath:
https://ncsforum.movidius.com/discussion/comment/814/#Comment_814
I tried this and it didn't work, I also pointed the pythonpath to include the following:
./NCSDK/ncsdk-x86_64/api/python
./NCSDK/ncsdk-armv7l/api/python
./ssd-caffe/build/python
./ssd-caffe/python
The second recommended building Caffe separately which works for me, although the NCSDK doesn't detect it and tries to rebuild it.
It looks like it cannot link to the boost libraries, even though they are detected earlier on.
Compiling Caffe…
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- regex
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /usr/bin/protoc
-- Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- -- CUDA is disabled. Building without it…
-- OpenCV found (/usr/local/share/OpenCV)
-- Found Atlas (include: /usr/include, library: /usr/lib/libatlas.so)
-- NumPy ver. 1.13.3 found (include: /usr/local/lib/python3.5/dist-packages/numpy/core/include)
-- Could NOT find Boost
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python-py35
-- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/
-- Version : 1.0.0-rc3
-- Git : ssdv1.0-dirty
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
The error I get is as follows:
87%] Linking CXX executable compute_image_mean
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const_, char const_) const'collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_net_proto_text.dir/build.make:136: recipe for target 'tools/upgrade_net_proto_text' failed
make[2]: *** [tools/upgrade_net_proto_text] Error 1
CMakeFiles/Makefile2:441: recipe for target 'tools/CMakeFiles/upgrade_net_proto_text.dir/all' failed
make[1]: *** [tools/CMakeFiles/upgrade_net_proto_text.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs….
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const_, char const_) const'collect2: error: ld returned 1 exit status
tools/CMakeFiles/get_image_size.dir/build.make:136: recipe for target 'tools/get_image_size' failed
make[2]: *** [tools/get_image_size] Error 1
../.lib/.libcaffe.so.1.0.0-/rc3lib:/ undefinedlibcaffe.so.1.0.0 -referencerc3 :to
undefinedboost :reference: re_detailto: :
cpp_regex_traits_implementationboostre_detail::::transformcpp_regex_traits_implementation[cxx11:]:(chartransform [constabi*:,cxx11 ]char( charconst *const)* ,const 'char.const._/)lib /constlibcaffe.so.1.0.0'-
rc3.:. /undefinedlib /reference libcaffe.so.1.0.0to- rc3
:boost :undefined: re_detailreference: :tocpp_regex_traits_implementation <
charboost>::::re_detailtransform_primary:[:abi:cpp_regex_traits_implementationcxx11char: :consttransform_primary_[,abi :charcxx11 ]const(_char) constconst_',char const*) const'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_net_proto_binary.dir/build.make:136: recipe for target 'tools/upgrade_net_proto_binary' failed
tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:136: recipe for target 'tools/upgrade_solver_proto_text' failed
make[2]: *** [tools/upgrade_solver_proto_text] Error 1
make[2]: *** [tools/upgrade_net_proto_binary] Error 1
CMakeFiles/Makefile2:517: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed
make[1]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2
CMakeFiles/Makefile2:631: recipe for target 'tools/CMakeFiles/upgrade_net_proto_binary.dir/all' failed
make[1]: *** [tools/CMakeFiles/upgrade_net_proto_binary.dir/all] Error 2
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const_, char const_) const'collect2: error: ld returned 1 exit status
tools/CMakeFiles/convert_annoset.dir/build.make:136: recipe for target 'tools/convert_annoset' failed
make[2]: *** [tools/convert_annoset] Error 1
CMakeFiles/Makefile2:555: recipe for target 'tools/CMakeFiles/convert_annoset.dir/all' failed
make[1]: *** [tools/CMakeFiles/convert_annoset.dir/all] Error 2
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const_, char const_) const'collect2: error: ld returned 1 exit status
tools/CMakeFiles/convert_imageset.dir/build.make:136: recipe for target 'tools/convert_imageset' failed
make[2]: *** [tools/convert_imageset] Error 1
CMakeFiles/Makefile2:783: recipe for target 'tools/CMakeFiles/convert_imageset.dir/all' failed
make[1]: *** [tools/CMakeFiles/convert_imageset.dir/all] Error 2
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const_, char const_) const'collect2: error: ld returned 1 exit status
tools/CMakeFiles/extract_features.dir/build.make:136: recipe for target 'tools/extract_features' failed
make[2]: *** [tools/extract_features] Error 1
CMakeFiles/Makefile2:479: recipe for target 'tools/CMakeFiles/extract_features.dir/all' failed
make[1]: *** [tools/CMakeFiles/extract_features.dir/all] Error 2
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to
boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const_, char const_) const'collect2: error: ld returned 1 exit status
tools/CMakeFiles/compute_image_mean.dir/build.make:136: recipe for target 'tools/compute_image_mean' failed
make[2]: *** [tools/compute_image_mean] Error 1
CMakeFiles/Makefile2:859: recipe for target 'tools/CMakeFiles/compute_image_mean.dir/all' failed
make[1]: *** [tools/CMakeFiles/compute_image_mean.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Installation failed. Error on line 679
Any idea what is going on?
- Balises:
- Caffe
Lien copié
3 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
make clean then make install
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Tried that and it didn't work. I also opened a new terminal and sourced the bashrc to ensure the PYTHONPATH was being loaded correctly.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I sorted this by compiling Caffe myself and turning off the caffe build in ncsdk.conf

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable